I had a similar problem where I was trying to calculate a dynamic position size and was getting a divide by zero error when the current price was equal to a variable I called “Entry”.
We use cookies to ensure that we give you the best experience on our website. If you continue to use this site we will assume that you are happy with it.