ChillarAnand / stocktrends

A python package to calculate trends in stocks, derivates(Futures & Options) using Renko, PnF, LineBreak etc
GNU General Public License v3.0
233 stars 74 forks source link

Valueerror: #23

Open Umairnaseem1 opened 2 years ago

Umairnaseem1 commented 2 years ago

Hello sir,

I am creating a bot using your stocktrends library, however i encountered an error in calculations, ca you please help me out, I am using live market data from Binance websocket in form of candles, and converting it into renko. Please help me out! TIA

line 72, in period_close_bricks bricks = int((close - close_p1) / brick_size) ValueError: cannot convert float NaN to integer

ChillarAnand commented 2 years ago

Thanks, @Umairnaseem1

Can you please share the data for which you are facing this issue?