So basically I cant determine a way to look back and reference values with my study from a previous bar.
Is there a way to do this? Is this the context for use of the VariableSeries object?
Evaluating Values on a study from a previous bar
- Henry MultiСharts
- Posts: 9165
- Joined: 25 Aug 2011
- Has thanked: 1264 times
- Been thanked: 2957 times
Re: Evaluating Values on a study from a previous bar
Hello JosephIM,
You can reference previous bar's values like that (ex. previous bar's close):You can reference previous study values like that (ex. previous moving average value):
You can reference previous bar's values like that (ex. previous bar's close):
Code: Select all
Bars.Close[1]
Code: Select all
m_avg[1]