Help Please !
-
Hello,
I have a problem to get the EA to work correctly according to my strategy. My strategy is based on lines: every time the market(bid) touches a line and the candle closes below the bottom line it sells.
and every time the market (bid) touches a line and the candle closes above the top line it buys.
I can do this, but only for a certain line, but I can't pass this to the other lines of the chart because I have more than 60 lines, does anyone have a solution for this so that all lines are recognized. I have a picture to make it clearer

-
@thilili23 Without seeing how the lines are drawn/named it is impossible to answer, if you put a shared link on here then it can be assessed.
-
I would like to know how you would do it. if you needed to do that.
-
@thilili23 If lines are named then you you could set a flag for 1st line being touched, and then in tree check flag, in condition candle closes under line, reset the flag under buy/sell.
-
@jstap said in Help Please !:
If lines are named then you you could set a flag for 1st line being touched, and then in tree check flag, in condition candle closes under line, reset the flag under buy/sell.
Thank you very much.
I'll try, it helped a lot. but since I have 60 lines, do I need to name them all?, or is there a simpler way to recognize the closest line? or only recognizes the line by name. -
@thilili23 You could set a condition for example price is above line, then price is below line, set flag, then candle closes below, without knowledge of how the lines are drawn, it is hard to see what prices are being used and what you can do to reference. You can always set a flag, it is then up to you what condition you use to reset.
-
@thilili23
Its a much visual strategy, be careful no to be influenced by the optimistic bias which make you see entries only when the following price movement is beneficial.