以下是内部版通达信密码指标公式源码和使用说明
机构内部版通达信主力密码选股指标公式源码:
量:=VOL/((HIGH-LOW)*2-ABS(CLOSE-OPEN));
VOLUME:量,VOLSTICK;
买量:=IF(CLOSE OPEN,量*(HIGH-LOW),IF(CLOSE OPEN,量*((HIGH-OPEN)+(CLOSE-LOW)),VOL/2));
卖量:=(IF(CLOSE OPEN,0-量*((HIGH-CLOSE)+(OPEN-LOW)),IF(CLOSE OPEN,0-量*(HIGH-LOW),0-VOL/2)))*-1;
总量:=(买量+卖量),VOLSTICK;
净量:=买量-卖量
短量:=量-总量
STICKLINE(买量,0,VOL,0.8,0),COLORRED;
STICKLINE(净量,0,VOL,0.8,0),COLORYELLOW;
STICKLINE(短量,0,VOL,0.8,0),COLORMAGENTA;
拉升净买入黄色:0,COLORYELLOW;吸筹冲顶红色:0,COLORRED;短买量:0,COLORMAGENTA;
通达信:=EMA(C,12)-EMA(C,25);
主力密码:=EMA(通达信,6);
选股指标公式:(主力密码 =0)*主力密码,COLORWHITE,LINETHICK0;
ccdd1:(主力密码 0)*主力密码,COLORYELLOW,LINETHICK0;
ccdd2:(通达信 0)*通达信,COLORGREEN,LINETHICK0;
ccdd3:(通达信 =0)*通达信,COLORRED,LINETHICK0;
STICKLINE(主力密码 =0,主力密码,0,3.2,0),COLOR555555;
STICKLINE(主力密码 =0,主力密码,0,2.9,0),COLOR777777;
STICKLINE(主力密码 =0,主力密码,0,2.4,0),COLOR999999;
STICKLINE(主力密码 =0,主力密码,0,1.8,0),COLORBBBBBB;
STICKLINE(主力密码 =0,主力密码,0,1.1,0),COLORDDDDDD;
STICKLINE(主力密码 =0,主力密码,0,0.3,0),COLORFFFFFF;
STICKLINE(主力密码 0,主力密码,0,3.2,0),COLORFF5500;
STICKLINE(主力密码 0,主力密码,0,2.9,0),COLORFF7700;
STICKLINE(主力密码 0,主力密码,0,2.4,0),COLORFF9900;
STICKLINE(主力密码 0,主力密码,0,1.8,0),COLORFFBB00;
STICKLINE(主力密码 0,主力密码,0,1.1,0),COLORFFDD00;
STICKLINE(主力密码 0,主力密码,0,0.3,0),COLORFFFF00;
STICKLINE(通达信 0,通达信,0,3.2,0),COLORCC0066;
STICKLINE(通达信 0,通达信,0,2.9,0),COLOREE0066;
STICKLINE(通达信 0,通达信,0,2.4,0),COLORFF0066;
STICKLINE(通达信 0,通达信,0,1.8,0),COLORFF2266;
STICKLINE(通达信 0,通达信,0,1.1,0),COLORFF4466;
STICKLINE(通达信 0,通达信,0,0.3,0),COLORFF6666;
STICKLINE(通达信 =0,通达信,0,3.2,0),COLOR000055;
STICKLINE(通达信 =0,通达信,0,2.9,0),COLOR000077;
STICKLINE(通达信 =0,通达信,0,2.4,0),COLOR000099;
STICKLINE(通达信 =0,通达信,0,1.8,0),COLOR0000BB;
STICKLINE(通达信 =0,通达信,0,1.1,0),COLOR0000DD;
STICKLINE(通达信 =0,通达信,0,0.3,0),COLOR0000FF;
ccdd4:IF(SAR(10,2,20) =H,0,DRAWNULL),CIRCLEDOT,COLORGREEN;
ccdd5:IF(SAR(10,2,20) =L,0,DRAWNULL),CIRCLEDOT,COLOR000099;
VARR1:=(HHV(HIGH,24)-CLOSE)/(HHV(HIGH,24)-LLV(LOW,24))*100;
VARR2:=(CLOSE-LLV(LOW,18))/(HHV(HIGH,18)-LLV(LOW,18))*100;
VARR3:=(2*CLOSE+HIGH+LOW)/4;
VARR4:=LLV(LOW,26);
VARR5:=HHV(HIGH,34);
VARR6:=EMA((VARR3-VARR4)/(VARR5-VARR4)*100,16);
VARR7:=SMA((SMA(VARR2,3,1)+3),3,1),LINETHICK3;
VARR8:=EMA(VARR6,7);
VARR9:=SMA(VARR1,3,1);
VARR10:=(CLOSE-MA(CLOSE,6))/MA(CLOSE,6)*100;
VARR11:=(CLOSE-MA(CLOSE,24))/MA(CLOSE,24)*100;
VARR12:=(CLOSE-MA(CLOSE,32))/MA(CLOSE,32)*100;
VARR13:=(VARR10+VARR11+VARR12)/3;
VARR14:=IF(VARR13 =-20,10,0);
VARR15:=HHV(VARR14,10);
VARR24:=LLV(LOW,36);
VARR25:=HHV(HIGH,30);
VARR26:=EMA((CLOSE-VARR24)/(VARR25-VARR24)*4,4)*25;
VARB27:=(((CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100)/2+22)*1;
VARB28:=(((CLOSE-(((EMA(AMOUNT,13)/EMA(VOL,13))/100)))/(((EMA(AMOUNT,13)/EMA(VOL,13))/100)))*100);
VAR2:=LLV(LOW,10);
VAR33:=HHV(HIGH,25);
动力线:=EMA((CLOSE-VAR2)/(VAR33-VAR2)*4,4);
底部:=0.2;
阶段底部:=CROSS(动力线,底部);
MAA5:=MA(C,5);
MAA10:=MA(C,10);
MAA30:=MA(C,30),;
KS:=IF(MAA10 MAA30,MAA10,MAA30);
A3:=(C-LLV(L,9))/(HHV(H,9)-LLV(L,9))*100;
A4:=SMA(A3,3,1);
A5:=SMA(A4,3,1);
A6:=3*A4-2*A5;
A7:=C-REF(C,1);
A8:=100*EMA(EMA(A7,6),6)/EMA(EMA(ABS(A7),6),6);
买:=LLV(A8,2)=LLV(A8,7)ANDCOUNT(A8 0,2)ANDCROSS(A8,MA(A8,2));
替换:=FILTER(买=1,5);
绝底:((VARB28 (0)) AND替换)AND((CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100) VARB27-2ANDVARR26 10AND阶段底部,STICK,LINETHICK2;
STICKLINE(绝底,0.58,0,1,0),COLORF05B72;
STICKLINE(绝底,0.58,0.78,3,0),COLORF47920;
DRAWICON(绝底,1,13);
DRAWICON(绝底,1.1,38);
机构内部版通达信主力密码选股指标公式截图