通达信三度主图指标公式
2021/3/17 18:25:12
本文公式指标的选股公式如下:
三度主图之红箭头买选股指标公式
三度主图之绿宝石选股指标公式
Z1:=STRCAT(DYBLOCK,' ');
Z2:=STRCAT(Z1,HYBLOCK);
Z3:=STRCAT(Z2,' ');
Z4:=STRCAT(Z3,GNBLOCK);
Z5:=STRCAT(Z4,' ');
Z6:=STRCAT(Z5,FGBLOCK);
DRAWTEXT_FIX(ISLASTBAR,0.01,0.012,0,STRCAT(Z6,ZHBLOCK)),COLORCYAN;
筹码95:COST(95);
筹码85:COST(85);
DRAWBAND(筹码95,RGB(110 ,139 ,61),筹码85,RGB(110 ,139 ,61));
DRAWKLINE(HIGH,OPEN,LOW,CLOSE);
DRAWKLINE(HIGH,OPEN,LOW,CLOSE);
STICKLINE(C>O,O,C,3,0),COLORRED;
ST:=NAMELIKE('ST')=1 OR NAMELIKE('*ST')=1 OR NAMELIKE('SST')=1;
涨停:=C/REF(C,1)>1.097 OR (C/REF(C,1)>1.0495 AND ST);
跌停:=(C-REF(C,1))/REF(C,1)*100;
STICKLINE(跌停<-9.9,O,C,3,0),COLORGREEN;
STICKLINE(涨停,C,O,3,0),COLORMAGENTA;
DRAWICON(H=ZTPRICE(REF(CLOSE,1),0.1) AND C!=H,L*0.965,15);
均价:=AMOUNT/VOL/100;
标志阴:=REF(C,1)/C>1.04;
STICKLINE(标志阴,O,C,1,0)COLORWHITE;
假阴:=O>C AND 均价>REF(C,1) ;
STICKLINE(假阴,O,C,1,0),COLORRED;
MA10:MA(C,10),COLORWHITE,LINETHICK2;
MA30:MA(C,30),COLORYELLOW;
MA60:MA(C,60),COLORLIMAGENTA;
MA120:MA(C,120),COLORBLUE,LINETHICK2;
开盘:="999999$O";
收盘:="999999$C";
最高:="999999$H";
最低:="999999$L";
大盘下跌:=(REF(收盘,1)-收盘)/REF(收盘,1)>0.00001;
DRAWTEXT(涨停 AND 大盘下跌 AND NOT(H=L), H*1.025, '异'),COLORWHITE;
STICKLINE(C/REF(C,1)>=1.04 OR C/REF(C,1)<=0.96 AND C<=1000,(C+O)/2,(C+O)/2,2,1),COLORLIBLUE;{中分线};
STICKLINE(C/REF(C,1)>=1.04 OR C/REF(C,1)<=0.96 AND C<=1000,(MAX(O,C)-MIN(O,C))*2/3+MIN(O,C),(MAX(O,C)-MIN(O,C))*2/3+MIN(O,C),2,1),COLORLIBLUE;{上三一线};
STICKLINE(C/REF(C,1)>=1.04 OR C/REF(C,1)<=0.96 AND C<=1000,(MAX(O,C)-MIN(O,C))/3+MIN(O,C),(MAX(O,C)-MIN(O,C))/3+MIN(O,C),2,1),COLORLIBLUE;{下三一线};
STICKLINE(C/REF(C,1)>=1.005 OR C/REF(C,1)<=0.995 AND C>1000,(C+O)/2,(C+O)/2,2,1),COLORLIBLUE;{中分线};
STICKLINE(C/REF(C,1)>=1.005 OR C/REF(C,1)<=0.995 AND C>1000,(MAX(O,C)-MIN(O,C))*2/3+MIN(O,C),(MAX(O,C)-MIN(O,C))*2/3+MIN(O,C),2,1),COLORLIBLUE;{上三一线};
STICKLINE(C/REF(C,1)>=1.005 OR C/REF(C,1)<=0.995 AND C>1000,(MAX(O,C)-MIN(O,C))/3+MIN(O,C),(MAX(O,C)-MIN(O,C))/3+MIN(O,C),2,1),COLORLIBLUE;{下三一线};
N:=14;
MM:=6;
MTR:=EXPMEMA(MAX(MAX(HIGH-LOW,ABS(HIGH-REF(CLOSE,1))),ABS(REF(CLOSE,1)-LOW)),N);
HD :=HIGH-REF(HIGH,1);
LD :=REF(LOW,1)-LOW;
DMP:=EXPMEMA(IF(HD>0&&HD>LD,HD,0),N);
DMM:=EXPMEMA(IF(LD>0&&LD>HD,LD,0),N);
PDI:=DMP*100/MTR;
MDI:= DMM*100/MTR;
ADX:= EXPMEMA(ABS(MDI-PDI)/(MDI+PDI)*100,MM);
ADXR:=EXPMEMA(ADX,MM);
最大值:=MAX(MAX(MAX(PDI,MDI),ADX),ADXR);
最小值:=MIN(MIN(MIN(PDI,MDI),ADX),ADXR);
同心结:=CROSS(PDI,ADXR) AND CROSS(PDI,ADX) AND CROSS(ADX,MDI) AND CROSS(ADXR,MDI) AND 涨停 ;
上兄弟结:=COUNT(PDI>MDI,3)=2 AND CROSS(PDI,ADXR) AND CROSS(PDI,ADX) AND 涨停 ;
下兄弟结:=COUNT(PDI>MDI,3)=2 AND CROSS(ADX,MDI) AND CROSS(ADXR,MDI) AND 涨停 ;
娇集:=IF(涨停,1/(最大值-最小值)*100,0)>15;
顺向结:=PDI>REF(PDI,1) AND PDI>30 AND ADX>REF(ADX,1) AND ADXR>REF(ADXR,1) AND 涨停 AND DYNAINFO(4)>0;
DRAWICON(同心结,L,1);
DRAWICON(上兄弟结,L,26);
DRAWICON(下兄弟结,L*0.95,24);
DRAWICON(顺向结,L*0.98,27);
DRAWICON(娇集,L,38);
阳量0:=IF(C>O,V,0);
阳量1:=IF(REF(C,1)>REF(O,1),REF(V,1),0);
阳量2:=IF(REF(C,2)>REF(O,2),REF(V,2),0);
阳量3:=IF(REF(C,3)>REF(O,3),REF(V,3),0);
阳量4:=IF(REF(C,4)>REF(O,4),REF(V,4),0);
阳量5:=IF(REF(C,5)>REF(O,5),REF(V,5),0);
阳量6:=IF(REF(C,6)>REF(O,6),REF(V,6),0);
阳量7:=IF(REF(C,7)>REF(O,7),REF(V,7),0);
阳量8:=IF(REF(C,8)>REF(O,8),REF(V,8),0);
阳量9:=IF(REF(C,9)>REF(O,9),REF(V,9),0);
阳量10:=IF(REF(C,10)>REF(O,10),REF(V,10),0);
阳量11:=IF(REF(C,11)>REF(O,11),REF(V,11),0);
阳量12:=IF(REF(C,12)>REF(O,12),REF(V,12),0);
阳量13:=IF(REF(C,13)>REF(O,13),REF(V,13),0);
阳量14:=IF(REF(C,14)>REF(O,14),REF(V,14),0);
阳量15:=IF(REF(C,15)>REF(O,15),REF(V,15),0);
阳量16:=IF(REF(C,16)>REF(O,16),REF(V,16),0);
阳量17:=IF(REF(C,17)>REF(O,17),REF(V,17),0);
阳量18:=IF(REF(C,18)>REF(O,18),REF(V,18),0);
阳量19:=IF(REF(C,19)>REF(O,19),REF(V,19),0);
阳量20:=IF(REF(C,20)>REF(O,20),REF(V,20),0);
阴量0:=IF(C<O,V,0);
阴量1:=IF(REF(C,1)<REF(O,1),REF(V,1),0);
阴量2:=IF(REF(C,2)<REF(O,2),REF(V,2),0);
阴量3:=IF(REF(C,3)<REF(O,3),REF(V,3),0);
阴量4:=IF(REF(C,4)<REF(O,4),REF(V,4),0);
阴量5:=IF(REF(C,5)<REF(O,5),REF(V,5),0);
阴量6:=IF(REF(C,6)<REF(O,6),REF(V,6),0);
阴量7:=IF(REF(C,7)<REF(O,7),REF(V,7),0);
阴量8:=IF(REF(C,8)<REF(O,8),REF(V,8),0);
阴量9:=IF(REF(C,9)<REF(O,9),REF(V,9),0);
阴量10:=IF(REF(C,10)<REF(O,10),REF(V,10),0);
阴量11:=IF(REF(C,11)<REF(O,11),REF(V,11),0);
阴量12:=IF(REF(C,12)<REF(O,12),REF(V,12),0);
阴量13:=IF(REF(C,13)<REF(O,13),REF(V,13),0);
阴量14:=IF(REF(C,14)<REF(O,14),REF(V,14),0);
阴量15:=IF(REF(C,15)<REF(O,15),REF(V,15),0);
阴量16:=IF(REF(C,16)<REF(O,16),REF(V,16),0);
阴量17:=IF(REF(C,17)<REF(O,17),REF(V,17),0);
阴量18:=IF(REF(C,18)<REF(O,18),REF(V,18),0);
阴量19:=IF(REF(C,19)<REF(O,19),REF(V,19),0);
阴量20:=IF(REF(C,20)<REF(O,20),REF(V,20),0);
阳总量:=阳量0+阳量1+阳量2+阳量3+阳量4+阳量5+阳量6+阳量7+阳量8+阳量9+阳量10+阳量11+阳量12+阳量13+阳量14+阳量15+阳量16+阳量17+阳量18+阳量19+阳量20;
阴总量:=阴量0+阴量1+阴量2+阴量3+阴量4+阴量5+阴量6+阴量7+阴量8+阴量9+阴量10+阴量11+阴量12+阴量13+阴量14+阴量15+阴量16+阴量17+阴量18+阴量19+阴量20;
对比:=IF(DYNAINFO(4)>0 ,阳总量/阴总量,0);
DRAWTEXT_FIX(1,0,0.9,0,'【三阳控三阴】')COLORRED;
DRAWTEXT_FIX(1,0.15,0.9,0,CON2STR(REF(对比,1),2))COLORWHITE;
投 股票网 www .tou18.cn
股市公式下载推荐