编写的指标没法输出,大神帮帮忙
ParamsNumeric L_RSI(13);
Numeric L_STOC(8);
Numeric L_SK(5);
Numeric L_SD(3);
Vars
NumericSeries RSI;
NumericSeries ILV;
NumericSeries IHV;
// Numeric ILV;
// Numeric IHV;
NumericSeries STORSI;
NumericSeries SK;
NumericSeries SD;
Begin
RSI = SMA(MAX(CLOSE-Close,0),L_RSI,1)/SMA(ABS(CLOSE-Close),L_RSI,1)*100;
ILV = Lowest (RSI,L_STOC);
IHV = Highest(RSI,L_STOC);
STORSI = 100*(RSI-ILV)/(IHV-ILV);
SK = XAverage(STORSI,L_SK);
SD = XAverage(SK,L_SD);
PlotNumeric("SK1:",SK);
PlotNumeric("SD:",SD);
End
这个指标需要输出sk1和sd的计算值,我自己检查数据在STORSI = 100*(RSI-ILV)/(IHV-ILV);这里还能输出,但是到了下一行SK = XAverage(STORSI,L_SK);就没有输出信号了,如果把XAverage换成Average就有信号,请各位大神帮帮忙,这是怎么回事?
页:
[1]