自用操盘手QSDD指标优化(通达信),看长做短KDJ(通达信)
admin888
|自用操盘手QSDD指标优化(通达信),看长做短KDJ(通达信)
自用操盘手QSDD指标优化(通达信)
{自用QSDD优化}stICKLINE(>0,0,DDX,1,0 ),COLOR0022CC;
STICKLINE(DDX<0,0,DDX,1,0 ),COLORFFFF00;
DDX1:=ema(DDX,60)*20,COLOR00FFFF;
DDX2:=ma(DDX1,5),COLORFF00FF;
DDX3:MA(DDX1,7),COLOR00FF00,LINETHICK2;
DD1:=EMA(IF(L<= LLV(L,99),SMA(Abs(L-REF(L,1)),
99,1)/SMA(MAX(L-REF(L,1),0),99,1),0)*5,3)*5,COLORYELLOW;
DD2:=EMA(IF(L<= LLV(L,55),SMA(ABS(L-REF(L,1)),
55,1)/SMA(MAX(L-REF(L,1),0),55,1),0)*5,3)*5,COLORGREEN;
DD3:=EMA(IF(L<= LLV(L,25),SMA(ABS(L-REF(L,1)),
25,1)/SMA(MAX(L-REF(L,1),0),25,1),0)*5,3)*5,COLORMAGENTA;
D1:STICKLINE(DD3,DD3,0,5,-2),COLORMAGENTA;
D2:STICKLINE(DD2,DD2,0,5,-2),COLORGREEN;
D3:STICKLINE(DD1,DD1,0,3,-2),COLORYELLOW;
80,COLOR996699;
20,COLORGREEN;
10,COLORCC6633,LINETHICK2;
90,COLOR9966FF,LINETHICK2;
{50,COLORRED;
FILLRGN(1,20,80),COLOR222222;
FILLRGN(1,90,100),COLOR000068;
FILLRGN(1,79,90),COLOR663366;
FILLRGN(1,10,20),COLOR666600;
FILLRGN(1, 0,10),COLOR663300;}
A:=MA(-100*(HHV(HIGH,34)-CLOSE)/(HHV(HIGH,34)-LLV(LOW,34)),19),COLORRED;
B:=-100*(HHV(HIGH,14)-CLOSE)/(HHV(HIGH,14)-LLV(LOW,14));
D:=EMA(-100*(HHV(HIGH,34)-CLOSE)/(HHV(HIGH,34)-LLV(LOW,34)),4),LINETHICK2;
RSV1:=(C-LLV(LOW,14))/(HHV(HIGH,14)-LLV(LOW,14))*20;
K1:=SMA(RSV1,5,1);
DA:=SMA(K1,21,1);
短期线:(3*K1-2*DA)*5,COLOR888888;
长期线:A+100,COLOR9900FF;
{短期线:B+100,COLORBLUE;}
中期线:D+100,COLORYELLOW,LINETHICK2;
见顶:=((REF(中期线,1)>85 AND REF(短期线,1)>85 AND REF(长期线,1)>65) ANDcrOSS(长期线,短期线)) ,COLORGREEN;
顶部区域:(中期线80) AND (REF(短期线,1)>95 OR REF(短期线,2)>95 ) AND 长期线>60 AND 短期线<83.5
AND 短期线<中期线 AND 短期线<长期线+4,COLORGREEN;
顶部:=FILTER(顶部区域,4);
STICKLINE( {见顶 OR} 顶部,99,103,20,1 ),COLORRED,LINETHICK2;
底部区域:(长期线<12 AND 中期线<8 AND (短期线<7.2 OR REF(短期线,1)<5) AND (中期线>REF(中期线,1) OR 短期线>REF(短期线,1)))
OR (长期线<8 AND 中期线<7 AND 短期线<15 AND 短期线>REF(短期线,1)) OR (长期线<10 AND 中期线<7 AND 短期线<1) ,COLORGREEN;
STICKLINE( 底部区域,-4,0,22,0 ),COLORGREEN;
低位金叉:50*(长期线<15 AND REF(长期线,1)<15 AND 中期线<18 AND 短期线>REF(短期线,1) AND CROSS(短期线,长期线) AND 短期线>中期线
AND (REF(短期线,1)<5 OR REF(短期线,2)<5 ) AND (中期线>=长期线 OR REF( 短期线,1)<1 )),LINETHICK2,COLORRED;
STICKLINE( 低位金叉,0,5,11,0 ),COLORRED;(源码来自网络与
操盘手QSDD一样)
看长做短KDJ(通达信)
{kdj信号}{左侧交易指标,短线}stICKLINE(C,50,20,10,0),COLOR996600;
STICKLINE(C,80,50,10,0),COLOR996600;
STICKLINE(C,100,100,10,0),COLOR996600;
STICKLINE(C,0,0,10,0),COLOR996600;
STICKLINE(C,50,50,10,0),COLOR000000;
{KM组合}{根据股价调整,默认1000}系数:=N/1000;
B1:=(HHV(H,9)-C)/(HHV(H,9)-LLV(LOW,9))*100- 70;
B2:=SMA(B1,9,1)+100;
B3:=(C-LLV(L,9))/(HHV(H,9)- LLV(L,9))*100;
B4:=Sma(B3,3,1);
B5:=SMA(B4,3,1)+100;
B6:=B5-B2;
B7:=IF(B6>60,B6-60,0);
difF:ema(CLOSE,12) - EMA(CLOSE,26),COLORBLUE,LINETHICK2,NODRAW;
DEA1:=EMA(DIFF,9);
macd:2*(DIFF-DEA1)*60,LINETHICK0,NODRAW;
S1:=MacD0,COLORBLUE;
STICKLINE(MACD>=0,MACD*系数,0,8,1),COLORRED;
STICKLINE(S1,0,MACD*系数,8,1),COLOR00FFFF;
STICKLINE(MACD<0,MACD*系数,0,8,1),COLOR996600;
STICKLINE(S2,0,MACD*系数,8,1),COLOR00AA00;
{长kdJ}长RSV:=(((CLOSE - LLV(LOW,90)) / (HHV(HIGH,90) - LLV(LOW,90))) * 100);
长K:=SMA(长RSV,12,1),COLORWHITE,POINTDOT,LINETHICK4;
长D:SMA(长K,12,1),COLORYELLOW,POINTDOT,LINETHICK4,NODRAW;
长J:((3 * 长K) - (2 *长D)),COLORRED,POINTDOT,LINETHICK4;
STICKLINE(crOSS(长D,80),108,115,4,0),COLOR33FF33;
STICKLINE(CROSS(长D,15),0,10,4,0),COLOR3333AA;
{KDJ}RSV:=(((CLOSE - LLV(LOW,9)) / (HHV(HIGH,9) - LLV(LOW,9))) * 100);
K:=SMA(RSV,3,1);
D:=SMA(K,3,1);
J:=((3 * K) - (2 * D));
DRAWICON(FILTER(CROSS(K,D)AND K<50,1),0,1);
STICKLINE(CROSS(90,J),108,115,4,0),COLORGREEN;
DRAWTEXT(CROSS(90,J),105,'抛'),COLORGREEN;
STICKLINE(CROSS(J,(0 - 5)),0,10,4,0),COLORCYAN;
DRAWTEXT(CROSS(J,(0 - 5)),(0 - 4),'吸'),COLORCYAN;
{KDJ背离}AA2:=BArslAST(REF(CROSS(K,D),1));
BB2:=REF(C,AA2+1)>C AND REF(K,AA2+1)
KDJ底背离:STICKLINE(FILTER(BB2>0,5),0,1,3,0),COLORYELLOW;
DRAWTEXT(FILTER(BB2>0,5),-8,'底背离'),COLORYELLOW;
CC2:=BARSLAST(REF(CROSS(D,K),1));
DD2:=REF(C,CC2+1)
DRAWTEXT(FILTER(DD2>0,5),-8,'顶背离'),COLORGREEN;
{显示优化}STICKLINE(REF(B7,1)
短K:K,COLORWHITE,LINETHICK2;
短D:D,COLORYELLOW,LINETHICK2;
短J:J,COLORMAGENTA,LINETHICK2;
金叉D:IF((K > D),D,DRAWNULL),COLORYELLOW,LINETHICK4;
牛市通网是一个牛股推荐网与低风险投资知识网,可以在线联系客服领取牛股。牛市通网从权威的投资专家、金融分析师等投资信息中挑选优质的文章进行发布。牛市通网主要为投资者提供股票知识、股票观点、股票分析和明智金融投资讨论等信息。