There must be a way to convert IndicatorBase object to TimeSeries object), so I could for example subtract bars.Close from SMA.Series()
Rename
An IndicatorBase is a TimeSeries, so you can do things like this:
CODE:
TimeSeries ts = (SMA.Series(bars.Close,20) + bars.Close) / 2;
Sorry, my mistake, I tried to assign the result to IndicatorBase.
Your Response
Post
Edit Post
Login is required