Announcement

Collapse
No announcement yet.

MOM Indicator

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

  • MOM Indicator

    I would like to know how to change the code for the MOM indicator so it uses the ROC(rate of change)Study as the source. Something like
    Mom(RSI,14),14)

  • #2
    I believe that the following code would do it.

    Chris


    PHP Code:
    nStudy1 = new ROCStudy14"close" );
    nStudy2 = new MOMStudy14nStudy1ROCStudy.ROC ); 
    ...
    ...

    nPlot = nStudy2.getValue( MOMStudy.MOM, 0 );

    return( nPlot );

    Comment

    Working...
    X