workaround to display the order ticket ID number for SL and TP level lines on charts (as MT4 does)

 

As one knows, MetaTrader 4 by default shows Stop Loss and Take Profit level for each pending order and each open position on the chart. As each SL/TP line and each order level is labeled with and the order ID number, it is easy to see at a glance which SL or TP line belongs to which order (see an example at the attached sreenshot).

But, unlike MetaTrader 4 version, MetaTrader 5 does not show order ID numbers next to SL and TP level lines. (It did in the old versions, but the developer removed this option.) For me, the lack of order numbers for the SL/TP lines is the big headache. I would like to switch to MT5 as it much better in many aspects, but I don't see how to trade with it without SL/TP order numbers. Is there a workaround, may be some indicator or expert taht can show orders ID numbers for SL/TP level lines?

To moderators:  I'm not sure if it is the correct section for this post. May be I should have asked for help in "Technical indicators" or "Expert Advisers" subforum? If so, please relocate my post to the right place. Thanks!

Documentation on MQL5: Constants, Enumerations and Structures / Trade Constants / Order Properties
Documentation on MQL5: Constants, Enumerations and Structures / Trade Constants / Order Properties
  • www.mql5.com
Order Properties - Trade Constants - Constants, Enumerations and Structures - MQL5 Reference - Reference on algorithmic/automated trading language for MetaTrader 5