Announcement

Collapse
No announcement yet.

Moving average of a moving average

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

  • Moving average of a moving average

    I am trying to convert a MetaStock Formula Language routine to EFS. The routine reduces the lag time for crossovers on the MACD indicator.

    The routine requires creating a moving average of a moving average. I realize that I can write this JS code, but it is rather long and tedious. (It actually uses EMA's.)

    I suspect that it may be possible to do it using the MA BuiltIn study. I've been unable to guess the construction so far.

    REQUEST:
    I would like a code fragement showing the setup for computing the MA of a MA using the EFS BuiltIn study, or an example script that does it for a different indicator.

    Thank You
    Reef Break
    [email protected]

  • #2
    Reef Break
    You can find MAofMA.efs with fully editable parameters by clicking here
    Alex

    Comment

    Working...
    X