I am not sure but I belive the system is getting stopped and getting the error (division 0) when it is not even in the “trading hours”.
I run this “time >130000 and time < 210000”
And I tend to belive the system is getting stopped out of thoose hours but I am not 100% sure, but when I wake up in the morning the system has stopped so I tend to belive it is happening at night? Is that even possible?
(Not sure if this StochRSI = (myRSI–MinRSI) / max(1,(MaxRSI–MinRSI)) fixed it yet will wait and see.