Is there an easy way to refer to a study's value in a past time period? For instance I want to compare the value of a 20 period EMA to the value of the same 20 period EMA 10 bars ago.
It seems like that should be an easy thing to do, but I can't seem to find any information in the online tutorials about it. What I would like to do is determine if two moving averages have not only crossed, but are diverging before generating a signal.
It seems like that should be an easy thing to do, but I can't seem to find any information in the online tutorials about it. What I would like to do is determine if two moving averages have not only crossed, but are diverging before generating a signal.
Comment