Reputation: 1025
Usually, I use ta-lib to calculate technical analysis indicators. But I find at times I need to calculate indicators iteratively, like below:
sma = SMA(timeperiod = 10)
while True:
price = read_price(...)
ma_value = sma.feed(price)
# some action do with price and ma_value
...
Can ta-lib be used in this way? Or there is any other library to use?
Upvotes: 0
Views: 1002