How NOT to open multiple positions in the same condition?
-
Hello to all .
After the help of some kind friends,i manage to create my EA ,but i came across to another problem.
I have a condition: when candle crosses above a line,then a position is opened.BUT the problem occurs when the candle crosses multiple times from the line.
In that case i DO NOT want another position to be opened.

-
@fxmich78
NO TRADE ====> CONDITION====> BUY NOW (or SELL NOW) -
@ambrogio
I tried that but now it opens only one position.Till now all good.But my EAs conditions are "when candle crosses the lines ,them a position must be opened.With the {no trade block), i have one position,as i wanted in the cross of the first line,BUT NO other positions in the cross of the other lines.

-
@fxmich78 oh yes, put "ONCE PER BAR" instead "NO TRADE"
-
@ambrogio
unfortunately,i already have this 'once per bar',that is why it opens multiple positions.
It needs sthg else my friend. -
@fxmich78 can you take a screenshot of your project?
-
@ambrogio
i just solved it.I used "no trade nearby" block!thank you although for the concern!!!