Announcement

Collapse
No announcement yet.

Moving Average counter

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

  • Moving Average counter

    Hi,

    Does anyone have advice on how I can achieve the following :

    1. I have a 60 period simple M.A running on a 1 Minute chart

    2. I would like to "Count" how many times during that day the close of the 1 minute bar moves above and below the 60 period M.A

    3. For example if the 60 M.A = 100 and price closes at 95 and then later in the day it closes at 101 then I count "1" If price then closes from 101 down to 90 then I count "2" if price then goes from 90 to 102
    I do not count as I have to wait for price to close once again below the 60 M.A (100)

    4. I would like to plot the "counts" for that day in a indicator window


    would appreciate any help
Working...
X