Hello,
I need the MACD with 2 lines like in the screenshot above if possible the code MQL5. The screenshot is taken in Tradingview.
.
Thank you for your help!
the MACD already in the terminal has both the Main & Signal lines, it just shows the Main as a histogram
and you can just change the histogram to a line in the code with a simple line change
You can search on the forum and CodeBase about it.
For example -
1.Composite MACD 2 (source code for MT4, but I think it should be fixed) - post #708:
2.More - in CodeBase here (for MT5).
3.More - in CodeBase here and on the forum.
![MACD indicator MACD indicator](https://c.mql5.com/36/55/macd-indicator.jpg)
- 2013.02.25
- www.mql5.com
https://www.mql5.com/en/forum/193510
![How can I search for indicators and other elements in this forum? How can I search for indicators and other elements in this forum?](https://c.mql5.com/36/55/how-can-i-search-for-indicators.jpg)
- 2017.05.29
- www.mql5.com
You can search on the forum and CodeBase about it.
For example -
1.Composite MACD 2 (source code for MT4, but I think it should be fixed) - post #708:
2.More - in CodeBase here (for MT5).
3.More - in CodeBase here and on the forum.
HI Serguey,
Thank you for your help this in the attached screenshot is exactly what i need. But can you please help me in that big amount of messages... to find it for download? Is it this one
to doexactly that in mt5 is this one?
![Leader of the MACD Leader of the MACD](https://c.mql5.com/36/55/leader-of-the-macd.jpg)
- www.mql5.com
HI Serguey,
Thank you for your help this in the attached screenshot is exactly what i need. But can you please help me in that big amount of messages... to find it for download? Is it this one
to doexactly that in mt5 is this one?
Yes, it is more closer to your image (in case of MT5 for example):
https://www.mql5.com/en/code/16739
And you can take the other codes of Mladen here.
Besides, there are some EAs based on MACD (from different variations of MACD indicator) so you can look at the codes of Vladimir here (in case of MT5 too).
![Leader of the MACD Leader of the MACD](https://c.mql5.com/36/55/leader-of-the-macd__1.jpg)
- www.mql5.com
![MQL5 - Language of trade strategies built-in the MetaTrader 5 client terminal](https://c.mql5.com/i/registerlandings/logo-2.png)
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
Hello,
I need the MACD with 2 lines like in the screenshot above if possible the code MQL5. The screenshot is taken in Tradingview.
.![](https://c.mql5.com/3/384/MACD__1.PNG)
Thank you for your help!