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 environment and also Live environment and confirmed order ticket has value. Seems only happens in test environment.

Bt the way, I have tested other versious orders (Limit order, Market order, etc) in all Test, Forward and Live environments but order ticket is zero for TRADE_TRANSACTION_REQUEST msg only in just the Test environment.

-Pending Buy Delete Send-
■ORQ■ action=TRADE_ACTION_REMOVE, type=ORDER_TYPE_BUY, type_filling=ORDER_FILLING_FOK, magic=1234567890, order=2, position=0, position_by=0, type_time=ORDER_TIME_GTC, expiration=1970.01.01 00:00, symbol=USDJPY, price=0.000, volume=0.00, deviation=0, stoplimit=0.000, sl=0.000, tp=0.000, comment=DelPnd
■ORS■ retcode=TRADE_RETCODE_DONE(10009), order=0, deal=0, price=0.000, volume=0.00, bid=0.000, ask=0.000, request_id=1, retcode_external=0, comment=Request executed

-OnTradeTransaction-
■TOD■ type=TRADE_TRANSACTION_ORDER_DELETE, order=2, order_type=ORDER_TYPE_BUY_STOP, order_state=ORDER_STATE_CANCELED, position=0, position_by=0, time_type=ORDER_TIME_GTC, time_expiration=1970.01.01 00:00, symbol=USDJPY, price=133.885, volume=0.01, price_trigger=0.000, price_sl=0.000, price_tp=0.000
■THA■ type=TRADE_TRANSACTION_HISTORY_ADD, order=2, order_type=ORDER_TYPE_BUY_STOP, order_state=ORDER_STATE_CANCELED, position=0, position_by=0, time_type=ORDER_TIME_GTC, time_expiration=1970.01.01 00:00, symbol=USDJPY, price=133.885, volume=0.01, price_trigger=0.000, price_sl=0.000, price_tp=0.000
■TR■ type=TRADE_TRANSACTION_REQUEST > ■TRQ■ action=TRADE_ACTION_REMOVE, type=ORDER_TYPE_BUY_STOP, type_filling=ORDER_FILLING_FOK, magic=1234567890, order=2, position=0, position_by=0, type_time=ORDER_TIME_GTC, expiration=1970.01.01 00:00, symbol=USDJPY, price=0.000, volume=0.01, deviation=0, stoplimit=0.000, sl=0.000, tp=0.000, commen
■TR■ type=TRADE_TRANSACTION_REQUEST > ■TRS■ retcode=TRADE_RETCODE_DONE(10009), order=0, deal=0, price=0.000, volume=0.00, bid=0.000, ask=0.000, request_id=1, retcode_external=0, comment=

Documentation on MQL5: Trade Functions / OrderGetTicket
Documentation on MQL5: Trade Functions / OrderGetTicket
  • www.mql5.com
OrderGetTicket - Trade Functions - MQL5 Reference - Reference on algorithmic/automated trading language for MetaTrader 5
 
Found an old post which had same issue but I guess it has not been bothered to be fixed as there is a work around to this issue..
 
501 #:
Found an old post which had same issue but I guess it has not been bothered to be fixed as there is a work around to this issue..
If you want a bug to be fixed you have to provide ALL the technical information to reproduce it. That includes code, procedure to follow, etc...
 
Alain Verleyen #:
If you want a bug to be fixed you have to provide ALL the technical information to reproduce it. That includes code, procedure to follow, etc...

Thank you Alain : )

Happy to prepare an EA with detail if it will be reviewed. Shall I just post on this thread or is there a formal thread for bugs?

 
501 #: Happy to prepare an EA with detail if it will be reviewed. Shall I just post on this thread or is there a formal thread for bugs?

You should post it here as there is no formal way to report bugs. Then if other users can reproduce the bug as well, then someone with "contacts" will then deliver the results to the admins, usually via the Russian section of the forum.

Reason: