Forum

Sell stop in strategy tester doesn't get trigger.

Anyone knows how I can debug this? In Strategy tester, I found a strange symptom that tester doesn't not execute the sell stop order to return deal or error msg when price reach the trigger price. As you can see in below screenshot, there is a sell stop order that should get triggered/executed if

Found Bug: Order ticket is zero in TRADE_TRANSACTION_REQUEST msg for Pending order delete transaction

Would like to contribute to improve MT5, where do I report found bug? Tested on both MQL MT5 (build 3143) and broker's MT5 (builid 3091) and found in Test enviroment, order ticket is zero in TRADE_TRANSACTION_REQUEST msg for Pending order delete transaction. Used the same EA code in Forward_test

Two questions in OnTradeTransaction code found in Forum

I have two questions in below code I found in MQL5 forum. Question 1 (Highlight in red): Why this needed? When "trans.type" is TRADE_TRANSACTION_ORDER_ADD, there should be no deal yet. Question 2 (Highlight in green): When there are partial fills , order ID on 2nd deal will be automatically