|
好人做到底,免得你浪費太多時間在這上面
input:start_time(0915),end_time(1600);
if time>start_time and time<end_time then begin
if averagefc(close,5)> averagefc(close,10) and averagefc(close,10)>averagefc(close,15) and averagefc(close,15)>averagefc(close,30) and close>averagefc(close,30) and averagefc(close,10)>averagefc(close,20) and averagefc(close,20)>averagefc(close,30) and averagefc(close,30)>averagefc(close,60) and close>averagefc(close,60) then begin
buy next bar at market;
end;
if averagefc(close,5)< averagefc(close,10) and averagefc(close,10)<averagefc(close,15) and averagefc(close,15)<averagefc(close,30) then begin
sell next bar at market;
end;
end;
不過我偷懶2分5ma,我改為1分鐘10ma替代,雖然會有點不同,但大同小異,不會差太多,這樣一個data就能搞定,除非寫出來是正向的,再去改data2為2分K來試試
|
評分
-
查看全部評分
|