Expert Advisors • Indicators • Scripts • Libraries

MQL.RobotFX.org is the biggest collection of MetaTrader expert advisors (MT5 & MT4), indicators, scripts and libraries that can be used to improve trading results, minimize risks or simply automate trading tasks

MetaTrader 5 Indicator | Projection_Oscillator

Projection_Oscillator is based on Projection_Bands. Unlike the original indicator, it displays the line in a separate window with overbought/oversold levels.

The indicator has three input parameters:

  • Period - calculation period;
  • Overbought - overbought level;
  • Oversold - oversold level.

Calculation:

PO = 100 * (Close-DnBand) / (UpBand-DnBand)  UpBand = Max(High, PrevHigh*SlopeHigh)  DnBand = Min(Low, PrevLow*SlopeLow)  

where:

  • SlopeHigh - regression line slope of High prices in the Period range;
  • SlopeLow - regression line slope of Low prices in the Period range.

MetaTrader Experts, Indicators, Scripts and Libraries

Fig. 1. Projection Oscillator

MetaTrader Experts, Indicators, Scripts and Libraries

Fig. 2. Projection Oscillator + Projection Bands

21546