Strategy Tester ignoring SL / TP

To add comments, please log in or register
Deadmilkman
9
Deadmilkman  

Greetings.

I've coded a simple EA that uses CTrade to buy, sell and modify orders.

When buying or selling, I'm using SL / TP to close orders.

The issue is that although SL / TP are correctly set, they're completely ignored by Strategy Tester. The prices will reach the SL / TP levels many times, but the order never closes.

The following is the output from the "Journal" tab:

https://www.dropbox.com/s/a2xysr8f4z4ufp2/2019-03-25%2020_16_54-Strategy%20Tester%20Visualization%20_%20bands01%20on%20WDOJ19%2CM1%20from%202018.01.01%20to%202019.03..png?dl=0

Prices touching the SL / TP price:

https://www.dropbox.com/s/a7bnzpjtu4cpb6y/2019-03-25%2020_26_49-Strategy%20Tester%20Visualization%20_%20bands01%20on%20WDOJ19%2CM1%20from%202018.01.01%20to%202019.03..png?dl=0

The funny thing is that running the same EA in my demo account, in this same symbol, works fine. It seems to be something missing in my EA regarding the Strategy Tester.

Any help is greatly appreciated.

Regards.

To add comments, please log in or register