Forums › ProRealTime English forum › ProOrder support › Sorex hoyi scalper › Reply To: Sorex hoyi scalper
04/13/2020 at 1:52 PM
#125933
Probably it happens quicker on a short timeframe those errors. Same annoying thing on renko, but I got it to work for now.
Here are few idea’s.
Use below to make sure there is data.
1 |
if barindex>1 and range>0 then |
and/or
when there’s possibly no data i.e. the max function
1 |
max(abs(open - close), 0.000000001) |
can also be used on an average I think, like
1 |
max(ExponentialAverage[20](close),0.000000001) |
I don’t now where exactly is the cause, so in the renko version I use above a lot.