When the candle close ...

 
blouf:

Hi,

Is there anyway to act (ie. enter a long) when the candle the signal appeared on close ?

Sorry but it's not clear. What do you mean ?
 
angevoyageur:
Sorry but it's not clear. What do you mean ?
When I get a signal, i want the EA to buy only when at the candle close
 
blouf:
When I get a signal, i want the EA to buy only when at the candle close
So what ? What's your problem ?
 
angevoyageur:
So what ? What's your problem ?
The buy order is executed as soon as the signal happens. I'd like the EA to wait for the candle to close before executing it.
 
blouf:
The buy order is executed as soon as the signal happens. I'd like the EA to wait for the candle to close before executing it.
Take a look at "new bar event handler"... This is what you're looking for.

I think this EA can help you: https://www.mql5.com/en/code/10370
 
Malacarne:
Take a look at "new bar event handler"... This is what you're looking for.

I think this EA can help you: https://www.mql5.com/en/code/10370
thanks you
Reason: