.

 
KT313:

I have this code:

 I guess by using this, i get the main Line of the MACD.

What do I have to do to also get the Signal-line?

In the file i've attached, i guess what i'm getting from the code is the value for the blue line (correct me if i'm wrong, maybe i get the red line). Regardless of what line i'm getting, I still need the other one.

Can you help me with this?

Thanks!

edit: just for clarification, it's in mql5 for the metatrader 5


You read the iMACD documentation which contains an extensive example that covers all your questions.

Documentation on MQL5: Technical Indicators / iMACD
Documentation on MQL5: Technical Indicators / iMACD
  • www.mql5.com
//|                                                   Demo_iMACD.mq5 | //|                        Copyright 2011, MetaQuotes Software Corp. | //|                                             https://www.mql5.com | "The method of creation of the handle is set through the 'type' parameter (function type...
 
Drazen Penic:


You read the iMACD documentation which contains an extensive example that covers all your questions.

Ah i think i got it now, it's in the other buffer. Thank you :)