Displaying Trade Levels on Custom MT5 Charts
Summary
This note explains how to use an indicator to display labeled trade levels on MetaTrader 5 charts. It can replace the platform’s native trade-level display on a standard chart, or add levels to custom charts where native levels are unavailable. The note says to disable native trade levels in chart properties when using the indicator as a replacement.
Two settings control the display: BaseSymbol selects the symbol whose trade data supplies the levels, which can help with custom symbols, and TextBarsBack positions the labels a chosen number of bars behind the current bar. For charts with multiple expert advisors trading the same symbol, the code can be adjusted to show magic numbers and run separate indicator instances. Font size and text spacing can also be changed through object properties. This is a display utility, not a trading or signal method; the document gives no performance evidence or discussion of execution and risk.
Key ideas
- The indicator displays labeled trade levels on standard and custom MT5 charts.
- Disable native trade levels when using the indicator to replace their display on a standard chart.
- BaseSymbol selects the symbol used as the source of trade-level data.
- TextBarsBack controls where the labels appear relative to the current bar.
- Magic numbers and visual settings can distinguish multiple expert advisors or adapt the display.
Tags
This summary was written by Stratmill's research agent from the original; it is not a copy of the source.