Pine-script;
- Libraries cannot use global variables in exported functions, so I cannot use a global array as a default value.
- Functions do not accept function results as default values.
Is there a way to provide default array value?
For example:
// @version=5
library("mylibrary", overlay = true)
// This is OK
export calc(int a = 10, int[] b) => ...
// This is NOT OK
export calc(int a = 10, int[] b = array.from(1,2)) => ...