Kdj指标中主要的有三条线,分别是K线、D线与J线,这样的走势是具有不同的走势的,其中演变出的源码公式从下面两个方面进行分析:
第一:极品KDJ指标公式
REFLINE: 0, 20, 50, 80, 100;
RSV:=(CLOSE-LLV(LOW,10))/(HHV(HIGH,10)-LLV(LOW,10))*100;
K:SMA(RSV,5,1);
D:SMA(K,3,1);
J:3*K-2*D;
PARTLINE(j,j>=REF(j,1),RGB(255,0,0),j
Var1:=EMA(HHV(HIGH,500),21);
Var2:=EMA(HHV(HIGH,250),21);
Var3:=EMA(HHV(HIGH,90),21);
Var4:=EMA(LLV(LOW,500),21);
Var5:=EMA(LLV(LOW,250),21);
Var6:=EMA(LLV(LOW,90),21);
Var7:=EMA((Var4*0.96+Var5*0.96+Var6*0.96+Var1*0.558+Var2*0.558+Var3*0.558)/6,21);
Var8:=EMA((Var4*1.25+Var5*1.23+Var6*1.2+Var1*0.55+Var2*0.55+Var3*0.65)/6,21);
Var9:=EMA((Var4*1.3+Var5*1.3+Var6*1.3+Var1*0.68+Var2*0.68+Var3*0.68)/6,21);
VarA:=EMA((Var7*3+Var8*2+Var9)/6*1.738,21);
VarB:=REF(LOW,1);
VarC:=SMA(ABS(LOW-VarB),3,1)/SMA(MAX(LOW-VarB,0),3,1)*100;
VarD:=EMA(IF(CLOSE*1.35<=VarA,VarC*10,VarC/10),3);
VarE:=LLV(LOW,30);
VarF:=HHV(VarD,30);
Var10:=IF(MA(CLOSE,58),1,0);
火焰山:EMA(IF(LOW<=VarE,(VarD+VarF*2)/2,0),3)/618*Var10,coloryellow;
火焰:=STICKLINE(火焰山>0 ,0 ,火焰山 ,4 ,1);
今量:火焰山;
STICKLINE(火焰山>0,0 ,今量*1.2,8,0 ),COLOR00EEff;
STICKLINE(火焰山>0,0 ,今量*0.8,8,0 ),COLOR00BBff;
STICKLINE(火焰山>0,0 ,今量*0.6,8,0 ),COLOR0099ff;
STICKLINE(火焰山>0,0 ,今量*0.4,8,0 ),COLOR0066ff;
STICKLINE(火焰山>0,0 ,今量*0.2,8,0 ),COLOR0000ff;
将上面的源码导入软件中之后形成的图形走势如下,包含有相应的火焰山以及火焰的相关图形走势。
第二点:变色抄底公式
想要在股市中选择一两只可以进行抄底的股票,不仅仅是需要了解基本面的消息,还需要通过技术面进行分析,其中KDJ指标抄底的源码公式有:
RSV:=(CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100,LINETHICK2;
K:SMA(RSV,M1,1),LINETHICK1;
D:SMA(K,M2,1),LINETHICK1;
J:3*K-2*D,COLORFF00FF,LINETHICK1;
DRAWICON(CROSS(J,1),J,1,);
DRAWICON(K>50 AND D>50 AND CROSS(D,K),D,2);
PARTLINE(J,J>REF(J,1),RGB(200,50,50),
强市线:98,POINTDOT;
弱市线:10,POINTDOT;
分水岭:50,POINTDOT;
进:IF(CROSS(J,5),15,0),Color00FF00,STICK,linethick3;
WRSV:=(CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100;
WK:=MA(WRSV,M1);
D:=MA(WK,M2);
IF (CROSS(WK,D) AND WK<20)
BUY;
IF (CROSS(D,WK) AND WK>80)
SELL;
A4:=MA(CLOSE,20);
A5:=(CLOSE>MA(CLOSE,5));
A6:=(MA(CLOSE,5)>MA(CLOSE,10));
A7:=(CLOSE>MA(CLOSE,10));
A8:=(MA(CLOSE,5)>MA(CLOSE,20));
A9:=(CLOSE>MA(CLOSE,20));
A10:=REF(A4,1);
A11:=(A4> A10);
AVX:(((((IF(A5,10,(0 - 10)) + IF(A6,10,(0 - 10))) + IF(A7,10,(0 -10))) + IF(A8,10,(0 -10))) + IF(A9,10,(0 - 10))) + IF(A11,10,(0 -10))),COLOR0000FF;
AVX零轴:0,COLOR00FFFF;
其中,当出现买进信号后,红线同步上升可介入,导入软件之后的图形走势如下:
上一篇:下降楔形
下一篇:期现套利中如何规避增值税风险