RATE OF MA

Viewing 7 posts - 1 through 7 (of 7 total)
  • #50711

    hi

    How i can i code to get the rate of Moving Average?

    #50731

    You can use the Rate Of Change indicator (ROC):

    in this example, the rate of change over the last 10 periods of a 20 periods simple moving average:

     

     

    1 user thanked author for this post.
    #50748

    can i have the code of ROC?

    #50749

    What is the ‘Price Rate Of Change – ROC’

    The price rate of change (ROC) is a technical indicator of momentum that measures the percentage change in price between the current price and the price n periods in the past. It is calculated by using the following formula:

    ROC = (Most recent closing price – Closing price n periods ago) / Closing price n periods ago x 100

     

    #50900

    actually i am looking for slope of moving average. that code is not as what i want as ROC is already delayed than the slope can be seen in the chart. so what should i do?

    #50903
    BC

    please take a look.

    https://www.prorealcode.com/prorealtime-indicators/moving-average-slope/

    2 users thanked author for this post.
    #50915

    that code is not as what i want as ROC is already delayed

    No delay with just 1 period for ROC:

     

Viewing 7 posts - 1 through 7 (of 7 total)

Create your free account now and post your request to benefit from the help of the community
Register or Login