太极成交量和KDJ幅图公式

[复制链接]
查看94 | 回复0 | 2021-8-20 04:04:19 | 显示全部楼层 |阅读模式

以下是太极成交量和KDJ幅图公式(无源码的请下载附件导入)

太极成交量和KDJ幅图公式

太极成交量源码:


 总手:VOL,NODRAW;
 DRAWTEXT_FIX(ISLASTBAR,0,0,0,'说明: 红色柱为吸货量,绿色为出货量,黄色为天量,蓝色为地量'),COLORGRAY;
 ZZ:=IF(REF(C,1)>REF(O,1) AND O>REF(C,1)*1.014 AND C<O*1.02,1,3);
 V5:=MA(V,5);
 V12:=MA(V,12);
 V34:=MA(V,34);
 C6:=MA(C,6);
 STICKLINE(VOL,0,VOL,1,0),COLORLIGRAY;
 STICKLINE(CROSS(C,C6) AND V>V5*1.2 AND V>V12*1.2 AND ZZ>2 AND C>H*0.975,0,VOL,1,0),COLORRED;
 STICKLINE(CROSS(C6,C) AND V>V5*1.2 AND V>V12*1.2,0,VOL,1,0),COLORGREEN;
 STICKLINE(VOL>MA(VOL,5)*2 AND V>V34*3 AND C<REF(C,1)*1.05,0,VOL,1,0),COLORYELLOW;
 STICKLINE(VOL<MA(VOL,5)/2 AND V<V12/2,0,VOL,1,0),COLORBLUE;
 STICKLINE(VOL>MA(VOL,5)*2 AND V>V34*3 AND C<REF(C,1)*1.05 AND CROSS(C,C6) AND V>V5*1.2 AND V>V12*1.2 AND ZZ>2 AND C>H*0.975,VOL*0.5,0,1,0),COLORRED;
 STICKLINE(VOL>MA(VOL,5)*2 AND V>V34*3 AND C<REF(C,1)*1.05 AND CROSS(C6,C) AND V>V5*1.2 AND V>V12*1.2,VOL*0.5,0,1,0),COLORRED;

 T:=DYNAINFO(8)>0;
 VO:VOL=LLV(VOL,100) AND T;
地量柱:T AND VO;
 DRAWTEXT(地量柱,VOL+3000,'地');
BLZ:=VOL>REF(V,1)*1.9;
 BLZ1:=VOL<REF(LLV(VOL,13),1);
 BLZ2:=VOL<REF(LLV(VOL,55),1);
倍量柱:BLZ;
 DRAWTEXT(倍量柱,VOL+3000,'倍');
FLZ:=V>REF(V,1)*0.98 AND V<REF(V,1)*1.02,LINETHICK0;
 DRAWTEXT(FLZ,VOL+3000,'平');

 


KDJ源码:

RSV:=(CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100;
 K:SMA(RSV,M1,1);
 D:SMA(K,M2,1);
 J:3*K-2*D;

回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则