당사 팬 페이지에 가입하십시오
- 조회수:
- 45077
- 평가:
- 게시됨:
- 2009.05.27 06:07
- 업데이트됨:
- 2014.04.21 14:53
-
이 코드를 기반으로 한 로봇이나 지표가 필요하신가요? 프리랜스로 주문하세요 프리랜스로 이동
MTF MACD is a MetaTrader indicator based on well known MACD. Moving Average Convergence / Divergence, is a technical analysis indicator created by Gerald Appel in the 1960s. It shows the difference between a fast and slow exponential moving average (EMA) of closing prices. Additionally it has signal line which is simple moving average (SMA) of main value of indicator. MACD is a trend following indicator, and is designed to identify trend changes. It's generally not recommended in ranging market conditions.
In MetaTrader we have MACD already included as a standard technical indicator. However it can be used only for current timeframe. When we are looking for trend, it is very desirable to have MACD showing higher timeframes. MTF MACD presented here has additional parameter - TimeFrame. You can use it to set up higher timeframe from which MACD will calculate its values. Because values are derived from bars, when using higher timeframes, you will notice rough shape of indicator lines.
MTF MACD settings:
TimeFrame
Default value is 0 - means current timeframe. For other timeframes: 1=M1, 5=M5, 15=M15, 30=M30, 60=H1, 240=H4, 1440=D1, 10080=W1, 43200=MN1
FastEMA
Default value is 12. This is fast exponential moving average.
SlowEMA
Default value is 26. This is slow exponential moving average.
Signal
Default value is 9. This is signal line and it is simple moving average.
- Applied_price
Default value is 0 - means Close price used for MA calculations. For other types of price: 0-CLOSE, 1-OPEN, 2-HIGH, 3-LOW, 4-MEDIAN, 5-TYPICAL, 6-WEIGHTED.
- Shift
Default value is 0. This parameter shifts whole indicator by Shift number of bars from set timeframe to the right on the chart.
Example.
MTF MACD screenshot
![ytg_Multi_Stoch](https://c.mql5.com/i/code/expert.png)
The multiple currency adviser on the indicator Stochastic.
![TST](https://c.mql5.com/i/code/expert.png)
Without the display adviser.
![MTF Relative Strength Index](https://c.mql5.com/i/code/indicator.png)
Multi timeframe Relative Strength Index - has additional parameter - TimeFrame. You can use it to set up higher timeframe from which Relative Strength Index will calculate its values.
![Trainyourself EA](https://c.mql5.com/i/code/expert.png)
This is an EA I coded to make trades and experiment with trading in the Strategy Tester. Drag and drop objects in a yellow basket and control your orders.