oninit域中无法调用参数吗?

Params Numeric shortlen(7,5,15,1);//EMA参数,2-100 Numeric longlen(22,20,100,1);//EMA参数,2-100 Numeric ATRLength(14); //ATR周期 //初始化事件函数,策略运行期间,首先运行且只有一次 OnInit() { Array<Numeric> arr = [shortlen,longlen,ATRLength]; Integer pos; Numeric Maxlength = Na1Max(arr, pos);//最大周期 SetBeginBarMaxCount(Maxlength); }我想实现指标正常显示之前,不出信号,但提示”无法识别的字符串shortlen”,SetBeginBarMaxCount我看只能在oninit中设置,应该如何实现

Array<Numeric> arr = [shortlen,longlen,ATRLength]; 这个格式只能写常量,自己赋值进去