Modifying Chart-Based Indicator Objects in MetaTrader 5
Summary
The document describes a MetaTrader 5 technique for changing the chart objects drawn by an indicator when its source code is unavailable and it does not expose indicator buffers. The method first logs chart object names to identify a naming prefix associated with the indicator, then uses that prefix to find objects for modification. A parameter controls how many matching objects are spared, allowing other objects to be removed or altered.
The example applies the approach to a trend indicator that draws many diagonal lines, reducing the displayed lines to a smaller selection. This is chart presentation and platform-integration guidance, not a method for improving signal quality or trading returns. The article names a specific third-party indicator and says it must be installed for the example to work; results may depend on the indicator’s object naming conventions and behavior. The supplied text describes the approach but does not include the actual implementation code or evidence that the remaining lines are more predictive.
Key ideas
- Some indicators draw chart objects instead of exposing values through buffers.
- Logging chart object names can reveal a prefix for identifying an indicator’s objects.
- Objects matching a prefix can then be modified or removed while sparing a chosen number.
- The example filters excess trend lines from a third-party MetaTrader indicator.
- This technique changes chart display and does not demonstrate improved trading performance.
Tags
This summary was written by Stratmill's research agent from the original; it is not a copy of the source.