Watch how to download trading robots for free
Find us on Facebook!
Join our fan page
Interesting script?
So post a link to it -
let others appraise it
You liked the script? Try it in the MetaTrader 5 terminal
Experts

Flat Trend EA - expert for MetaTrader 5

Published by:
Vladimir Karputov
Views:
5176
Rating:
(15)
Published:
2018.10.25 16:09
\MQL5\Experts\
Flat Trend EA.mq5 (40.05 KB) view
\MQL5\Indicators\
FlatTrend.mq5 (25.03 KB) view
Need a robot or indicator based on this code? Order it on Freelance Go to Freelance

The author of the ideaScriptor

MQL5 code author: barabashkakvn

The EA uses the FlatTrend indicator:

The indicator defines the market state: flat or trend.

Interpretation of the histogram color buffers when setting "signal timeframe" PERIOD_CURRENT:

FlatTrend

If Use hour flag is enabled - from Start Hour to End Hour on the bar #Current bar, the FlatTrend is surveyed. If a signal is present, open Buy or Sell. Set a stop loss (only if Stop Loss is not "0.0") and a take profit (only if Take Profit is not "0.0").

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

Test on EURUSD, M15 with these parameters:

Flat Trend EA Optimization


Flat Trend EA


Translated from Russian by MetaQuotes Ltd.
Original code: https://www.mql5.com/ru/code/21929

TrendManager_HTF TrendManager_HTF

TrendManager indicator with the timeframe selection option available in input parameters

ssb5_123 ssb5_123

Defining a signal based on several indicators: iMA (Moving Average, MA), iMACD (Moving Average Convergence/Divergence, MACD), iStochastic (Stochastic Oscillator), iOsMA (Moving Average of Oscillator, OsMA) and iAO (Awesome Oscillator, AO). The indicators are surveyed in a certain sequence.

FlatTrend FlatTrend

Flat/trend indicator.

XRSI_Candle_Vol XRSI_Candle_Vol

RSI_Candle_Vol indicator with additional averaging of the resulting candles