Reply

Time between entries

1 replies

Ben Osborn

Subscriber, bbp_participant, 0 replies.

Visit profile

4 years ago #247602

Hi,

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.

Cheers,

Ben

0

tomas262

Administrator, sq-ultimate, 2 replies.

Visit profile

4 years ago #247615

Hello,

please attach your EA I could try to modify for you. Alternatively you can send to [email protected]

0

Viewing 1 replies (of 1 total)