峰值指标-精品通达信指标公式源码分享
LC := REF(CLOSE,1);
RSI1:=SMA(MAX(CLOSE-LC,0),6,1)/SMA(ABS(CLOSE-LC),6,1)*100;
RSI:(RSI1-50)*3,LINETHICK1,COLORFFFF00;
DRAWBAND(RSI,RGB(120,50,100),0,RGB(100,150,72));
DIF:(EMA(CLOSE,5)-EMA(CLOSE,26))*100,COLORGREEN,LINETHICK1;
IF(DIF>=REF(DIF,1),DIF,DRAWNULL),COLORRED,LINETHICK2;
IF(DIF,5,DRAWNULL),COLORYELLOW,LINETHICK1;
IF(DIF>=REF(DIF,1),5,DRAWNULL),COLORRED,LINETHICK1;
IF(DIF<=REF(DIF,1),5,DRAWNULL),COLORGREEN,LINETHICK1;
RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
K:=SMA(RSV,9,1);
D:=SMA(K,9,1);
J:3*K-2*D,COLORLIBLUE,LINETHICK1;
IF(J>=REF(J,1),J,DRAWNULL),COLORMAGENTA,LINETHICK2;
IF(J,10,DRAWNULL),COLORYELLOW,LINETHICK1;
IF(J>=REF(J,1),10,DRAWNULL),COLORRED,LINETHICK1;
IF(J<=REF(J,1),10,DRAWNULL),COLORGREEN,LINETHICK1;
MA5:=MA(C,5),COLORLIBLUE,LINETHICK1;
IF(MA5,15,DRAWNULL),COLORYELLOW,LINETHICK1;
IF(MA(C,5)>=REF(MA(C,5),1),15,DRAWNULL),COLORRED,LINETHICK1;
IF(MA(C,5)<REF(MA(C,5),1),15,DRAWNULL),COLORGREEN,LINETHICK1;
版权声明
本文版权归掌上指标所有。
未经许可,不得转载,转载请注明出处!