|
CO友 大神
小七哪裡錯了
//allen -04-ma6.12
Input: short_ma(6),middle_ma(12),long_ma(60);
value1=Average(close,short_ma);
value2=Average(close,middle_ma);
value3=Average(close,long_ma);
if time>=0935 and time<1330 then begin
if EntriesToday(D)<1 then begin
if value1<c[0] and value2<c[0] and value3<c[0] and o data2[0]<c data2[0]
and closeD(1)<openD(0)
then buy next bar at Open;
if value1>c[0] and value2>c[0] and value3>c[0] and o data2[0]>c data2[0]
and closeD(1)>openD(0)
then sellshort next bar at open;
end;
end;
if marketposition>0 then sell("KEN2") next bar at entryprice-20 stop;
if marketposition<0 then buytocover("TAMD2") next bar at entryprice+20 stop;
if time >=1340 then sell("BMW2") next bar at open;
if time >=1340 then buytocover("SMILE2") next bar at open;
setexitonclose;
上週五怎麼沒平倉
今天是空10841
有大神能幫忙嗎
|
評分
-
查看全部評分
|