因為尾盤出場後,進場條件馬上又觸發,所以尾盤又進場, Andy大因為都開盤進場, 何不限定只能開盤15分鐘內進場試試看
if time < 0900 and closeD(1)>openD(1) and closeD(2)>openD(2) and closeD(3)>openD(3) and closeD(4)>openD(4) then begin sellshort ("Short") next bar at market; End;
if time < 0900 and closeD(1)<openD(1) and closeD(2)<openD(2) and closeD(3)<openD(3) and closeD(4)<openD(4) then begin Buy ("Long") next bar at market; End;
setexitonclose;
|