Main and Signal ? What's the difference?

 

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. 

 
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
 
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. 

 
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.
Reason: