Join our fan page
- Published by:
- Vladimir Karputov
- Views:
- 5297
- Rating:
- Published:
- 2018.07.13 15:10
-
Need a robot or indicator based on this code? Order it on Freelance Go to Freelance
Idea by: Risdyanto Risdyanto.
MQL5 code by: barabashkakvn.
Indicator Resistance & Support is used:
The Expert Advisor works in two timeframes: Indicator Resistance & Support is constructed on the current timeframe, while object Fibonacci Lines (OBJ_FIBO) is based on the High and Low of the daily timeframe, and parameter "Number of DAUY bars for finding support and resistance levels" is equal to "1":
Inputs
- Lots - position volume
- Trailing Stop (in pips) - trailing
- Trailing Step (in pips) - trailing step
- Number of DAUY bars for finding support and resistance levels - amount of days for calculating Fibo
- MA: averaging period - Moving Average averaging period
- MA: horizontal shift - horizontal Moving Average shift
- MA: smoothing type - Moving Average smoothing type
- MA: type of price - price type used as the basis for calculating the Moving Average indicator
- magic number - the unique EA identifier
Exemplary testing on EURUSD,M15:
Translated from Russian by MetaQuotes Ltd.
Original code: https://www.mql5.com/ru/code/21120
![ADX trend smoothed - multi time frame](https://c.mql5.com/i/code/indicator.png)
ADX trend smoothed - multi time frame
![ADX trend - smoothed](https://c.mql5.com/i/code/indicator.png)
ADX trend - smoothed
![Area MACD](https://c.mql5.com/i/code/expert.png)
An unorthodox approach to indicator MACD: The EA calculates the indicator's area displayed above and below zero line.
![Candle shadows v1](https://c.mql5.com/i/code/expert.png)
Candlestick size and shadow analysis. In OnTradeTransaction, opening (DEAL_ENTRY_IN) and closing (DEAL_ENTRY_OUT) the positions are intercepted, as well as closing by Stop loss (DEAL_REASON_SL).