Announcement

Collapse
No announcement yet.

Change to EMA

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

  • Change to EMA

    How would I go about changing the attached Simple MA to Exponential MA?

    Bruce
    Attached Files

  • #2
    Here are the different kind of ma's.

    MovingAverageType:

    MAStudy.SIMPLE

    MAStudy.EXPONENTIAL

    MAStudy.WEIGHTED

    MAStudy.VOLUMEWEIGHTED

    just change the "SIMPLE" to "EXPONENTIAL" in

    if (vMA == null) vMA = new MAStudy(MALength, Offset, "Close", MAStudy.SIMPLE);

    Comment


    • #3
      Steve:

      I did try that but it didn't work (before post).

      Then I tried it again (after your post) and it worked.

      Must of spelled it wrong....LOL

      Thanks for your help.

      Bruce

      Comment

      Working...
      X