通达信战股海之KDJ指标公式
2021/2/26 18:22:14
底部动态:EMA(IF(L<= LLV(L,40),SMA(ABS(L-REF(L,1)),40,1)/SMA(MAX(L-REF(L,1),0),40,1),0),3)*10,STICK,COLORRED,LINETHICK2;
RSV:=(CLOSE-LLV(LOW,21))/(HHV(HIGH,21)-LLV(LOW,21))*100;
RSV1:=(C-LLV(L,9))/(HHV(H,9)-LLV(L,9))*100;
K:SMA(RSV,3,1),COLORWHITE;
D1:=SMA(K,3,1);
K1:=SMA(RSV,5,1);
K2:=SMA(RSV1,3,1);
D:SMA(K1,5,1),COLORYELLOW;
D2:=SMA(K2,3,1);
J:3*K-2*D1,LINETHICK2,COLORFF00FF;
J1:=3*K2-2*D2;
X1:=LLV(J1,2)=LLV(J1,8);
DRAWLINE(D1>=HHV(D1,21),D1,D1<=LLV(D1,21),D1,1),COLOR00FF00;
STICKLINE(D>REF(D,1),D,D,6,0),COLORRED,LINETHICK3;
DRAWTEXT(CROSS(J1,REF(J1+0.01,1)) AND X1 AND J1<20,J1,'★买'),COLORYELLOW;
超卖区: 20,COLORRED;
底部区:0,COLORGREEN;
超买区:80,COLORRED;
高危区:100,COLORYELLOW;
股价趋势: 3*SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1)-2*SMA(SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1),3,1),LINETHICK0;
底部警戒: 10,COLORRED,LINETHICK0;
买入警戒:STICKLINE(股价趋势<=10,0,2,1,0),COLORYELLOW;
买入信号: STICKLINE(CROSS(股价趋势,底部警戒),0,30,0,0),COLORFFF666,LINETHICK2;
DRAWTEXT(买入信号,30,'进场'),COLORGREEN;
顶部警戒: 90,COLORFFBB66,LINETHICK0;
卖出警戒:STICKLINE(股价趋势>=85,81,80,2,0),COLORWHITE;
止损出局:STICKLINE(CROSS(顶部警戒,股价趋势),100,70,0,0),COLORFFF666;
DRAWTEXT(止损出局,110,'出局'),COLORRED;
HSV:=IF(SUM(VOL/CAPITAL,20)<1,SUM(VOL/CAPITAL,20),0.998);
VAR1:=DMA(EMA(CLOSE,13),HSV);
QS:=(CLOSE-VAR1)/VAR1*100;
量:=SMA(QS,3,1);
{IF(量>REF(量,1),量,DRAWNULL),COLORRED;}
DRAWICON(CROSS(量,0 ),0,23);
投 股票网 www. tou18.cn
股市公式下载推荐