pegahcarter / TAcharts

Apply popular TA tools and charts to candlestick data with NumPy.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

atr renko problems

gaju432 opened this issue · comments

Sir,

from TAcharts.indicators.renko import Renko

r = Renko(df)
r.set_brick_size(auto=True, atr_period=2)
r.build()

r.plot()

atr_period not found
get error
File "C:\ProgramData\Anaconda3\lib\site-packages\kiteconnect\ticker.py", line 71, in onMessage
self.factory.on_message(self, payload, is_binary)
File "C:\ProgramData\Anaconda3\lib\site-packages\kiteconnect\ticker.py", line 670, in _on_message
self.on_ticks(self, self._parse_binary(payload))
File "E:\crsitry\ta\tachartsrenko.py", line 156, in on_ticks
r.set_brick_size(auto=True, atr_period=2)
builtins.TypeError: set_brick_size() got an unexpected keyword argument 'atr_period'

your base sample file not looking properly

please solve this and rectify this code for live tick data fro websocket

Gotcha, it's a simple error in documentation. Instead of atr_period it should be atr_interval