Is this a bug ?
The following code always return 4.
|
if Hour >= 22 or Hour<1 or (Hour=1 and minute<15) then spread = 4 elsif Hour = 17 then //and minute >= 30 or Hour >= 18 then spread = 2 elsif hour >= 9 then spread = 1 elsif hour >= 8 then spread = 2 else spread = 3 endif return spread // this code always return 4 !!???? |
But this works perfectly in ProBackText/ProOrder
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
|
if Hour >= 22 or Hour<1 or (Hour=1 and minute<15) then spread = 4 elsif Hour = 17 then //and minute >= 30 or Hour >= 18 then spread = 2 elsif hour >= 9 then spread = 1 elsif hour >= 8 then spread = 2 else spread = 3 endif Graph spread as "spread" if 0 then buy at market endif |
Did I miss something ? Or isn’t this a bug ?
Also same code runs faster in ProBackTest than in ProBuilder (even working code)