Draw new lines over each existing line.
-
I'm trying to get the EA to draw new lines on top of each other.
Can you help me understand if this logic is starting to get right?My project https://fxdreema.com/shared/zEdvY0fD
What I wanted exactly is to create a way for the EA to identify if candle 0 is above the current line, that it draws a new line 100 points above this current line and does this consecutively.
Every time the current candlestick is (above) the (current) line a new line should be drawn above this line it crossed.
Let's say the current candlestick got bigger, so it draws a new line 100 points above the last line, but if the candle doesn't (closes above the last line that was drawn) this last line should be deleted.
Does anyone have an idea how to do this? -
I'm bot sure I fully understand the logic behind that. Why do you need so many lines on the chart at the same time? Shouldn't it be more effective to plot the last two ones only?
-
@l-andorrà
The reason I want more than 2 lines on the chart is because the market can often make one (Big Candle), and as I will always use the Trailing Stop on the previous line, imagine if the Candle crosses 2 or 3 lines simultaneously.
Note: Trailling stop movement will happen only if the candle crosses and closes above the last line being moved to the previous line. -
Ok. Could you please remove blocks 19 and 20? Then confirm the structure is working correctly. If not, let me know what happens.