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

MACD MA Price - MetaTrader 4용 지표

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

The standard MACD indicator is calculated by formulas:

MACD = EMA(CLOSE, 12) - EMA(CLOSE, 26)

SIGNAL = SMA(MACD, 9),

where main line (MACD) is drawn on the exponential moving average (EMA), a signal line (SIGNAL) on the simple moving average (SMA), and applied price is limited to the closing price (CLOSE).

The proposed indicator MACD MA Price is more elastic in input parameters. It will allow you to use other moving averages and standard spectrum of applied prices. This indicator is prepared based on MACD template.

Taking into account additional input parameters in indicator MACD MA Price, formulas are as follow:

MACD = MACD_MA_method (Applied_price, 12) - MACD_MA_method (Applied_price, 26)
SIGNAL = Signal_MA_method (MACD, 9),

For those who will want in formula (1) have possibility to select separate mode of moving average, an additional modification of the indicator MACD MA Price-2 is prepared:

MACD = MACD_MA_method_1 (Applied_price, 12) - MACD_MA_method_2 (Applied_price, 26)

SIGNAL = Signal_MA_method (MACD, 9),

Input parameters:

MACD_MA_method, MACD_MA_method_1, MACD_MA_method_2 и Signal_MA_method:

  • 0 - Simple moving average,
  • 1 - Exponential moving average,
  • 2 - Smoothed moving average,
  • 3 - Linear weighted moving average.

Applied_price:

  • 0 - close price,
  • 1 - open price,
  • 2 - high price,
  • 3 - low price,
  • 4 - median price, (high+low)/2,
  • 5 - typical price, (high+low+close)/3,
  • 6 - weighted close price, (high+low+close+close)/4.

After receiving suggestions, I prepared some additional modifications with colored histogram. Take them from zip-file with description of input parameters.

MetaQuotes Ltd에서 러시아어로 번역함.
원본 코드: https://www.mql5.com/ru/code/10786

PSAR trader PSAR trader

Trades using parabolic sar signals

Constant Range Detector Constant Range Detector

Detects and displays fixed value of Constant Range Candles - Range Bars and Renko Boxes. Place any position on chart.

BreakOut + MM + Multi-currencies BreakOut + MM + Multi-currencies

The EA based on break-outs with money management. It is able to trade on multiple pairs.

Running Median Indicator for MT4 Running Median Indicator for MT4

This indicator computes the median of odd span. It is often considered as one of the most robust smoothing operator in the presence of outlier values, and particularly more robust than the mean.