通达信公式源码概况:
指标类别:通达信公式
授权方式: 免费版
指标评级: ★★★★★
指标分类: 策略
画线方法: 副图
一、通达信股票倍量柱选股指标公式
A1:=EMA(C,12)-EMA(C,25);
A2:=EMA(A1,6);
★主力:(A2>=0)*A2,COLORWHITE,LINETHICK0;
STICKLINE(A2>=0,A2,0,5,0),COLORWHITE;
STICKLINE(A2<0,A2,0,5,0),COLORD4FF7F;
STICKLINE(A1<0,A1,0,5,0),COLORB00058;
STICKLINE(A1>=0,A1,0,5,0),COLORRED;
VAR8:=VOL>2*MA(VOL,30);
VAR9:="DMI.ADX"(12,6);
VARA:="DMI.ADXR"(12,6);
VARB:=CLOSE>MA(CLOSE,30)ANDCLOSE<MA(CLOSE,30)*1.04;
VARC:=MA(CLOSE,30)>REF(MA(CLOSE,30),1);
VARD:=BARSLAST(CROSS(MA(CLOSE,5),MA(CLOSE,10)))<BARSLAST(CROSS(MA(CLOSE,10),MA(CLOSE,5)));
VARF:=TROUGHBARS(3,15,1)<4;
VAR10:=EMA(CLOSE,30)>REF(EMA(CLOSE,30),2);
VAR11:=IF(VARF=1,50,0);
★机构:EMA((CLOSE-MA((2*CLOSE+HIGH+LOW)/4,30))/MA((2*CLOSE+HIGH+LOW)/4,30)*100,3),COLORWHITE;
0,COLORRED;
STICKLINE(FILTER(VARF=1,5)AND★机构<-10,50,0,15,1),COLORYELLOW;
STICKLINE(FILTER(VARF=1,5),86,0,8,0),COLORRED;
DRAWTEXT(FILTER(VARF=1,3),76,'★◆黄金柱◆'),COLORYELLOW;
STICKLINE(★机构<-10,0,★机构,0.85,0),COLORGREEN;
STICKLINE(★机构>10,0,★机构,0.95,0),COLORYELLOW;
★低点:CROSS(RSI,11)*80,COLORBLUE;
DRAWTEXT(CURRBARSCOUNT=6,119,'作者王谷'),COLORYELLOW;
DRAWTEXT(★低点,39,'★低点'),COLOR66FFCC;
VAR6:=REF((LOW+OPEN+CLOSE+HIGH)/4,1);
VAR7:=SMA(ABS(VAR6-H),13,1)/SMA(MAX(VAR6-H,0),10,1);
VAR0:=EMA(IF(H>=VAR9,VAR8,0),3);
★主出场:IF(VAR0>REF(VAR0,1),-VAR0+100,100),COLORGREEN;
VAR1:=REF((LOW+OPEN+CLOSE+HIGH)/4,1);
VAR2:=SMA(ABS(LOW-VAR1),13,1)/SMA(MAX(LOW-VAR1,0),10,1);
VAR3:=EMA(VAR2,10),COLORGREEN;
VAR4:=LLV(LOW,33),COLORWHITE;
VAR5:=EMA(IF(LOW<=VAR4,VAR3,0),3);
★主进场:IF(VAR5>REF(VAR5,1),VAR5,0),COLORRED;
换手率%:100*VOL/(FINANCE(7)/100)COLORYELLOW,NODRAW;
低迷:IF(换手率%<=1,换手率%,DRAWNULL),COLORFF9900,NODRAW;
温和:IF(换手率%>1&&换手率%<=3,换手率%,DRAWNULL),COLORBBBBBB,NODRAW;
异动:IF(换手率%>3&&换手率%<=5,换手率%,DRAWNULL),NODRAW;
活跃:IF(换手率%>5&&换手率%<=8,换手率%,DRAWNULL)COLORMAGENTA,NODRAW;
非常活跃:IF(换手率%>8&&换手率%<=10,换手率%,DRAWNULL)COLORYELLOW,NODRAW;
高度活跃:IF(换手率%>10&&换手率%<=15,换手率%,DRAWNULL)COLOR0077FF,NODRAW;
极度活跃:IF(换手率%>15&&换手率%<=25,换手率%,DRAWNULL)COLORRED,NODRAW;
巨量换手:IF(换手率%>25,换手率%,DRAWNULL)COLOR000099,NODRAW;
DRAWTEXT(FILTER(3,150),3*1.05,'活跃分界线'),COLORYELLOW;
STICKLINE(低迷,换手率%,0,2.8,0),COLORFF0000;{低迷蓝色}
STICKLINE(低迷,换手率%,0,2.3,0),COLORFF3300;
STICKLINE(低迷,换手率%,0,1.7,0),COLORFF5500;
STICKLINE(低迷,换手率%,0,1.0,0),COLORFF7700;
STICKLINE(低迷,换手率%,0,0.3,0),COLORFF9900;
STICKLINE(温和,换手率%,0,2.8,0),COLOR555555;{温和灰色}
STICKLINE(温和,换手率%,0,2.3,0),COLOR777777;
STICKLINE(温和,换手率%,0,1.7,0),COLOR999999;
STICKLINE(温和,换手率%,0,1.0,0),COLORBBBBBB;
STICKLINE(温和,换手率%,0,0.3,0),COLORDDDDDD;
STICKLINE(异动,换手率%,0,2.8,0),COLOR004400;{异动绿色}
STICKLINE(异动,换手率%,0,2.3,0),COLOR006600;
STICKLINE(异动,换手率%,0,1.7,0),COLOR009900;
STICKLINE(异动,换手率%,0,1.0,0),COLOR00CC00;
STICKLINE(异动,换手率%,0,0.3,0),COLOR00FF00;
STICKLINE(活跃,换手率%,0,2.8,0),COLOR880088;{活跃粉色}
STICKLINE(活跃,换手率%,0,2.3,0),COLORAA00AA;
STICKLINE(活跃,换手率%,0,1.7,0),COLORCC00CC;
STICKLINE(活跃,换手率%,0,1.0,0),COLOREE00EE;
STICKLINE(活跃,换手率%,0,0.3,0),COLORFF33FF;
STICKLINE(非常活跃,换手率%,0,2.8,0),COLOR008888;{非常活跃黄色}
STICKLINE(非常活跃,换手率%,0,2.3,0),COLOR00AAAA;
STICKLINE(非常活跃,换手率%,0,1.7,0),COLOR00CCCC;
STICKLINE(非常活跃,换手率%,0,1.0,0),COLOR00EEEE;
STICKLINE(非常活跃,换手率%,0,0.3,0),COLOR44FFFF;
STICKLINE(高度活跃,换手率%,0,2.8,0),COLOR0000AA;{高度活跃橘红}
STICKLINE(高度活跃,换手率%,0,2.3,0),COLOR0022CC;
STICKLINE(高度活跃,换手率%,0,1.7,0),COLOR0044DD;
STICKLINE(高度活跃,换手率%,0,1.0,0),COLOR0055FF;
STICKLINE(高度活跃,换手率%,0,0.3,0),COLOR0099FF;
STICKLINE(极度活跃,换手率%,0,2.8,0),COLOR000066;{极度活跃红色}
STICKLINE(极度活跃,换手率%,0,2.3,0),COLOR000088;
STICKLINE(极度活跃,换手率%,0,1.7,0),COLOR0000AA;
STICKLINE(极度活跃,换手率%,0,1.0,0),COLOR0000CC;
STICKLINE(极度活跃,换手率%,0,0.3,0),COLOR2222FF;
STICKLINE(巨量换手,换手率%,0,2.8,0),COLOR000022;{巨量换手酱红色}
STICKLINE(巨量换手,换手率%,0,2.3,0),COLOR000033;
STICKLINE(巨量换手,换手率%,0,1.7,0),COLOR000055;
STICKLINE(巨量换手,换手率%,0,1.0,0),COLOR000077;
STICKLINE(巨量换手,换手率%,0,0.3,0),COLOR000099;
换手5:MA(换手率%,5),COLORRED,LINETHICK1;
换手10:MA(换手率%,10),COLORBLUE,LINETHICK1;
F1:=(EMA(CLOSE,3)-EMA(CLOSE,7));
A1:=EMA(F1,3);
YY:=2*(F1-A1);
DIFK:=EMA(F1,3);
DIFD:=EMA(DIFK,3);
DKK:=4*F1-3*A1;
DDD:=EMA(DKK,5);
TRLSX1:=MAX(MAX((HHV(F1,13)-LLV(F1,13)),ABS(REF(F1,1)-HHV(F1,13))),ABS(REF(F1,1)-LLV(F1,13)));
TRLSX2:=EMA(TRLSX1,13);
TRLSX3:=REF(F1,1)-REF(TRLSX2,1);
支撑:=HHV(TRLSX3,13),COLORFFFFFF,NODRAW;
RSV14:=(CLOSE-LLV(LOW,5))/(HHV(HIGH,5)-LLV(LOW,5))-0.5;
K14:=EMA(RSV14,3),COLORFF00FF,NODRAW;
D14:=EMA(K14,3),COLORGREEN,NODRAW;
J14:=3*K14-2*D14;
DRAWBAND(F1,RGB(200,50,55),A1,RGB(50,100,10));
MACDXG2:=REF(COUNT(F1>0ANDYY<0ANDYY<REF(YY,1),4)=4,1)ANDYY>REF(YY,1);
STICKLINE(MACDXG2,YY*1.2,0,2.8,0),COLORRED;
STICKLINE(YY>REF(YY,1)ANDYY>0,0,YY,1.8,0),COLOR000055;
STICKLINE(YY>REF(YY,1)ANDYY>0,0,YY,1.1,0),COLOR000099;
STICKLINE(YY>REF(YY,1)ANDYY>0,0,YY,0.6,0),COLOR0000BB;
STICKLINE(YY<=REF(YY,1)ANDYY>0,0,YY,1.8,0),COLOR888888;
STICKLINE(YY<=REF(YY,1)ANDYY>0,0,YY,1.1,0),COLORBBBBBB;
STICKLINE(YY<=REF(YY,1)ANDYY>0,0,YY,0.6,0),COLORDDDDDD;
STICKLINE(YY>REF(YY,1)ANDYY<0,0,YY,1.8,0),COLOR3377AA;
STICKLINE(YY>REF(YY,1)ANDYY<0,0,YY,1.1,0),COLOR3388BB;
STICKLINE(YY>REF(YY,1)ANDYY<0,0,YY,0.6,0),COLOR4499CC;
STICKLINE(YY<=REF(YY,1)ANDYY<0,0,YY,1.8,0),COLORFF3300;
STICKLINE(YY<=REF(YY,1)ANDYY<0,0,YY,1.1,0),COLORFF5500;
STICKLINE(YY<=REF(YY,1)ANDYY<0,0,YY,0.6,0),COLORFF7700;
STICKLINE(J14<-0.5,0,0.15,1.8,0),COLORFF00FF;
KDJXG:=REF(COUNT(J14<REF(J14,1),5)>=3,1)ANDREF(J14,1)<-0.4ANDJ14>REF(J14,1);
DRAWICON(FILTER(KDJXG,3),YY*2.08,11);
准备介入点:=REF(CROSS(0,YY),3)ANDCOUNT(F1>0ANDYY<REF(YY,1),4)=4;
DRAWICON(准备介入点,0.25,9);
DRAWTEXT_FIX(C=C,0,0.02,0,'蓝柱离场,红柱全仓,棕柱低吸,白柱风险显现'),COLORGREEN;
VAR1:=(CLOSE+HIGH+LOW+OPEN)/4;
VAR2:=SUMBARS(VOL,CAPITAL);
VAR3:=HHV(VAR1,VAR2);
VAR4:=LLV(VAR1,VAR2);
VAR5:=(2*VAR1-VAR4-REF(VAR4,1))/(VAR3-VAR4);
VAR6:=(VAR1-VAR4)/(VAR3-VAR4);
VAR7:=IF(VAR1<=VAR4,VAR5*60,VAR6*60);
VAR8:=600*(EMA(CLOSE,3)-EMA(LOW,30))/EMA(LOW,30);
VAR9:=EMA(VAR8,7);
VARA:=(WINNER(120*CLOSE/100)-WINNER(100*CLOSE/100))*100;
VARB:=(-100)*(WINNER(120*CLOSE/100)-WINNER(100*CLOSE/100))+5;
VARC:=HHV(HIGH,9)-LLV(LOW,9);
VARD:=HHV(HIGH,9)-CLOSE;
VARE:=CLOSE-LLV(LOW,9);
VARF:=VARD/VARC*100-70;
VAR10:=(CLOSE-LLV(LOW,60))/(HHV(HIGH,60)-LLV(LOW,60))*100;
VAR11:=(2*CLOSE+HIGH+LOW)/4;
VAR12:=SMA(VARE/VARC*100,3,1);
VAR13:=LLV(LOW,34);
VAR14:=SMA(VAR12,3,1)-SMA(VARF,9,1);
VAR15:=IF(VAR14>100,VAR14-100,0);
VAR16:=HHV(HIGH,34);
VAR17:=EMA((VAR11-VAR13)/(VAR16-VAR13)*100,8);
VAR18:=EMA(VAR17,5);
STICKLINE(VAR17-VAR18>0,VAR17,VAR18,8,1),,COLORRED;
STICKLINE(VAR17-VAR18<0,VAR17,VAR18,8,1),,COLORGREEN;
Q1:=(CLOSE-REF(CLOSE,1))/REF(CLOSE,1)*100;
Q2:=(CLOSE-LLV(LOW,18))/(HHV(HIGH,18)-LLV(LOW,18))*100;
Q3:=SMA(Q2,9,1);
Q4:=SMA(Q3,3,1);
AA:3*Q3-2*Q4,,COLORYELLOW;
Q5:=AA>1*REF(AA,1);
Q6:=LLVBARS(LOW,50);
Q7:=SUM(VOL,Q6);
Q8:=HHVBARS(HIGH,50);
Q9:=SUM(VOL,Q8);
Q10:=(CLOSE-REF(OPEN,Q8))/REF(OPEN,Q8)*100;
Q11:=HHV(AA,5);
A1:EMA(Q3,3),COLORFFDDCC;
A2:EMA(A1,3),COLORFFBBCC;
A3:EMA(A2,3),COLORFF99CC;
A4:EMA(A3,3),COLORFF55CC;
A5:EMA(A4,3),COLORFF33CC;
A6:EMA(A5,3),COLORFF11CC;
A:EMA(A4,3),,COLORFF00CC;
DRAWTEXT(CROSS(AA,20)ANDQ10<-13,10,'☆大底'),COLOR00FF00;
DRAWTEXT(CROSS(AA,A5)ANDREF(AA,1)<34,REF(AA,1),'☆发财了'),COLORRED
;
DRAWTEXT(CROSS(A1,AA)ANDREF(AA,1)>80,REF(AA,3),'☆闪人'),COLORCFB53B
;
DRAWTEXT(CROSS(AA,A1)ANDQ5ANDA1<20ANDQ1>9ORA1>1*REF(A1,1)
ANDQ1>4ANDA1<60,30,'拉'),COLORFFFFCC;
DQ:=CROSS(AA,A1)ANDCROSS(A1,A2)ANDAA>A6;
STICKLINE(DQ,30,80,1.2,0);
ABV:=MA(SUM(IF(CLOSE>REF(CLOSE,1),VOL,IF(CLOSE<REF(CLOSE,1),-VOL,0)),0)/25000,2);
M1:=EMA(ABV,12);
M2:=EMA(ABV,26);
MTM:=CLOSE-REF(CLOSE,1);
MMS:=((100)*(EMA(EMA(MTM,6),6)))/(EMA(EMA(ABS(MTM),6),6));
MMM:=((100)*(EMA(EMA(MTM,12),12)))/(EMA(EMA(ABS(MTM),12),12));
MML:=((100)*(EMA(EMA(MTM,26),26)))/(EMA(EMA(ABS(MTM),26),26));
A:=((VOL)/(CAPITAL))*(100);
S:=((MA(A,30))/(MA(INDEXA,10)))*(MA(INDEXA,60));
Y:=((MA(A,120))/(MA(INDEXA,10)))*(MA(INDEXA,60));
X:=1;
拉升在即:S<XANDY<XANDMMS>MMLANDABV>M1ANDCROSS(S,Y);
[源码注释]通达信公式动态翻译结果
输出XG:统计30日中满足(最高价/收盘价和开盘价的较大值-1)*100>3的天数>1
每日通达信公式解答:
编写条件:
前1天涨停后烂板,收盘封死涨停,今日高开5个点以上的选股公式。
编写方法:
ZT:=IF(NAMELIKE('ST')ORNAMELIKE('*ST'),C/REF(C,1)>0.495,
IF((CODELIKE('688')ORCODELIKE('300'))ANDDATE>=1200824,C>REF(C,1)>1.195,
C/REF(C,1)>1.095));
REF(H=ZT&&C<H,1)&&O/REF(C,1)>1.05
评论(0)