Page 1 of 1

MT5 - show positions on custom chart

Posted: Tue Feb 06, 2024 4:51 am
by JohnnyRy
Here is an indicator that shows open positions on an MT5 custom chart. The BaseSymbol input must be set at a real/tradable chart symbol. The adjustable input controls the location of the position text in bars back (into chart history). Although this indicator merely shows open positions for the current chart symbol, another coder can make more sophisticated use of the source code by adding additional position property conditions to the code. I've left calls to additional position properties active for this purpose, even though my conditions don't make use of them. Just keep in mind that in MT5, there are orders, deals, and positions... unlike MT4.


Re: MT5 - show positions on custom chart

Posted: Thu Mar 28, 2024 10:09 am
by JohnnyRy
Introducing... version 2 supporting all positions, integrated stops, and independent pending orders:


Re: MT5 - show positions on custom chart

Posted: Fri Mar 29, 2024 12:36 am
by JohnnyRy
Quick update... I found that I missed a specific type of stops--stops that are integrated into a main pending order. Fixed in version 3:

EDIT: I replaced this file once without a changing the version due to a cosmetic label bug. At that time, there was already 1 download. Please download again.