Announcement

Collapse
No announcement yet.

MAStudy() question

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • MAStudy() question

    can anyone explain what this parameter means: StudyType.. How can i it make a difference if i put somethign else in it..

    Thank you.

  • #2
    subhii
    I imagine you are referring to this definition.
    That is an optional (hence the square brackets) parameter required when creating studies on studies. At the link above look at the nStudy2 example. The explanation is provided just below that.
    Alex

    Comment


    • #3
      I understand that it is used for studies over studies.. but how does it affect it?

      var vRSI14 = new RSIStudy(14, "Close");
      var vEMA3_of_vRSI14 = new MAStudy(3, 0, vRSI14, RSIStudy.RSI,MAStudy.EXPONENTIAL);


      how will the second line affect the code if i change it to:

      var vEMA3_of_vRSI14 = new MAStudy(3, 0, vRSI14, MAStudy.EXPONENTIAL);

      Comment


      • #4
        subhii
        In that particular example it has no effect. In fact you can leave the StudyType out and the result will be the same.
        However if a study has more than one property such as for example the Stochastic which has StochStudy.SLOW and StochStudy.FAST then you would need to use the parameter to define which property you will be using.
        Alex

        Comment

        Working...
        X