Skip to content
All library documents

Color-Coded Moving Average Signals from RSI Threshold Crossings

Article MQL5 code base

Summary

This indicator colors a moving average according to whether the RSI crosses configured upper or lower levels. An upward crossing marks an uptrend state, while a downward crossing marks a downtrend state, giving the trader a visual way to inspect direction on a price chart. The description presents it as a tool for seeing a pair’s trend; it does not specify entry, exit, or risk rules.

Its settings let the user choose the moving average period and method, RSI period and applied price, separate RSI thresholds, and how many bars of the line to display. A reverse-signals option swaps the uptrend and downtrend interpretations. The document provides no backtest, market examples, or performance evidence, and does not explain how signals behave when RSI moves between the thresholds. Results therefore depend on the chosen settings and should not be read as proof of predictive value.

Key ideas

  • The indicator changes a moving average’s color when RSI crosses configured levels.
  • An upward RSI threshold crossing represents an uptrend state, and a downward crossing represents a downtrend state.
  • Users can configure the moving average and RSI inputs, thresholds, and displayed bar count.
  • A reverse-signals setting inverts the trend interpretation.
  • The description gives no performance tests or rules for managing trades.

Tags

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