Horizontal line movement (SOLVED)
-
How to make? For me it still does not work.
I need that when the price reaches the historical high of the asset, if the price exceeds this line, move the line up once per candle.
See my project: https://fxdreema.com/shared/auJ90pfcc
-
The second block in your project "278" is checking a constant value, which by definition never changes, so it will never pass to the next ones.
Is that what you want ?
https://fxdreema.com/builder/shared/sNabVEZsc -
seb 0 is right. And don't forget to delete past lines. Otherwise your chart will be plenty of them.
-
@l-andorrà Sounds always good, thanks

In my case the line is updated only. Do you mean every time you restart de EA ? -
@seb-0 said in Horizontal line movement:
@l-andorrà Sounds always good, thanks

In my case the line is updated only. Do you mean every time you restart de EA ?Not only then, but also when they are not required anymore.
-
@seb-0 Hello. Thanks for the reply. Almost that. But instead of using High Price (Candle Period) that works just like a donchian channel, I need the maximum asset history, and never come back. Always stay at historic highs until you break up and climb higher.
-
@seb-0 said in Horizontal line movement:
The second block in your project "278" is checking a constant value, which by definition never changes, so it will never pass to the next ones.
Is that what you want ?
https://fxdreema.com/builder/shared/sNabVEZscHello. Thanks for the reply. Almost that. But instead of using High Price (Candle Period) that works just like a donchian channel, I need the maximum asset history, and never come back. Always stay at historic highs until you break up and climb higher.
-
@tcanuto https://fxdreema.com/forum/topic/4510/tutorial-loop-advanced-find-and-save-specific-value-from-indicator-history/2 check out miros examples. You can also use ma 1 for high/low https://ctrlv.cz/shots/2019/10/12/bFS3.png (also from miro lol)
-
In short, I need that when breaking the historical high line and forming a new top, up the line to this top, but never down.
-
Block 182 move does not work.
https://fxdreema.com/builder/shared/sNabVEZsc -
It doesn't because that variable is never updated. You stores the original value from the first 200 candles and nothing else happens. If you want to move that horizontal line to a higher position if your condition block is true, you need a new 'Modify Variable' block in which you update the variable's value with the new one.
Then you will have to erase the old line a draw the new one.
-
@l-andorrà Got it. But I find it less practical to have to erase the previous line than simply move the horizontal line to the previous high when the price is above the line.
-
Then you can use the 'move' block', but then don't forget to use a 'For each object' block above it. That way you will move it without erasing it but probably you will need more blocks that the other way.

-
@l-andorrà Yes, I'm trying. It partially worked for me.
https://fxdreema.com/shared/m9gu0gVld -
Below block 339 you need to add a new 'Modify Variables' block in which you need to update the value of 'Teto Maximo Permitido1' variable. Once the value is updated it will be redrawn as you wish.
-
@l-andorrà In this way? He keeps coming down. I need him to never leave, just go up.
https://fxdreema.com/shared/Dyxf1iIjb -
I'm afraid I don't understand tha logic behind blocks 343 and 345. Shouldn't the be referring to the same horizontal line?
-
@l-andorrà Yes. It should. Turns out this line is being generated as "Teto Maximo Permitido1" I don't know why. Any bugs?
-
@tcanuto i have looked at your project but from the post:
@tcanuto said in Horizontal line movement:
How to make? For me it still does not work.
I need that when the price reaches the historical high of the asset, if the price exceeds this line, move the line up once per candle.
See my project: https://fxdreema.com/shared/auJ90pfcc
i dont understand what you did in the project but , what you are trying to achieve can easily be achieved via : https://fxdreema.com/shared/FE38aqULc
-
@zackry said in Horizontal line movement:
@tcanuto i havent looked at your project but from the
@tcanuto said in Horizontal line movement:
How to make? For me it still does not work.
I need that when the price reaches the historical high of the asset, if the price exceeds this line, move the line up once per candle.
See my project: https://fxdreema.com/shared/auJ90pfcc
i dont understand what you did in the project but , what you are trying to achieve can easily be achieved via : https://fxdreema.com/shared/FE38aqULc
Would that fix your problem, tcanuto?