无法识别的字符串

Numeric getNthCondition(Series<Numeric> sdata, Numeric svalue, Numeric sn){
        Numeric i; 
        Numeric numb;
        Numeric beginning;
        Numeric ending;
        For i = 1 to CurrentBar
        {
            If(sdata[i]==svalue){
                numb = numb + 1;
                If(numb==1){ beginning = i; }
                If(numb==sn){ ending = i; }
                If((ending-beginning+1)==sn){
                    Break;
                }Else{
                    numb = 0;
                }
            }
        }
        
        Return i;
    }

程序编译时报错:无法识别的字符串series,如何解决,谢谢

无法识别的字符串
无法识别的字符串if
总是提示错误:无法识别的字符串bar
CurrentBar 编译时 系统提示无法识别的字符串
[编译错误提示] 无法识别的字符串DataFrame
各位兄台帮我看看 无法识别的字符串 谢谢
if close>open plotstring(\"str\",\"阳线\",low,red); 提示“无法识别的字符串CLOSE”
求老师指点一下,NumericRef 在设置参数的时候,为什么显示无法识别的字符串
请问编译这个公式时提示这一行“无法识别的字符串if”,如何修改使得可以正常编译。
无法识别的字符串!=

如何解决,有什么别的方法吗

defs域定义函数?不能用series