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 | XCCX StDev Signal

Real author:

olegok83

Semaphore signal indicator based on the XCCX_StDev indicator values.

input Applied_Mode Mode=Mode_LevelsStDev_On; // Algorithm variant

Depending on the value of Mode input parameter, the indicator uses one of the 5 methods of determining signals:

  1. Levels only. The indicator determines when the original oscillator XCCX enters the overbought or oversold areas specified by the UpLevel and DnLevel input parameters.
  2. Deviation only. The indicator captures the moments when the deviation exceeds the boundary values determined by the dK input parameter.
  3. Levels plus deviation. In this case, signals appear when the deviation exceeds the boundary values determined by the dK input parameter, and the XCCX oscillator is in the oversold or overbought area.
  4. Levels plus deviation by trend. This algorithm is similar to previous, but only uptrend signals are taken into account in the overbought area, and downtrend signals in the oversold area.
  5. Levels plus deviation against trend. The last algorithm is similar to third algorithm, but only downtrend signals are taken into account in the overbought area, and uptrend signals in the oversold area.

The indicator uses SmoothAlgorithms.mqh library classes (copy it to <terminal_data_folder>\MQL5\Include). The use of the classes was thoroughly described in the article "Averaging Price Series for Intermediate Calculations Without Using Additional Buffers".

This indicator requires the compiled indicator file XCCX_StDev.mq5. Place it in <terminal_data_folder>\MQL5\Indicators\.

MetaTrader Experts, Indicators, Scripts and Libraries

Fig.1. The XCCX_StDev_Signal indicator

12826

Best MetaTrader Indicators + Profitable Expert Advisors