- ago
There must be a way to convert IndicatorBase object to TimeSeries object), so I could for example subtract bars.Close from SMA.Series()
0
721
Solved
2 Replies

Reply

Bookmark

Sort
Glitch8
 ( 11.81% )
- ago
#1
An IndicatorBase is a TimeSeries, so you can do things like this:
CODE:
TimeSeries ts = (SMA.Series(bars.Close,20) + bars.Close) / 2;
0
Best Answer
- ago
#2
Sorry, my mistake, I tried to assign the result to IndicatorBase.
1

Reply

Bookmark

Sort