Not logged in
Viewing 2 posts - 1 through 2 (of 2 total)
  • #247602 |
    3 Posts


    I have created an EA that enters at market if either the long or short conditions are met.  The problem I have noticed in backtesting is that if I get stopped out it will enter again if the long or short condition is valid.  I want to stop it from entering in the same direction again until x amount of bars or x amount of time since the last order in that direction was closed.

    I have tried a number of different ways by adding the condition BarsSinceOrderClosed(relevant magic number) > Defined Variable or number which is a defined variable or time (which bars is a defined variable) but when I backtest it I don’t get it entering any trades.

    Any help would be much appreciated.



    1429 Posts


    please attach your EA I could try to modify for you. Alternatively you can send to

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.