Join our fan page
Flat Trend EA - expert for MetaTrader 5
- Published by:
- Vladimir Karputov
- Views:
- 5176
- Rating:
- Published:
- 2018.10.25 16:09
- Need a robot or indicator based on this code? Order it on Freelance Go to Freelance
The author of the idea: Scriptor
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:
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:
Translated from Russian by MetaQuotes Ltd.
Original code: https://www.mql5.com/ru/code/21929
TrendManager indicator with the timeframe selection option available in input parameters
ssb5_123Defining 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.
Flat/trend indicator.
XRSI_Candle_VolRSI_Candle_Vol indicator with additional averaging of the resulting candles