joshyattridge / smart-money-concepts

Discover our Python package designed for algorithmic trading. It brings ICT's smart money concepts to Python, offering a range of indicators for your trading strategies.
https://pypi.org/project/smartmoneyconcepts/
MIT License
371 stars 197 forks source link

RuntimeWarning: divide by zero encountered in scalar divide #33

Open joshyattridge opened 4 months ago

joshyattridge commented 4 months ago

100 - ((ohlc["high"][i] - top) / (bottom - top)) * 100, 1

this error needs fixing but doesn't effect performance