Vertical Lines*
-
Hello All*
Once again I've been at this for hours!
The EA is drawing the Lines in the future as I want it, but how do I get the EA to recognise when it reaches the Line??
It should not be placing trades between the Pink and the Green Lines...
Please Help!
https://fxdreema.com/shared/rBE9OBhmb
-
@Morpheus_0 You can substitute the pink line for candle ID. The pink line is a candle in the past that will be increasing its ID by as new candles are appearing on the chart.
The green line is reached when its candle ID is zero:

-
@l-andorrà - Thanks for your reply. The pink line is actually drawn in the future. It's just the price has already passed it in the photo....
But anyway, I think I got it to work. It just doesn't seem to work too well in the Tester and I think there was a gap in the candles when I was testing it*
-
You're welcome.