以下是通达信自己使用多年的指标贡献出来(无源码的请下载附件导入)
RSV13:=(CLOSE-LLV(LOW,13))/(HHV(HIGH,13)-LLV(LOW,13))*100;
K13:=SMA(RSV13,3,1);
D13:=SMA(K13,3,1);
J13:=3*K13-2*D13;
RSV55:=(CLOSE-LLV(LOW,55))/(HHV(HIGH,55)-LLV(LOW,55))*100;
K55:=SMA(RSV55,3,1);
D55:=SMA(K55,3,1);
J55:=3*K55-2*D55;
支撑位:IF(CROSS(J13,J55),LOW,REF(LOW,BARSLAST(CROSS(J13,J55))));
压力位:IF(CROSS(J55,J13),HIGH,REF(HIGH,BARSLAST(CROSS(J55,J13))));
中位:(支撑位+压力位)/2;
638533859.jpg
|