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). Stratégie Pine Script®par ogmi0s12