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 | Heiken_Ashi_Smoothed_VolatilityStep_tmf_Alert

The Heiken_Ashi_Smoothed_VolatilityStep_Alert indicator with the ability to highlight trading time zones, selected in the indicator input parameters. Such zones are shown in a different histogram color.

input bool   TimeTrade=true;      //Enable highlighting of trading time zones  input HOURS  StartH=ENUM_HOUR_4;  //Trading start (hours)  input MINUTS StartM=ENUM_MINUT_0; //Trading start (minutes)  input HOURS  EndH=ENUM_HOUR_17;   //Trading end (hours)  input MINUTS EndM=ENUM_MINUT_59;  //trading end (minutes)  

Histogram bars outside the trading time range are shown in pale gray; bars having the size greater that the trigger level

input uint AlertLevel=150;                      // Trigger level  

within the range are shown in yellow; those below the trigger level have the steel gray color. Alerts, push notifications and emails are only sent during the marked trading sessions.

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".

MetaTrader Experts, Indicators, Scripts and Libraries

Fig.1. The Heiken_Ashi_Smoothed_VolatilityStep_tmf_Alert indicator 

23232