Hmm alright, I will try
StochRSI = (myRSI–MinRSI) / max(1,(MaxRSI–MinRSI))
|
I will hold my thumbs for next trade
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.
Is that even possible?
Yes the code is read at end of every bar as that is only way to know about restrictions on hours etc.
During the night is the time most liekly to get div0 Rejection because during the night / low liquidity is when there is more chance of missing bars – OCHL = 0 / no movement in price at all.
thanked this post
Yeah true.
Just want to be sure.. “division by zero” means what it is says right? x/y when x=0 does not give division 0 error right? Only y=0 right?
The Error Message does also say about negative values.
I use IG error messages generally as a guide / hint to what has caused a Rejection rather than a strict 100% accurate statement of what the problem is.
thanked this post