资源描述:
《【股票指标公式下载】-【通达信】小天KDJ(上防线、支撑位、压力位、寻底)》由会员上传分享,免费在线阅读,更多相关内容在教育资源-天天文库。
1、【通达信】小天KDJ(上防线、支撑位、压力位、寻底)-指标公式源码NN:=20;N:=2;RSV:=(CLOSE-LLV(LOW,13))/(HHV(HIGH,13)-LLV(LOW,13))*100;K:=SMA(RSV,3,1);D:=SMA(K,3,1);J:=3*K-2*D;RSV12:=(CLOSE-LLV(LOW,34))/(HHV(HIGH,34)-LLV(LOW,34))*100;K12:=SMA(RSV12,3,1);D12:=SMA(K12,3,1);J12:=3*K12-2*D12;RSV24:=(CLOSE-LLV(LOW,55))/(HHV(HIGH,
2、55)-LLV(LOW,55))*100;K24:=SMA(RSV24,3,1);D24:=SMA(K24,3,1);J24:=3*K24-2*D24;RSI1:=SMA(MAX(CLOSE-LOW,0),9,1)/SMA(ABS(CLOSE-LOW),9,1)*100;上防线:IF(CROSS(J24,RSI1),H,REF(H,BARSLAST(CROSS(J24,RSI1)))),COLORBLUE;支撑位:IF(CROSS(J,J24),L,REF(L,BARSLAST(CROSS(J,J24)))),COLORYELLOW;压力位:IF(CROSS(J24,J),H,
3、REF(H,BARSLAST(CROSS(J24,J)))),COLORRED;U2L:=IF(C>=MA(C,NN),80,50);L2L:=IF(C>=MA(C,NN),50,20);RH1:=IF(J=U2L,HHV(REF(H,1),BARSLAST(J>=U2LANDREF(J,1)=U2LANDREF(J,1)RH1,L,REF(L,BARSLAST(H>RH1)))
4、;RH42:=IF(H>RH1,J,REF(J,BARSLAST(H>RH1)));拦截:IF(H>RH4ANDJRH4ANDJL2LANDREF(J,1)<=L2L,LLV(REF(L,1),BARSLAST(J<=L2LANDREF(J,1)>L2L)-1),REF(LLV(REF(L,1),BARSLAST(J<=L2LANDREF(J,1)>L2L)-1),BARSLAST(J>L2LANDREF(J,1))));RL4:=IF(
5、LRL42ANDJ>J24,L,REF(L,BARSLAST(LRL42ANDJ>J24))),COLORWHITE;TYX3:=MA(REF(HHV((C+L+O+H)/4,30),1),3);TYX4:=MA((C+L+O+H)/4,13);TYX5:=EMA((C+L+O+H)/4,21);{空心红}STICKLINE(CO,H,L,0,0),COLORRED;
6、STICKLINE(CO,C,O,3,1),COLORRED;{深绿}STICKLINE(CTYX5ANDCTYX5ANDC7、,O,3,0),COLORFF7700;STICKLINE(C>TYX5ANDCTYX5ANDCTYX5ANDC>O,H,L,0,0),COLOR00EEFF;STICKLINE(C>TYX5ANDC>O,C,O,3,0),COLOR00AAFF;STICKLINE(C>TYX5ANDC>O,C,O,2,0),COLOR00CCFF;STICK