Trading between 2 horizontal trend lines
-
hello everyone,I want the EA to open between 180 degrees and 2 horizontal trend lines.
My project is attached.
https://fxdreema.com/shared/BjAhXjDSbbolded text
I want the EA to trade only when but only between 2 lines. The ea will never trade when the candles are outside the lines.
@l-andorrà your experiences are very valuable to me... I ask for your help.
Thank you very much in advance. -
-
@ladydolares What do you exactly mean by 'between 180 degrees'?
-
@l-andorrà hello
In the above explanation, I said the trend line by angle, but what I actually want is the horizontal line whose place remains constant...
I want the candles to open only when the robot is caught between 2 horizontal stripes.
my aim here is to trade in a horizontal trend. If you have a different suggestion, I can try it. -
@ladydolares Ok. In that case you need to store the value of both horizontal lines into two different variables. Then you need a condition block comparing current price is between them. Are those horzontal lines manually plotted or via custom indicator?
-
I want to draw via robot not via custom indicator
-
@ladydolares post your latest project and i will help

-
@vonmunchy I wrote to you as a reply to your message my friend.
this is my project and it's not over yet, i'm new i'm a beginner, i learned to crawl thanks to mr l'andorra . I don't even know how to walk yet.
You wrote a sentence as if there was a properly working EA, nothing like that. I share what I learned and my thoughts on the day I transfer them to the robot, why shouldn't I? -
@ladydolares hmm maybe you seemed to misunderstand what I meant.
I meant to post the project link and than I would correct what you were doing wrong. That way you learn as well.
FYI: The only reason why I offered to rebuild/correct someone else's project was your logic is similar to a mean reversion system which I'm in the process of building
️ -
@vonmunchy then if you wrote clearly here bro, how would I know that the project you are doing exists? Please do not send me a private message.
-
@ladydolares oh my god. I wrote in private to be poliet. I rest my case. Good luck

-
@ladydolares You can stor the value of a horizontal line by creating a variable and then doing this:

You will need two different variables, one for each line. Then be sure to select the correct name of that line where indicated.
-
thank you
-
@ladydolares You're welcome.