거래 로봇을 무료로 다운로드 하는 법을 시청해보세요
당사를 Twitter에서 찾아주십시오!
당사 팬 페이지에 가입하십시오
스크립트가 흥미로우신가요?
그렇다면 링크 to it -
하셔서 다른 이들이 평가할 수 있도록 해보세요
스크립트가 마음에 드시나요? MetaTrader 5 터미널에서 시도해보십시오
지표

Traditional MACD with Momentum indicador and alarms - MetaTrader 4용 지표

조회수:
38810
평가:
(31)
게시됨:
2015.10.29 10:31
업데이트됨:
2016.11.22 07:32
MQL5 프리랜스 이 코드를 기반으로 한 로봇이나 지표가 필요하신가요? 프리랜스로 주문하세요 프리랜스로 이동

Real author:

João Nunes @ neskk.com - 2015

Traditional MACD indicator with a Momentum indicator and alarms. Allows customization of most of the parameters without having to dive into code.

This is my MACD indicator, it has well structured code so even beginners can understand it and perhaps modify it. I've grabbed the Momentum idea from another indicator: https://www.mql5.com/en/code/11511.

I wanted a traditional MACD indicator where:

  • MACD line = FastEMA - SlowEMA
  • Signal = 9-day EMA of MACD
  • Histogram = MACD - Signal

The Momentum line is calculated by comparing two MACD values with 10 bars in between. Then Momentum is passed into a Moving Average to make it smoother.

Since MACD 0-crossovers and Momentum reversals can be important signals for traders, I've incorporated two alarms, one for each of the signals mentioned.

Note: These 'alarms' actually are being printed on Experts tab, if you want alerts, just uncomment the respective lines in the code (instead of Print() function use Alert()).

I wanted to make this indicator user friendly and customizable, so I've included a lot of parameters:

  • BarsToProcess — Self explanatory. Note: This affects the ability for the graph to render different time frames, at 1000 you can go up to 1D!
  • AppliedPrice — Price used to calculate MACD.
  • PeriodFastEMA — Period used to calculate fast moving average.
  • PeriodSlowEMA — Period used to calculate slow moving average.
  • PeriodSignal — Period analyzed to calculate the signal line.
  • SignalMA — Moving average method used to calculate the signal line.
  • DeltaMomentum — Distance between the two points analyzed to calculate the Momentum.
  • PeriodMomentum — Period analyzed to compute the moving average of the Momentum (Momentum smoothing).
  • MomentumMA — Moving average method used to calculate the smoothed Momentum.
  • AlarmZeroCrossover — Enables/Disables the alarm for MACD 0-crossovers.
  • AlarmMomentumReverse — Enables/Disables the alarm for Momentum reversals.

neskk-macd-graph

AutoSLTP AutoSLTP

This EA will help you to set Stop Loss and Take Profit.

Trend_Catcher Trend_Catcher

The EA looks for trend using three MAs (period 200, 50, 25 or other) and opens orders using the Parabolic SAR indicator. There is martingale in an Expert Advisor, the lot is calculated in percents from a deposit depending on Stop Loss.

Candle SnR Candle SnR

Indicator S&R based on OHCL candles.

FibonacciPivot FibonacciPivot

Fibonacci indicator drawing levels on previous day.