Hi,
I have an idea where I want to buy or sell at the open of the next candle + 2 pips/points in the 1-min timeframe
Now I created the following code:
OrderTollerance = 2
c1 = open>close[1]
if not onmarket and c1 and hora1 and hora2 then
Buy possize contract at open+OrderTollerance stop
endif
But when I execute the code act randomly.
Sometime it execute direct at Open of the next candle
Sometimes it sets buy/sell limit above/under the Open of the previous candle
Sometime it set a buy/sell limit of 1 above/under the Open
Is the code correct?