function bugFunctions with parameters do not work correctly: the returned value is sometimes different from the expected one. The example script works correctly only when idx = 1 (instead of the current line 6). Pine Script™ strategyby ogmi0s10