Welcome Forex EA downloads & MT4/MT5 auto-trading resources — EAs, Gold EAs, quant tools and real-world automation.
Sign In Sign Up

Flat Trend EA - MetaTrader 5 Expert | Forex Indicator Download - MT4/MT5 Resources

author EAcpu | 3 reads | 0 comments |

Flat Trend EA - expert for MetaTrader 5

Flat Trend EA - expert for MetaTrader 5

Flat Trend EA - expert for MetaTrader 5

Author of the idea : Screenwriter

MQL5 code author : Balabashka Kong

The EA uses the flattened trend indicator:

This indicator defines the market state: flat or trending.

Interpretation of the histogram color buffer when setting " Signal time range " PERIOD_CURRENT:

Flat Trend EA - expert for MetaTrader 5

If "Use hour markers" is enabled - from start time to end time in bar #current bar , this flattening trend is investigated. If there is a signal, open buy or sell . Set Stop Loss (only if Stop Loss is not "0.0") and Take Profit (only if Take Profit is not "0.0").

Trailing is activated if Trailing Stop is not "0.0".

Testing EURUSD and M15 has these parameters :

Flat Trend EA - expert for MetaTrader 5

Flat Trend EA - expert for MetaTrader 5


Attachment download

📎 flat_trend_ea.mq5 (40.05 KB)

📎 flattrend.mq5 (25.03 KB)

Source: MQL5 #21929

Verification code Refresh