alkamyst 1 posts msg #139739 - Ignore alkamyst |
12/2/2017 1:42:59 PM
I'm trying to see if there is a way to do store historical values.
It might be to do something similar to the following in the filters:
1) Example 1
Price crosses above MA(20)
and price is greater than the value of MA(20) the last time price crossed above MA(20)
I understand that set { } can be used to create user defined variables but can't figure out how to store the "value of MA(20) the last time price crossed above MA(20)"
Similarly, lets say we want to create a counter that adds to itself.
2) Example 2:
Set {value1, value1 + 1}
but that gives an error so I tried
Set {value1, value1 of 1 days ago + 1}
How would I do example (1) and example(2)?
|