당사 팬 페이지에 가입하십시오
- 조회수:
- 74403
- 평가:
- 게시됨:
- 2010.08.24 10:12
- 업데이트됨:
- 2016.11.22 07:32
-
이 코드를 기반으로 한 로봇이나 지표가 필요하신가요? 프리랜스로 주문하세요 프리랜스로 이동
Real author:
traderak20, based on MACD.mq5 by MetaQuotes, Copyright 2009, MetaQuotes Software Corp.
A MACD indicator with histogram to show the difference between the MACD and Signal lines.
For the calculation of the MACD line you can choose from the usual price types. For the calculation of the Signal line yo can choose between SMA or EMA. The histogram can be switched between single and multi-color.
Requires: MovingAverages.mqh (default include file in terminal_data_folder\MQL5\Include)
Look in the source to switch on/off error messages:
bool ShowErrorMessages=false; // turn on/off error messages for debugging
Update history:
- Fixed bug with the colors of the histogram;
2010 09 26: v03
- Added MODE_SMMA and MODE_LWMA as MA methods for Signal line;
- Made ENUM_APPLIED_PRICE the last input parameter on the list;
2010 08 24: v02B
- Indicator first published;
![ZeroLag MACD](https://c.mql5.com/i/code/indicator.png)
The MACD oscillator with zero lag.
![Keywords and aliases of MQL5](https://c.mql5.com/i/code/library.png)
The MQL5 keywords and aliases for autoreplace are presented.
![MACD Histogram, multi-timeframe, multi-color [v03]](https://c.mql5.com/i/code/indicator.png)
MACD indicator with histogram, can be applied any timeframe (higher or lower than the current chart's timeframe).
![Functions to simplify work with orders](https://c.mql5.com/i/code/library.png)
All we want is to think about algorithms and methods, not about syntax and values how to place orders. Here you have simple functions to manage positions in MQL5.