I apologize if the answer to this question is already on the forum somewhere, but I was unable to find an answer.
I am trying to create my first indicator, and and I am struggling a little bit with the data series.
What I would like to accomplish is creating an index counting buys or sells out of the past 100 signals. So for instance using SMA if there were 25 crosses belows and 75 crosses above the index value would be 75. I figured the easiest way to do this would be to make the cross below value 0 and the cross above value 1 and sum the series. But I don't know how to do this, or have it keep only the past 100 values.
Thanks in advance for any help you can provide.
-CFP
Comment