如何引用内置函数RSI,一直提示函数没有被声明

 // ===== 1. 趋势通道计算 =====

           // 中线:移动平均线

           MiddleLine = Average(Close, ChannelLength);

           

           // 计算标准差

           StdDev = StandardDev(Close, ChannelLength, 1); // 1表示样本标准差

           

           // 通道上下轨

           UpperBand = MiddleLine + StdDevMultiple * StdDev;

           LowerBand = MiddleLine - StdDevMultiple * StdDev;

           

           // ===== 2. RSI指标计算 =====

           /* ========= 声明系统 RSI 指标 ========= */

           RSIValue =  RSI(Close, RSILength); *************************************************************************

           

           // ===== 3. 交易信号判断 =====

           // 买入信号:价格触及下轨且RSI超卖

           BuySignal = (Low <= LowerBand OR Close <= LowerBand) AND RSIValue < Oversold;

           

           // 卖出信号:价格触及上轨且RSI超买  

           SellSignal = (High >= UpperBand OR Close >= UpperBand) AND RSIValue > Overbought;

           

函数没有被声明
GetOptSymbolsByCode函数没有被声明
ATR函数没有被声明
MACD函数,Capital变量,HHV函数没有被声明,怎样处理?
软件报错:PlotBar函数没有被声明 (疑似Bug)
策略编译时提示:MACD函数没有被声明
setbaseperiod函数没有被声明
GETPRICE函数没有声明
请教代码老师!v5版本转到v6版本编译提示 函数【Div】没有被声明
Then的变量没有被声明

没有rsi这个函数

请问如何处理RSI函数没有被声明方法?


没有被声明的意思就是没有这个函数,没有就只能自己写一个