Download MetaTrader 5
To add comments, please log in or register
Added support for the Spanish language. Come and check it out!
Dennis
21
Dennis 2016.02.19 03:19 

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.

Keith Watford
Moderator
7904
Keith Watford 2016.02.19 05:11  

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