KDJ和KD震荡王 波段类公式(通达信公式 副图 源码 测试图)

 2023-02-18 16:09:13    通达信指标网  

{KDJ和KD震荡王}

SJ:=1;
Q2:=(CLOSE-LLV(LOW, 18))/(HHV(HIGH, 18)-LLV(LOW, 18))*100; 
Q3:=SMA(Q2, 9, 1); 
Q4:=SMA(Q3, 3, 1); 
长趋势:3*Q3-2*Q4,COLORWHITE,LINETHICK1; 
趋势线:EMA(Q3, 3)*SJ,COLORRED,LINETHICK1; 
{DRAWTEXT(CROSS(趋势线, 长趋势) AND REF(长趋势,1)>80, REF(长趋势,3), '空'),COLORGREEN;
DRAWTEXT(REF(CROSS(长趋势,趋势线),1) AND 长趋势>1.3*趋势线,趋势线,'多'),COLORRED; }
RSV1:=(CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100;
K1:=SMA(RSV1,5,1)*SJ;
D1:=SMA(K1,3,1)*SJ;
J1:=3*K1-2*D1;
AA1:=EMA(J1,12);
AA2:=REF(AA1,1);
STICKLINE(AA1>AA2,AA1,AA2,2,1),COLORRED;
STICKLINE(AA1<=AA2,AA1,AA2,2,1),COLORGREEN;
AA:=REF(CLOSE,1); 
QS:=SMA(MAX(CLOSE-AA,0),8,1)/SMA(ABS(CLOSE-AA),8,1)*100,COLORYELLOW,LINETHICK1;
超买:88*SJ,COLORRED,DOTLINE;
超卖:12*SJ,COLOR00FF00,DOTLINE; 
AA3:=CROSS(80,QS) AND AA1<=AA2;
C1:=CROSS(80,QS);
C2:=FILTER(C1,10);
D2:=CROSS(QS,19);
D3:=FILTER(D2,10);
D4:=FILTER(CROSS(QS,15),10);
A5:=3*SMA((CLOSE-LLV(LOW,18))/(HHV(HIGH,18)-LLV(LOW,18))*100,21,1)-2*
SMA(SMA((CLOSE-LLV(LOW,18))/(HHV(HIGH,18)-LLV(LOW,18))*100,20,1),8,1) ;
AQW:=20;
ZQ:=CROSS(A5,AQW);
AA4:=(3*C+H+L+O)/6;
VAR8:=(8*AA4+7*REF(AA4,1)+6*REF(AA4,2)+5*REF(AA4,3)+4*REF(AA4,4)+3*REF(AA4,5)+2*REF(AA4,6)+REF(AA4,8))/36;
VAR9:=(LLV(VAR8,2)+LLV(VAR8,4)+LLV(VAR8,6))/3;
MA1:=MA(CLOSE,5);
MA2:=MA(CLOSE,10);
M3:=CROSS(MA2,MA1);
VAR1:=(CLOSE-LLV(LOW,36))/(HHV(HIGH,36)-LLV(LOW,36))*100;
WWW70822COM:=VOL/((HIGH-LOW)*2-ABS(CLOSE-OPEN));
VAR2:=SMA(VAR1,3,1);
VAR3:=SMA(VAR2,3,1);
VAR4:=SMA(VAR3,3,1);
波:= VAR3;
段:= VAR4;
VAR6:=CROSS(VAR3,VAR4) AND VAR3<20;
CD:=FILTER(CROSS(VAR3,VAR4),10) ;
HH:=HHV(HIGH,3);
 LL:=LLV(LOW,3);
 HH1:=BARSLAST((HH  >  REF(HH,1)));
 LL1:=BARSLAST((LL  <  REF(LL,1)));
A6:=HH1>LL1;
VAR7:=CROSS(VAR4,VAR3) AND VAR3>80;
看多:=ZQ AND CD;
{STICKLINE(看多>0,15,看多*1.01,1,0),COLORMAGENTA;}
DIFF:=EMA(CLOSE,12) - EMA(CLOSE,26); 
DEA:=EMA(DIFF,9); 
MMACD:=(DIFF-DEA)*2;
A1:=BARSLAST(REF(CROSS(DIFF,DEA),1)); 
B1:=REF(C,A1+1)>C AND REF(DIFF,A1+1)<DIFF AND CROSS(DIFF,DEA) AND DEA<0;
{DRAWTEXT(FILTER(B1,10)=1,15,'底背');}
{STICKLINE(FILTER(B1,10)=1,0,30,2,0)*SJ,COLORBLUE ;}
A2:= BARSLAST(REF(CROSS(DEA,DIFF),1));
B2:= REF(CLOSE,A2+1)<CLOSE AND REF(DIFF,A2+1)>DIFF AND CROSS(DEA,DIFF);
{STICKLINE(FILTER(B2,5)=1,80,100,2,0)*SJ,COLORCYAN;}
{DRAWTEXT(FILTER(B2,5)=1,90,'顶背'),COLORYELLOW ;}
RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9));
K:=SMA(RSV,9,3);
D:=SMA(K,9,3);
J:=3*K-2*D;
A:=CROSS(DIFF,DEA) AND CROSS(K,D) AND CROSS(J,D) AND DIFF<0;

SA:=CROSS(DEA,DIFF) AND CROSS(D,K) AND CROSS(D,J) AND DIFF>0;


  •  标签:  

原文链接:https://www.tdxzb.com/?id=1042

本文版权:如无特别标注,本站文章均为原创。

相关文章

服务热线

18020657357

微信客服

微信客服