Hello,
I would like to calculate the average of the last 100 values of the ATRP indicator and keep that value in a dataseries. I have looked through the Wiki, the various guides and the forum but haven't been able to locate a way of doing this. Can anyone point me to an example of something similar? Thanks in advance
Size:
Color:
Something like this?
CODE:
Please log in to see this code.
Size:
Color:
Eugene, why not with SMA.Series?
CODE:
Please log in to see this code.
Size:
Color:
The more ways to skin a cat, the better :) In the first approach, you can also eliminate repeating values of the ATRP, making an average of the unique values.
Size:
Color:
That looks like it should do it, thanks! Am testing now. Quick question, why did you multiply artp.FirstValidValue by 3? Let me know, thanks.
Size:
Color:
I do want all values, not just unique ones, so should I use Cone's for that?
Size:
Color:
1 - See Indicators > Stability of Indicators in the WealthScript Programming Guide.
2 - Anything goes (not implemented).
Size:
Color:
Got it, thanks!! I appreciate the help.
Size:
Color: