通达信指标公式源码概况:
指标类别: 通达信指标公式
授权方式: 免费版
指标评级: ★★★★★
指标分类: 策略
画线方法: 副图
筹码捉主升指标公式
DIF1:=EMA(CLOSE,12)-EMA(CLOSE,26),COLOR00FF00,LINETHICK1;
DEA1:=EMA(DIF1,9),COLOR00FF00,LINETHICK1;
DRAWICON(CROSS(DIF1,DEA1),DEA1,1);
DRAWICON(CROSS(DEA1,DIF1),DEA1,2);
{主升浪消失出局}
DI:=EMA(CLOSE,4)-EMA(CLOSE,13),COLORMAGENTA,LINETHICK2;
D1:=EMA(DI,5),COLORGRAY;
D2:=EMA(DI,10),COLORGRAY;
D3:=EMA(DI,20),COLORGRAY;
D4:=EMA(DI,30),COLORGRAY;
D5:=EMA(DI,60),COLORGRAY;
D6:=EMA(DI,90),COLORGRAY;
D7:=EMA(DI,120),COLORGRAY;
D8:=EMA(DI,250),COLORGRAY;
AA:=STICKLINE(DI=REF(DI,1) AND D1=REF(D1,1) AND D2=REF(D2,1) AND D3=REF(D3,1) AND
D4=REF(D4,1) AND D5=REF(D5,1) AND D6=REF(D6,1) AND D7=REF(D7,1) AND
D8=REF(D8,1) AND CEMA(C,11) AND DI-0.8,DI,0,2,0),COLORRED;
STICKLINE(AA,DIF1,DEA1,3,0),COLORE6E8FA;
{柱状线}
MACD1:=(DIF1-DEA1)*2;
STICKLINE(MACD1REF(MACD1,1),0,MACD1,3.2,0),COLOR0000FF;
STICKLINE(MACD1REF(MACD1,1),0,MACD1,2.7,0),,COLOR0000FF;
STICKLINE(MACD1REF(MACD1,1),0,MACD1,2.1,0),COLOR0000FF;
STICKLINE(MACD1REF(MACD1,1),0,MACD1,1.5,0),COLOR0000FF;
STICKLINE(MACD1REF(MACD1,1),0,MACD1,0.9,0),COLOR0000FF;
STICKLINE(MACD1REF(MACD1,1),0,MACD1,0.3,0),COLORCC66FF;
STICKLINE(MACD1REF(MACD1,1),0,MACD1,3.2,0),COLORFF9900;
STICKLINE(MACD1REF(MACD1,1),0,MACD1,2.7,0),COLORFF9900;
STICKLINE(MACD1REF(MACD1,1),0,MACD1,2.1,0),COLORFF9900;
STICKLINE(MACD1REF(MACD1,1),0,MACD1,1.5,0),COLORFF9900;
STICKLINE(MACD1REF(MACD1,1),0,MACD1,0.9,0),COLORFF9900;
STICKLINE(MACD1REF(MACD1,1),0,MACD1,0.3,0),COLORFFCC00;
STICKLINE(MACD1=0 OR MACD1=0,0,0,50,1),COLORWHITE;
{买点提示}
A1:=BARSLAST(REF(CROSS(DIF1,DEA1),1));
BL:=REF(CLOSE,A1+1)CLOSE AND DIF1REF(DIF1,A1+1) AND CROSS(DIF1,DEA1);
{STICKLINE(BL,0,1,2,0),COLOR00FF00;}
DRAWICON(BL,DEA1,23);
A2:=BARSLAST(REF(CROSS(DEA1,DIF1),1));
DBL:=REF(CLOSE,A2+1)CLOSE AND REF(DIF1,A2+1)DIF1 AND CROSS(DEA1,DIF1);
DRAWICON(DBL,DEA1,12);
低位金叉:=CROSS(DIF1,DEA1) AND DIF1-0.1;
DRAWTEXT(低位金叉,DIF1,' 低位金叉');
JCCOUNT:=COUNT(CROSS(DIF1,DEA1),BARSLAST(DEA1=0));
二次金叉:=CROSS(DIF1,DEA1) AND DEA10 AND COUNT(JCCOUNT=2,21)=1;
DRAWICON(二次金叉,DEA1*1.04,13) ;
DRAWTEXT(二次金叉,-0.1,' 二次金叉'),COLORFF00FF;
A10:=BARSLAST(REF(CROSS(DIF1,DEA1),1));
底背离:=REF(CLOSE,A10+1)CLOSE AND DIF1REF(DIF1,A10+1) AND CROSS(DIF1,DEA1);
DRAWLINE(A10=0,DEA1,底背离,DEA1,0),COLORRED,LINETHICK2;
DRAWTEXT(底背离,-0.50,' 底背离'),COLOR00FF00;
A20:=BARSLAST(REF(CROSS(DEA1,DIF1),1));
顶背离:=REF(CLOSE,A20+1)CLOSE AND REF(DIF1,A20+1)DIF1 AND CROSS(DEA1,DIF1);
DRAWLINE(A20=0,DEA1,顶背离,DEA1,0),COLORWHITE,LINETHICK2;
{趋势柱状线}
WY1001:=(2*CLOSE+HIGH+LOW)/4;
WY1002:=EMA(WY1001,4);
WY1003:=EMA(WY1002,4);
WY1004:=EMA(WY1003,4);
X:=(WY1004-REF(WY1004,1))/REF(WY1004,1)*100;
X1:=IF(XREF(X,1),X,DRAWNULL),COLORWHITE,LINETHICK2;
XO:=MA(X,2),COLOR9932CD;
SI:=REF(X,1);
STICKLINE(XSI,X,SI,2.3,0),COLOR0000FF;
STICKLINE(XSI,X,SI,0.3,0),COLORCC66FF;
STICKLINE(XSI,X,SI,2.3,0),COLOR00BB00;
STICKLINE(XSI,X,SI,0.3,0),COLOR00FF00;
STICKLINE(底背离,X,SI,1,0),COLORYELLOW;
STICKLINE(低位金叉,X,SI,1,0),COLORWHITE;
STICKLINE(低位金叉 AND 底背离,X,SI,0.1,0),COLORYELLOW;
{买点2,可省}
VAR2:=REF(LOW,1);
VAR3:=SMA(ABS(LOW-VAR2),3,1)/SMA(MAX(LOW-VAR2,0),3,1)*100;
VAR4:=EMA(IF(CLOSE*1.3,VAR3*10,VAR3/10),3);
VAR5:=LLV(LOW,13);
VAR6:=HHV(VAR4,13);
VAR7:=IF(MA(CLOSE,34),1,0);
VAR8:=EMA(IF(LOW=VAR5,(VAR4+VAR6*2)/2,0),3)/618*VAR7;
VAR9:=IF(VAR8100,100,VAR8);
VAR10:=IF(VAR9-120,VAR9,0);
VAR11:=VAR10REF(VAR10,1);
DRAWTEXT(VAR11 AND REF(NOT(VAR11),1),0,'☆'),COLORYELLOW;
{走势线}
DIF:DIF1,LINETHICK1,COLORGREEN;
DEA:DEA1,LINETHICK1,COLORGREEN;
DIF2:IF(MACDREF(MACD,1),DIF1,DRAWNULL),COLORRED,LINETHICK1;
DEA2:IF(DEA1DIF1,DEA1,DRAWNULL),COLORFF00FF,LINETHICK1;
{主力进场}
VAR12:=REF((LOW+OPEN+CLOSE+HIGH)/4,1);
VAR13:=SMA(ABS(LOW-VAR12),13,1)/SMA(MAX(LOW-VAR12,0),10,1);
VAR14:=EMA(VAR13,10);
VAR15:=LLV(LOW,33);
VAR16:=EMA(IF(LOW=VAR15,VAR14,0),3);
主力进场:=IF(VAR16REF(VAR16,1),VAR16,0),COLORRED,NODRAW;
STICKLINE(主力进场,X,SI,0.1,0),COLORRED;
VAR3:=LLV(HIGH,240);
VAR4:=100*(CLOSE-VAR3)/VAR3;
VAR5:=(CLOSE-LLV(LOW,528))/(HHV(HIGH,528)-LLV(LOW,528))*100;
VAR6:=(CLOSE-LLV(CLOSE,530))/(HHV(CLOSE,530)-LLV(CLOSE,530))*100;
VAR8:=SMA(MAX(CLOSE-REF(CLOSE,1),0),34,1)/SMA(ABS(CLOSE-REF(CLOSE,1)),7,1)*100;
VAR9:=SMA(MAX(CLOSE-REF(CLOSE,1),0),13,1)/SMA(ABS(CLOSE-REF(CLOSE,1)),13,1)*100;
VARA:=BARSCOUNT(CLOSE);
VARB:=VAR820 AND VAR923 AND VARA35;
VARC:=VARB AND COUNT(VARB,1)=1;
VARD:=EMA(CLOSE,21)-EMA(CLOSE,8);
VARE:=EMA(VARD,5);
VARF:=TROUGHBARS(3,6,1)4 AND CROSS(VARD,VARE);
VAR10:=IF(TROUGHBARS(3,16,1)=0 AND HIGHLOW+0.04,4,0);
VAR11:=ZIG(3,6)REF(ZIG(3,6),1) AND REF(ZIG(3,6),1)=REF(ZIG(3,6),2) AND REF(ZIG(3,6),2)=REF(ZIG(3,6),3);
VAR12:=ZIG(3,6)REF(ZIG(3,6),1) AND REF(ZIG(3,6),1)=REF(ZIG(3,6),2) AND REF(ZIG(3,6),2)=REF(ZIG(3,6),3);
VAR13:=ZIG(3,22)REF(ZIG(3,22),1) AND REF(ZIG(3,22),1)=REF(ZIG(3,22),2) AND REF(ZIG(3,22),2)=REF(ZIG(3,22),3);
VAR14:=ZIG(3,22)REF(ZIG(3,22),1) AND REF(ZIG(3,22),1)=REF(ZIG(3,22),2) AND REF(ZIG(3,22),2)=REF(ZIG(3,22),3);
VAR15:=ZIG(3,51)REF(ZIG(3,51),1) AND REF(ZIG(3,51),1)=REF(ZIG(3,51),2) AND REF(ZIG(3,51),2)=REF(ZIG(3,51),3);
VAR16:=ZIG(3,51)REF(ZIG(3,51),1) AND REF(ZIG(3,51),1)=REF(ZIG(3,51),2) AND REF(ZIG(3,51),2)=REF(ZIG(3,51),3);
VAR17:=ZIG(3,72)REF(ZIG(3,72),1) AND REF(ZIG(3,72),1)=REF(ZIG(3,72),2) AND REF(ZIG(3,72),2)=REF(ZIG(3,72),3);
VAR18:=ZIG(3,72)REF(ZIG(3,72),1) AND REF(ZIG(3,72),1)=REF(ZIG(3,72),2) AND REF(ZIG(3,72),2)=REF(ZIG(3,72),3);
VAR19:=EMA(CLOSE,2)-EMA(CLOSE,150);
VAR1A:=EMA(VAR19,100);
VAR1B:=2*(VAR19-VAR1A);
VAR1C:=POW(VAR1B,3)*0.1+POW(VAR1B,1);
VAR1D:=SQRT(SQRT(LOW*HIGH*OPEN*CLOSE));
VAR1E:=EMA(VAR1D*0.97,3);
VAR1F:=(HIGH+LOW+CLOSE)/3;
VAR20:=(VAR1F-MA(VAR1F,14))/(0.015*AVEDEV(VAR1F,14));
VAR21:=CROSS(VAR1E,LOW);
选股买点: VAR10, , COLORYELLOW;
组合买: (VAR11+VAR13+VAR15+VAR17), , COLORRED;
组合卖: (VAR12+VAR14+VAR16+VAR18), , COLORGREEN;
黑马线: IF(MONTH2008 AND VAR1B0.1,VAR1C,0)*1, COLORMAGENTA,LINETHICK2;
黑马信号介入点: 选股买点 AND VARF AND VARC AND VAR21 AND VAR40 AND VAR52 AND VAR6=0, , COLORFFFF99;
DRAWTEXT(VAR13,0.6,'●'), ,COLORRED;
DRAWICON(组合买,组合买,1);
DRAWICON(组合卖,组合卖,9);
DRAWTEXT(黑马信号介入点0,4.5,'●我的黑马介入点'), , COLORRED;
DRAWICON(选股买点0,4.2,1);
DRAWTEXT(选股买点 AND VARF AND VARC,2.8,' 30%下单莫错过!'), , COLORMAGENTA;
DRAWTEXT(VAR18,3,'空仓'), , COLORGREEN;
DRAWTEXT(VAR20-110 AND 选股买点0,2,'选股买点'), ,COLORYELLOW;
DRAWTEXT(VAR17,1.3,'发现黑马'), , COLORFF6600;
DRAWTEXT(选股买点 AND VAR20-100 AND VARF AND VARC0,4.1,'★组合5分钟线选股思路获利5%以上'), , COLORRED;
-10;
筹码捕捉主升浪指标
AT:IF(CAPITAL=0,AMOUNT/100000000,VOL/CAPITAL*100),VOLSTICK;
ATM1:EMA(AT,5);
ATM2:MA(AT,13);
T%D:SUMBARS(VOL,CAPITAL),NODRAW;
{换手率达到100%的交易日天数};
阶段天量:=ATREF(HHV(AT,25),1) ATM1ATM2;
阶段地量:=ATREF(LLV(AT,25),1) ATM1ATM2;
STICKLINE(阶段天量,0,AT*0.75,2.38,0),COLOR000099;
STICKLINE(阶段天量,0,AT*0.75,0.35,0),COLORCC66FF;
STICKLINE(阶段地量,0,AT*0.75,2.38,0),COLOR009900;
STICKLINE(阶段地量,0,AT*0.75,0.35,0),COLOR00FF00;
MTR:=EXPMEMA(MAX(MAX(HIGH-LOW,ABS(HIGH-REF(CLOSE,1))),ABS(REF(CLOSE,1)-LOW)),14);
HD :=HIGH-REF(HIGH,1);
LD :=REF(LOW,1)-LOW;
DMP:=EXPMEMA(IF(HD0 HDLD,HD,0),14);
DMM:=EXPMEMA(IF(LD0 LDHD,LD,0),14);
PDI: DMP*100/MTR;
MDI: DMM*100/MTR;
ADX: EXPMEMA(ABS(MDI-PDI)/(MDI+PDI)*100,6);
ADXR:EXPMEMA(ADX,6);
M:=88;N1:=6;VAR0A:=EMA(EMA(EMA(CLOSE,2),2),2);MA13:(MA(VAR0A,13)*0.99),COLORYELLOW;
TLAMSENR:=MAX(MAX((HIGH-LOW),ABS((REF(CLOSE,1)-HIGH))),ABS((REF(CLOSE,1)-LOW)));
ATR:=MA(TLAMSENR,13);VAR1A:=(REF(CLOSE,1)-REF(ATR,1));
黄金线:(HHV(VAR1A,12)),LINETHICK2,COLOR0080FF;VAR1:=EMA(AMOUNT/VOL/100,3);
控盘成本:EMA(VAR1,M),LINETHICK1,COLORRED;低吸伏击:EMA(VAR1,M)*0.85,COLORCYAN ,LINETHICK1;
走势铁底:低吸伏击*0.87,LINETHICK1,COLORLIMAGENTA;VAR2:=LOW=走势铁底 AND CLOSEREF(CLOSE,1)*1.02;
IF(控盘成本REF(控盘成本,1),控盘成本,DRAWNULL),LINETHICK1,COLORGREEN;DRAWICON(FILTER(VAR2,N1),L-0.55,5);
引用:
通达信筹码主升抓牛指标公式_腾讯新闻
评论(0)