jealous / stockstats

Supply a wrapper ``StockDataFrame`` based on the ``pandas.DataFrame`` with inline stock statistics/indicators support.
Other
1.26k stars 297 forks source link

kdj bug: ZeroDivisionError: float division by zero , if high == low #185

Open jiabier opened 3 months ago

jiabier commented 3 months ago

if high == low (say: high - low == 0.) in a row, df['kdj*'] raises exception: ZeroDivisionError: float division by zero. version: 0.6.2

jealous commented 6 days ago

Could you share the sample data frame? Just a few records that triggers the error will help.