本帖最後由 awind72 於 18-12-5 21:07 編輯
if time>=0900 and time<=1343 then begin if Z1>Y2 and x1>=0 then SellShort 1 contracts next bar at Y2 limit;-------A if Z1>Y2 and x1<0 then buy 1 contracts next bar at Y2 limit;-------------B if Z1>Y2 and x1<0and (X5-X2)>=0 and (X3-X5)>=0 then SellShort 1 contracts next bar at Y2 limit;-----------------------C if Z1<Y2 then SellShort 1 contracts next bar at Y2+15 limit;-----------D end; if time >1343 then begin if marketposition >0 then sell all contract next bar at market else if marketposition <0 then buytocover all contract next bar at market; end;
我是用分K,上述A,B,C,D四個進場訊號,如何才能符合條件下過一次單之後,該小段訊號今日就停止 例如A訊號符合後下單,然後A段訊號就忽略不跑,B,C,D繼續跑,直到各別訊號符合後該段忽略 請各位大神指教,謝謝
|