Skip to content
All library documents

Combining Two RSI Oscillators with an Inverted Difference

Article MQL5 code base

Summary

This indicator combines two RSI calculations using separate configurable periods. It inverts the second RSI around the midpoint of 50 by subtracting its value from 100, then calculates the difference between that inverted series and the first RSI. It also computes the derivative of the difference to represent its rate of change.

The display layers the two RSI series as a colored cloud, shows their difference in a gray histogram, and plots the histogram's derivative as an orange line. This offers a way to view both divergence between differently parameterized RSI readings and the change in that divergence. The description does not specify thresholds, entry or exit rules, preferred markets, or empirical tests, so it defines an indicator construction rather than a validated trading strategy.

Key ideas

  • The indicator calculates two RSI series with independently set periods.
  • It reflects the second RSI around 50 by using 100 minus its value.
  • A histogram displays the difference between the first RSI and the inverted second RSI.
  • A derivative line shows how quickly that difference changes.
  • The document does not provide trade rules or performance testing.

Tags

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