Download MetaTrader 5

Main and Signal ? What's the difference?

To add comments, please log in or register
Have you found an interesting application? Publish it in Code Base - millions of traders will appreciate that!
Weixing Meng
201
Weixing Meng 2016.03.02 10:43 

Thank you for your help!

What's the difference of the following two ?

MODE_MAIN

MODE_SIGNAL 

They are not calculated the same way ?  

Thank you a lot for your help. 

Stuart Browne
5818
Stuart Browne 2016.03.02 10:58  
Marimelody:

Thank you for your help!

What's the difference of the following two ?

MODE_MAIN

MODE_SIGNAL 

They are not calculated the same way ?  

Thank you a lot for your help. 

They are for indicators (usually oscillators) that have both a "main" and a "signal" line, eg Stochastic, some MACD's etc. It just points to the relevant buffer
Weixing Meng
201
Weixing Meng 2016.03.02 12:05  
Stuart Browne:
They are for indicators (usually oscillators) that have both a "main" and a "signal" line, eg Stochastic, some MACD's etc. It just points to the relevant buffer

But there are 3 parameters, like (5,3,3) used in iStochastic(),  it's 2-line already ?

Thank you a lot for your help, I'm a beginner. 

Stuart Browne
5818
Stuart Browne 2016.03.02 12:21  
Marimelody:

But there are 3 parameters, like (5,3,3) used in iStochastic(),  it's 2-line already ?

Thank you a lot for your help, I'm a beginner. 

The 5,3,3 in the Stochastic are the parameters (K Period, D Period & Slowing). This then creates the Stochastic outputs which in the case of a stochastic, consists of a "main" line, and a "signal" line. Other oscillators do not have main and signal lines. eg the RSI has only one line. So it all depends on the oscillator (or other indicator) you are trying to get the information from.
To add comments, please log in or register