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

You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
Flat-Trend_HTF:
The Flat-Trend indicator with the timeframe selection option available in the input parameters:
This indicator requires Flat-Trend.mq5 indicator file. Place it in <terminal_data_folder>\MQL5\Indicators.
Fig.1. The Flat-Trend_HTF indicator
Author: Nikolay Kositsin