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 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)