I know how to limit the number of trades in a candle. However, what I am trying to do is limit the number of trades between 2 points based on price levels.
I define a price level as an input, which serves as my buy price.... If my buy price level for EURUSD is 1.1150, I enter a buy order once the Ask >= 1.1150 + 10 pips, along with stop and TP. Now I want it to open an order just once, and exit based on the SL or TP. And I dont want it to execute another buy order if the same level arrives, until I reach a candle where the Close > buy Price Level. How do I define this condition, where my EA doesnt trade again until Close > Buy Price Level?
I know how to post a limit for a single trade per bar....but I dont know how to execute the above, so that the EA only trades once until Close > buy price level.
Define your conditions precisely and it should almost write itself.
Your conditions for additional orders are too vague.
eg, if the 1st order is closed at TP, then the chances are that a candle where the Close > buy Price Level has already been reached
To add comments, please log in or register