There are several studies that can be coded using "new.xxxStudy" as I've found in some fileshare examples.
i.e.,
vMACD = new MACDStudy(Fast, Slow, Smoothing, Source, TypeOsc, TypeSig);
(in the above code the last two parameters are boolean and I don't know to what they refer)
1- Is there a link to a help file that describes the different "new.xxxStudy(..." that exist and their parameters?
2- Also, is the following code redundant?
/******************/
if ( bInit == false ) {
if (vMACD == null) vMACD = new MACDStudy(Fast, Slow, Smoothing, Source, TypeOsc, TypeSig);
bInit = true;
}
/******************/
3- If so, would the following code produce the same effect programatically by removing the "if (vMACD == null) " (the charts look the same, I'm just trying to understand the effect of the code)?
/******************/
if ( bInit == false ) {
vMACD = new MACDStudy(Fast, Slow, Smoothing, Source, TypeOsc, TypeSig);
bInit = true;
}
/******************/
Thank you.
i.e.,
vMACD = new MACDStudy(Fast, Slow, Smoothing, Source, TypeOsc, TypeSig);
(in the above code the last two parameters are boolean and I don't know to what they refer)
1- Is there a link to a help file that describes the different "new.xxxStudy(..." that exist and their parameters?
2- Also, is the following code redundant?
/******************/
if ( bInit == false ) {
if (vMACD == null) vMACD = new MACDStudy(Fast, Slow, Smoothing, Source, TypeOsc, TypeSig);
bInit = true;
}
/******************/
3- If so, would the following code produce the same effect programatically by removing the "if (vMACD == null) " (the charts look the same, I'm just trying to understand the effect of the code)?
/******************/
if ( bInit == false ) {
vMACD = new MACDStudy(Fast, Slow, Smoothing, Source, TypeOsc, TypeSig);
bInit = true;
}
/******************/
Thank you.
Comment