Skip to content
All library documents

Configuring and Smoothing a Custom RSI Indicator

Article MQL5 code base

Summary

The document describes updates to a custom Relative Strength Index indicator used with an Expert Advisor. Users can set the main line’s color and width and configure its two reference levels as input parameters. Because those settings are passed from the Expert Advisor, custom levels can appear during visual testing; the example gives levels of 35 and 75.

It also adds smoothing to the indicator buffer using a simple averaging method with a period of 6. The text shows that an Expert Advisor can request an indicator handle with the selected RSI period and display settings, and that initialization should stop if the handle cannot be created. These details explain indicator configuration and integration, rather than a trading rule: the document gives no entry or exit logic, backtest, or evidence that smoothing improves results. Its value is primarily for users adapting or testing RSI-based tools, who should assess how smoothing affects signal timing in their own setup.

Key ideas

  • The custom RSI allows its line appearance and two reference levels to be configured through Expert Advisor inputs.
  • Configured levels can be displayed during visual testing.
  • The indicator buffer is smoothed with a simple average over a period of 6.
  • An Expert Advisor creates an indicator handle using the desired RSI period and display parameters.
  • The document explains implementation settings but does not establish a trading strategy or performance benefit.

Tags

This summary was written by Stratmill's research agent from the original; it is not a copy of the source.