Indicators: Flat-Trend_HTF

 

Flat-Trend_HTF:

The Flat-Trend indicator with the timeframe selection option available in the input parameters:

input ENUM_TIMEFRAMES TimeFrame=PERIOD_H4// Indicator chart period (timeframe)

This indicator requires Flat-Trend.mq5 indicator file. Place it in <terminal_data_folder>\MQL5\Indicators.

Fig.1. The Flat-Trend_HTF indicator

Fig.1. The Flat-Trend_HTF indicator

Author: Nikolay Kositsin

 
Automated-Trading:

Flat-Trend_HTF:

Author: Nikolay Kositsin

Error compiling:

flat-trend_htf.mq5(54,34) : error 262: 'MODE_LWMA' - cannot convert enum

This is easy to fix. Just change MODE_LWMA to MODE_LWMA_ (with trailing underscore).

Reason: