Horizontal line with previous highs and lows.
-
Hello @fxDreema . All right? How long has a doubt been here?
I need the following solution:
Using the Highest Price (Candles period): Draw a horizontal line. If there is a break in the line up with previous candle closing above the Highest Price channel, move the horizontal line, otherwise do nothing. Low tendency to move normally.
Vice versa for Lowest Price.
With this it is possible to filter false or high signals in the price channel.
-
Wait, what is the candles period? Because if it includes the previous candle, then there is no way for the previous candle to break above the line. Or as usual, I miss some information and I don't understand your idea again

-
It's ok. The Donchian channel does not change level while the candle does not close above the line. I need the horizontal line to work just like in the video.
-
Something like this? https://fxdreema.com/shared/sJiRRICV
-
Hello fxDreema! All right? I'm late but I'm responding now.
Almost that. The rule is:
Only when the candle closes above the Highest Price, the line moves. Otherwise the line stays where it is. When the price is falling it works normally.Vice versa for the Lowest Price.
-
Explaining it easier, I guess.
Move up only if the previous candle close above the Highest price. Move down normally.
Vice versa for Lowest Price.
-
0_1548307300103_Highs and Low.ex4

have it loaded like this, it will not look exactly like the one you posted, but it works exactly like that.
use 20 for entries and 10 for exits.
the same EA shouldn't be that hard to make, but it won't look the same which shouldn't matter if it's for personal use ^^use Candle ID 1 to detect breaks as using 0 will never break it.

-
@tcanuto It sounds to me that you need to add some simple checks. But you are one of the "oldest" users here, it is strange to me that you are asking about something that it simple. Do you understand my example and how the line is created? Or maybe I don't understand you again.
-
You almost understood. Come on. See the figure below:

The red line was a false break because it did not close above the line.
The blue line was a real break because it closed above the red line, and rose to the previous maximum.I need the line to just go up when there's a real break.
-
Hello @fxDreema and friends. I look forward to returning to this subject. I know it sounds easy, but I still have not solved the "riddle".
-
So the red line is a false break, because the candle closed below the line. And the blue line is a true break, because it closed above the line. It sounds to me that you want to check whether Candle Close is above the line, but after the candle closes... which makes it candle 1.
-
@fxdreema Exactly. Only become one shift if there is a real break. Otherwise wait. But in the default donchian channel the line goes up if the maximum goes up, not waiting for the confirmation of the break even if we put shift 1.
I know it sounds simple, but English helps a little. How to do this?