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 Indicators | ShadeNY_candle | MetaTrader Tool

RobotFX curates the best open-source MetaTrader code to inspire your trading automation.

Real author:

sx ted

An indicator of trading sessions displaying bodies and shadows of resulting session candlesticks using DRAW_FILLING buffers.

Reduce lag and improve accuracy with the NonLagMA Expert Advisor for MT4/MT5. Discover it.

The indicator determines the width of the channel and location of sessions on a chart in accordance with the values ​​of the following input parameters:

//+----------------------------------------------+
//| Indicator input parameters                   |
//+----------------------------------------------+
input Hour   StartHour=H07;                            // Session start hour
input Min    StartMinute=M00;                          // Session start minute
input Hour   EndHour=H13;                              // Session end hour
input Min    EndMinute=M00;                            // Session end minute
input uint   Shift=0;                                  // Horizontal shift of the channel in bars

Depending on candlestick direction its body is painted in blue or pink, shadows are painted in lime or red.

Figure 1. Indicator ShadeNY_candle

Figure 1. Indicator ShadeNY_candle

Build better strategies with RobotFX professional tools – check them out.

2097

Best MetaTrader Indicators + Profitable Expert Advisors