参数n的设置与原指标相同
LC:=REF(CLOSE,1);
RSI1:SMA(MAX(CLOSE-LC,0),N1,1)/SMA(ABS(CLOSE-LC),N1,1)*100;
RSI2:SMA(MAX(CLOSE-LC,0),N2,1)/SMA(ABS(CLOSE-LC),N2,1)*100;
RSI3:SMA(MAX(CLOSE-LC,0),N3,1)/SMA(ABS(CLOSE-LC),N3,1)*100;
TJ1:=CROSS(RSI1,RSI2);
TJ2:=CROSS(RSI1,RSI3);
TJ3:=RANGE(RSI2,RSI3,RSI1);
TJ4:=CROSS(RSI2,RSI1);
TJ5:=CROSS(RSI3,RSI1);
TJ6:=RANGE(RSI2,RSI1,RSI3);
DRAWICON(TJ1 AND TJ2 AND TJ3,RSI3*0.90,1);
DRAWICON(TJ4 AND TJ5 AND TJ6,RSI3*1.1,2);
温馨提示:内容为网友见解,仅供参考