Hi Guys,
I need your help of a possible simple question:
How would be the code to take a order by time?
I would like to set variables with an exact time. Then I want to buy or sell at the exact time. Lets say I want sell at 09:00, then I want buy at 10:30, sell at 15:00 and buy again at 17:00. So it is just to define the start time and sell or buy:
Can anyone help me please???
Thank you very much
First you have to select your timeframe, in your example, it cannot be higher than 30 minutes.
Here is an example to enter Long/Short at 09:00 and at 10:30, after having previously set your conditions:
YourCondition = ....
IF (time = 090000 OR time = 103000) AND YourCondition THEN
BUY 1 CONTRACTS AT MARKET/SELLSHORT 1 CONTRACTS AT MARKET
ENDIF
Roberto