|
以當沖來說,過8:45後,如果以均線交叉進場,我想限定第一次的交叉不進場,以第二次的交叉再進場,我該如何以程式表達。
If time >= 0845 and time <= 1300 and marketposition = 0 then begin
If close cross over value1 then buy next bar at open;
If close cross under value1 then sellshort next bar at open;
end;
要加那些程式碼,煩請大大解惑。 |
|