MT5 Strategy Tester not processing TP and SL

 

Hi folks,

I'm an IT professional with some coding experience but quite new to MQL5.

I recently created my first EA which sends Buy Stop and Sell Stop orders via CTrade class.

Although it does trigger the buy or sell order correctly, in the Strategy Tester, it does not triggers the TP and SL orders, thus leaving the original position open indefinitely (until the end of the test).

Is there any limitation with the Strategy Tester when it comes to process TP and SL for Buy/Sell Stop orders?

If so, any suggestions?

 
SOLVED: A friend of mine found the answer. The currency needed to be manually typed in the strategy tester in order to have TPs and SLs processed. I was naively assuming the strategy tester would set itself to the symbol's native currency.
 
Stabewan #:
SOLVED: A friend of mine found the answer. The currency needed to be manually typed in the strategy tester in order to have TPs and SLs processed. I was naively assuming the strategy tester would set itself to the symbol's native currency.

could you share how? Im having the same issue. 

did you mean the field infront of Deposit, that selected USD automatically?