通达信指标公式源码概况:

指标类别: 通达信指标公式

授权方式: 免费版

指标评级: ★★★★★

指标分类: 策略

画线方法: 副图

一、通达信倍量柱指标公式

  

VVOL:IF(CURRBARSCOUNT=1ANDPERIOD=5,VOL*240/FROMOPEN,DRAWNULL),NODRAW;  

STICKLINE(CURRBARSCOUNT=1ANDPERIOD=5,VVOL,0,-1,-1),COLOR00C0C0;  

VOLUME:VOL,VOLSTICK;  

AA:=VOL>REF(V,1)*1.9;  

AA1:=VOLAA2:=VOLSTICKLINE(AA,0,V,1,0),COLORYELLOW;  

STICKLINE(AA1,0,V,1,0),COLORGREEN;  

STICKLINE(AA2,0,V,1,0),COLORMAGENTA;  

TJ1:=COUNT(V>REF(V,1)*1.9,4)=1;  

TJ2:=COUNT(VMIN(L,4)ANDL>REF(L,1),3)=3;  

TJ3:=TJ1ANDTJ2;  

STICKLINE(TJ3,0,V,1,0),COLORRED;  

MV2:MA(V,2);  

MV6:MA(V,6);  

MV20:MA(V,20);  

以下是⼀个135指标公式  

MA13:MA(CLOSE,13),COLORRED;  

MA34:MA(CLOSE,34),COLORWHITE;  

MA55:MA(CLOSE,55),COLORBLUE;  

Y:=(MA(C,13)-MA(C,55))/MA(C,13)*100;  

{135均线战法}  

YY1:=C>MA(C,13)ANDOPENYY3:=C>MA(C,34)ANDOPENYY5:=C>MA(C,55)ANDOPENDRAWTEXT(YY1ANDYY5  

ANDYY3,LOW-0.3,'⼀阳三线'),COLORRED;  

DRAWICON(YY1ANDYY5ANDYY3,LOW-0.4,5);  

SJ1:=ABS(MA(CLOSE,13)-MA(CLOSE,34))SJ2:=ABS(MA(CLOSE,34)-  

MA(CLOSE,55))SJ3:=CROSS(MA(CLOSE,13),MA(CLOSE,55));{13线上穿55线}  

DRAWTEXT(SJ1ANDSJ2ANDSJ3,LOW-0.3,'三军集合'),COLORRED;  

DRAWICON(SJ1ANDSJ2ANDSJ3,LOW-0.4,5);  

RY1:=C/OPEN>1.04;{阳线4%}  

RY2:=REF(OPEN,1)/REF(CLOSE,1)>1.04;{阴线4%}  

RY3:=ABS(OPEN-REF(C,1))DRAWTEXT(RY1ANDRY2ANDRY3,LOW-0.3,'⽇⽉合璧'),COLORRED;  

DRAWICON(RY1ANDRY2ANDRY3,LOW-0.4,5);  

HK1:=CROSS(MA(C,13),MA(C,55));{13线上穿55线}  

HK2:=CHK3:=ABS(L-MA(C,13))HK:=HK1ANDHK2ANDHK3;  

DRAWTEXT(HK,HIGH+0.3,'⿊客点击'),COLORBLUE;  

DRAWICON(HK,HIGH+0.4,4);  

JG1:=ABS(MA(C,13)-MA(C,34))JG2:=O>MA(C,13)ORO=MA(C,13);  

JG3:=C/OPEN>1.03;{阳线3%}  

JG:=JG1ANDJG2ANDJG3;  

DRAWTEXT(JG,LOW-0.3,'揭竿⽽起'),COLORRED;  

DRAWICON(JG,LOW-0.4,5);  

HY1:=CROSS(MA(C,13),MA(C,55));{13线上穿55线}  

HY2:=OPEN1.02;{阳线3%}  

HY3:=ABS(OPEN-MA(C,13))HY:=HY1ANDHY2ANDHY3;  

DRAWTEXT(HY,LOW-0.3,'红⾐侠⼥'),COLORRED;  

DRAWICON(HY,LOW-0.4,5);  

JW1:=CJW2:=OPENREF(L,1);  

JW3:=OJW:=JW1ANDJW2ANDJW3;  

DRAWTEXT(JW,LOW-1.2,'⾦屋藏娇'),COLORRED;  

DRAWICON(JW,LOW-1.2,5);  

TS1:=CROSS(MA(C,13),MA(C,34));{13线上穿  

33线}  

TS2:=MA(C,13)TS:=TS1ANDTS2;  

DRAWTEXT(TS,LOW-0.3,'投⽯问路'),COLORRED;  

DRAWICON(TS,LOW-0.4,5);  

MK1:=MA(C,13)>MA(C,55)ANDMA(C,34)>MA(C,55);  

MK:=TS1ANDMK1;  

DRAWTEXT(MK,H+0.3,'梅开⼆度'),COLORBLUE;  

DRAWICON(MK,HIGH+0.4,4);  

YZ1:=C/O>1.02ANDH/C>1.02ANDO/L<1.02;{收阳有上影}  

YZ2:=REF(C,1)>REF(O,1)ANDO>MA(C,13);{昨收阳今⼤于均线}  

YZ:=YZ1ANDYZ2ANDY>10;  

DRAWTEXT(YZ,HIGH+0.3,'⼀枝独秀'),COLORBLUE;  

DRAWICON(YZ,HIGH+0.4,4);  

DS1:=OPEN/C>1.04ANDO/REF(C,1)>1.03;{⾼开收阴}  

DS2:=V*100/FINANCE(7)>0.08ANDY>8;{换⼿⾼涨幅⼤}  

DS:=DS1ANDDS2;  

DRAWTEXT(DS,HIGH+0.3,'独上⾼楼'),COLORGREEN;  

DRAWICON(DS,HIGH+0.4,6);  

YJ1:=H/O>1.04;  

YJ2:=ABS(C-O)YJ3:=C/MA(C,11)>1.1;  

YJ:=YJ1ANDYJ2ANDDS2ANDYJ3ANDYZ2;  

DRAWTEXT(YJ,HIGH+0.3,'⼀剑封喉'),COLORGREEN;  

DRAWICON(YJ,HIGH+0.4,6);  

PC:=CPO:=O>MA(C,13);  

DRAWTEXT(PCANDPO,HIGH+0.3,'S'),COLORGREEN;  

DRAWICON(PCANDPO,HIGH+0.4,6);  

CC:=C>MA(C,13);  

CO:=ODRAWTEXT(CCANDCO,LOW-0.3,'B'),COLORRED;  

DRAWICON(CCANDCO,LOW-0.4,5);  

DRAWTEXT(Y>10,HIGH+0.3,'GS'),COLORGREEN;  

HJZ3:=VOL=HHV(VOL,10)ANDVOL>2*REF(VOL,1)ANDCLOSE>HJZ2ANDC>O;  

黄金柱:FILTER(HJZ3,5),STICK,COLORRED,LINETHICK4,NODRAW;STICKLINE(黄  

金柱,O,C,3.3,0),COLORRED;  

STICKLINE(黄金柱,H,L,0.1,0),COLORRED;  

DRAWTEXT(黄金柱,H*0.98,'?黄金柱'),COLORYELLOW;  

XG:=SUMBARS(FILTER(黄金柱,2),1);  

STICKLINE(XG,REF(C,XG-1),REF(C,XG-1),10,0),COLORGREEN;  

XG1:=SUMBARS(FILTER(黄金柱,2),1);  

STICKLINE(XG1,REF(L,XG1-1),REF(L,XG1-1),10,0),COLORAA00FF;平量黄金  

线:STICKLINE(平量黄金柱,PHD*1.002,PHD,28,0),COLORYELLOW;DRAWTEXT(平量黄  

金柱,PHD*1.015,'?平量黄金线'),COLORFFCC00;  

梯量黄金线:STICKLINE(梯量黄金柱,PHD*1.002,PHD,28,0),COLORYELLOW;  

DRAWTEXT(梯量黄金柱,PHD*1.015,'?梯量黄金线'),COLORCYAN;  

STICKLINE(C/REF(C,1)>1.095,C,O,2,0),COLORYELLOW;高:=REF(HHV(H,1),3);  

低:=REF(LLV(L,1),3);  

H19:=高-(高-低);  

H38:=高-(高-低);  

-低);H中:=高-(高  

H61:=高-(高-低);  

H80:=高-(高-低);  

Q:=(O+C)/2;  

DRAWKLINE(Q,Q,Q,Q);  

MA5:MA(C,5),COLORYELLOW;  

MA10:MA(CLOSE,10),COLORFF00FF;  

MA30:MA(C,30),COLORRED,LINETHICK2;  

跌:IF(MA(CLOSE,30)<=REF(MA(CLOSE,30),1),MA(CLOSE,30),DRAWNULL),COLOR  

GRE  

EN,LINETHICK2;  

MA60:MA(CLOSE,60),COLORFFCC66;

image.png

二、通达信倍量柱选股公式

  

公式原码如下:  

MA5:MA(C,5),COLORYELLOW,LINETHICK0;  

MA24:MA(C,24),COLORYELLOW,LINETHICK0;  

均量5:MA(VOL,5),COLORYELLOW,LINETHICK0;  

均量60:MA(VOL,60),COLORYELLOW,LINETHICK0;  

DIFF:=EMA(CLOSE,10)-EMA(CLOSE,20);  

DEA:=EMA(DIFF,7);  

macd:=2*(DIFF-DEA);  

启动点:IF(CROSS(MA5,MA24)AND均量5>均量60ANDMACD>0ANDDIFF>DEA,8,0);  

通达信可⽤的选股公式  

MA5:=MA(C,5);  

MA24:=MA(C,24);  

均量5:=MA(VOL,5);  

均量60:=MA(VOL,60);  

DIFF:=EMA(CLOSE,10)-EMA(CLOSE,20);  

DEA:=EMA(DIFF,7);  

MACD:=2*(DIFF-DEA);  

启动点:IF(CROSS(MA5,MA24)AND均量5>均量60ANDMACD>0ANDDIFF>DEA,8,0);  

[通达信]超级⿊马+选股(副图)  

A00:=SUM(IF((CLOSE>REF(CLOSE,1.000)),VOL,IF((CLOSE<REF(CLOSE,1.000)),(0-VOL),0)),0);  

A01:=SUMBARS(VOL,CAPITAL);  

A02:=IF((CLOSE>LLV(CLOSE,A01)),1.000,(0-1.000))*IF((A00>LLV(A00,A01)),1.000,(0-1.000));  

A03:=(COUNT((IF((A02=(0-1.000)),1.000,0)=1.000),8.000)>2.000);  

A04:=((CLOSE-DMA((((3.000*HIGH+LOW)+OPEN)+2.000*CLOSE)/7.000,VOL/SUM(AMOUNT,13.000)/  

AMOUNT/VOL/100.000/100.000))/DMA((((3.000*HIGH+LOW)+OPEN)+2.000*CLOSE)/7.000,VOL/SUM(AMOUNT,13.000)/  

AMOUNT/VOL/100.000/100.000)*100.000<(0-18.000));  

A05:=((CLOSE-MIN(REF(CLOSE,5.000)*0.865,REF(CLOSE,21.000)*0.772))/CLOSE<0.009);  

A06:=((A03ANDA04)ANDA05);  

A07:=(((((OPEN<EMA(CLOSE,5.000))AND(CLOSE=HIGH))AND(CLOSE/OPEN>=1.05))AND(VOL/  

CAPITAL>=0.019))AND(VOL/CAPITAL<=0.200));  

A08:=(A07AND(COUNT(A07,5.000)=1.000));  

A09:=((((((((((((MA(CLOSE,3.000)>REF(MA(CLOSE,3.000),1.000))AND(MA(CLOSE,5.000)>  

REF(MA(CLOSE,5.000),1.000)))AND(MA(CLOSE,10.000)>REF(MA(CLOSE,10.000),1.000)))AND  

(VOL/240.000>REF(VOL,30.000)*1.200/240.000*1.500))AND(CLOSE>LOW*1.059))AND(CLOSE>  

REF(MA(CLOSE,3.000),1.000)))ANDREF(CLOSE,1.000))AND(MA(CLOSE,5.000)>REF(MA(CLOSE,  

5.000),1.000)))AND(MA(CLOSE,10.000)>REF(MA(CLOSE,10.000),1.000)))AND(MA(CLOSE,20.000)>  

REF(MA(CLOSE,20.000),1.000)))AND(MA(VOL,5.000)>REF(MA(VOL,5.000),1.000)))AND((MA(CLOSE,5.000)-MA  

(CLOSE,10.000))<=0.579));  

A0A:=FILTER(A09,5.000);  

⽜股:((A06ORA07)ANDA0A),COLORYELLOW,LINESTICK;  

DRAWTEXT(⽜股,1.4,'▲←超级⿊马'),COLORRED;  

选股  

A00:=SUM(IF((CLOSE>REF(CLOSE,1.000)),VOL,IF((CLOSE<REF(CLOSE,1.000)),(0-VOL),0)),0);  

A01:=SUMBARS(VOL,CAPITAL);  

A01:=SUMBARS(VOL,CAPITAL);  

A02:=IF((CLOSE>LLV(CLOSE,A01)),1.000,(0-1.000))*IF((A00>LLV(A00,A01)),1.000,(0-1.000));  

A03:=(COUNT((IF((A02=(0-1.000)),1.000,0)=1.000),8.000)>2.000);  

A04:=((CLOSE-DMA((((3.000*HIGH+LOW)+OPEN)+2.000*CLOSE)/7.000,VOL/SUM(AMOUNT,13.000)/  

AMOUNT/VOL/100.000/100.000))/DMA((((3.000*HIGH+LOW)+OPEN)+2.000*CLOSE)/7.000,VOL/SUM(AMOUNT,13.000)/  

AMOUNT/VOL/100.000/100.000)*100.000<(0-18.000));  

A05:=((CLOSE-MIN(REF(CLOSE,5.000)*0.865,REF(CLOSE,21.000)*0.772))/CLOSE<0.009);  

A06:=((A03ANDA04)ANDA05);  

A07:=(((((OPEN<EMA(CLOSE,5.000))AND(CLOSE=HIGH))AND(CLOSE/OPEN>=1.05))AND(VOL/  

CAPITAL>=0.019))AND(VOL/CAPITAL<=0.200));  

A08:=(A07AND(COUNT(A07,5.000)=1.000));  

A09:=((((((((((((MA(CLOSE,3.000)>REF(MA(CLOSE,3.000),1.000))AND(MA(CLOSE,5.000)>  

REF(MA(CLOSE,5.000),1.000)))AND(MA(CLOSE,10.000)>REF(MA(CLOSE,10.000),1.000)))AND  

(VOL/240.000>REF(VOL,30.000)*1.200/240.000*1.500))AND(CLOSE>LOW*1.059))AND(CLOSE>  

REF(MA(CLOSE,3.000),1.000)))ANDREF(CLOSE,1.000))AND(MA(CLOSE,5.000)>REF(MA(CLOSE,  

5.000),1.000)))AND(MA(CLOSE,10.000)>REF(MA(CLOSE,10.000),1.000)))AND(MA(CLOSE,20.000)>  

REF(MA(CLOSE,20.000),1.000)))AND(MA(VOL,5.000)>REF(MA(VOL,5.000),1.000)))AND((MA(CLOSE,5.000)-MA  

(CLOSE,10.000))<=0.579));  

A0A:=FILTER(A09,5.000);  

超级⿊马:((A06ORA07)ANDA0A);  

===========================================  

[通达信]波段指标(源码副图选股)  

波段指标源码  

买:=IF("kdj.J"<0,10,0);  

条件:=CROSS(9.9,买);  

VAR1:=(2*CLOSE+HIGH+LOW)/4;  

VAR2:=LLV(LOW,5);  

VAR3:=HHV(HIGH,5);  

VAR4:=EMA((VAR1-VAR2)/(VAR3-VAR2)*100,5);  

MA1:=MA(VAR4,2);  

AA:STICKLINE(VAR4>MA1,VAR4,MA1,6,1),COLORRED;  

BBB:STICKLINE(VAR4>MA1ANDREF(VAR4,1)<30,VAR4,MA1,6,1),COLORRED;  

STICKLINE(VAR4<=MA1,VAR4,MA1,6,1),COLORFFCC66;  

DRAWICON(CROSS(9.9,买),VAR4-12,4);  

STICKLINE(CROSS(9.9,买),VAR4+5,MA1-4,6,1),COLORYELLOW;  

XXX:STICKLINE(VAR4>MA1ANDREF(VAR4,1)<30,VAR4+5,MA1-4,6,1),COLORYELLOW;  

关注:(VAR4>MA1ANDREF(VAR4,1)<30)*20;  

==================================  

[通达信]⼗战七胜主图+选股(源码副图)  

MAA5:MA(C,5),COLORFF00FF,LINETHICK2;  

MAA10:=MA(C,10);  

MAA30:MA(C,30),COLORRED;  

KS:IF(MAA10>MAA30,MAA10,MAA30),COLORBLUE;  

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));  

DRAWTEXT(FILTER(买=1,5),LOW-0.05,'↖买进'),COLORYELLOW;  

STICKLINE(买,OPEN,CLOSE,2,0),COLORYELLOW;  

选股公式:  

A7:=C-REF(C,1);  

A8:=100*EMA(EMA(A7,6),6)/EMA(EMA(ABS(A7),6),6);  

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))),COLORRED;  

DRAWTEXT(买进,0.5,'↖买进'),COLORYELLOW;  

========================================  

[通达信]最⽜特⾊主图(源码)  

2011年最⽜特⾊主图指标公式  

均5:MA(CLOSE,5),COLOR0000FF;  

均10:MA(CLOSE,10),COLORFF5555,LINETHICK2;  

均30:MA(CLOSE,30),COLORGREEN;  

均60:MA(CLOSE,60),COLORRED,POINTDOT,LINETHICK4;  

均120:MA(CLOSE,120),COLORFF1100,LINETHICK3;  

均250:MA(CLOSE,250),COLORFF9999,LINETHICK3;  

魔⿁通道上:均30+2*STD(CLOSE,60),COLORYELLOW,POINTDOT,LINETHICK3;  

魔⿁通道下:均30-2*STD(CLOSE,60),COLORYELLOW,POINTDOT,LINETHICK3;  

DRAWICON(CROSS(ZIG(3,10),REF(ZIG(3,10),1)),LOW*0.98,1);  

DRAWICON(CROSS(REF(ZIG(3,10),1),ZIG(3,10)),HIGH*1.02,2);  

DRAWTEXT(REF(CLOSE,2)/REF(OPEN,2)<0.95AND  

REF(C,2)<REF(C,3)ANDREF(OPEN,1)<REF(CLOSE,2)AND  

REF(CLOSE,1)>REF(CLOSE,2)AND  

REF(CLOSE,1)>(REF(CLOSE,2)+REF(OPEN,2))/2AND  

CLOSE>REF(CLOSE,1)AND  

LLV(LOW,13)=REF(LOW,1),LOW*0.96,'曙光'),COLORYELLOW;  

DRAWTEXT(REF(CLOSE,2)/REF(OPEN,2)<0.95AND  

REF(OPEN,1)<REF(CLOSE,2)AND  

ABS(REF(OPEN,1)-REF(CLOSE,1))/REF(CLOSE,1)<0.03AND  

CLOSE/OPEN>1.05ANDCLOSE>REF(CLOSE,2),LOW*0.96,'早晨'),COLORYELLOW;  

DRAWICON(REF(CLOSE,2)/REF(OPEN,2)<0.95AND  

REF(OPEN,1)<REF(CLOSE,2)AND  

ABS(REF(OPEN,1)-REF(CLOSE,1))/REF(CLOSE,1)<0.03AND  

CLOSE/OPEN>1.05ANDCLOSE>REF(CLOSE,2),C,1);  

==================================  

[通达信]精准顶底买卖  

V1:=(C*2+H+L)/4*10;  

V2:=EMA(V1,13)-EMA(V1,34);  

V3:=EMA(V2,5);V4:=2*(V2-V3)*5.5;  

主⼒撤:IF(V4<=0,V4,0),colorblue;  

主⼒进:IF(V4>=0,V4,0),colorff00ff;  

V5:=(HHV(INDEXH,8)-INDEXC)/(HHV(INDEXH,8)-LLV(INDEXL,8))*8;  

V6:=EMA(3*V5-2*SMA(V5,18,1),5);  

V7:=(INDEXC-LLV(INDEXL,8))/(HHV(INDEXH,8)-LLV(INDEXL,8))*10;  

V8:=(INDEXC*2+INDEXH+INDEXL)/4;  

V9:=EMA(V8,13)-EMA(V8,34);  

VA:=EMA(V9,3);  

VB:=(V9-VA)/2;  

⼤盘资⾦进场:IF(VB>=0,VB,0),Colorred;  

⼤盘资⾦撤⾛:IF(VB<=0,VB,0),colorgreen;  

V11:=3*SMA((C-LLV(L,55))/(HHV(H,55)-LLV(L,55))*100,5,1)-2*SMA(SMA((C-LLV(L,55))/(HHV(H,55)-LLV(L,55))*100,5,1),3,1);  

趋势线:EMA(V11,3);  

V12:=(趋势线-REF(趋势线,1))/REF(趋势线,1)*100;  

准备现⾦:STICKLINE(趋势线<=13,0,20,2,0),colorcc9900;  

aa:=(趋势线<=13)andfilter((趋势线<=13),15);  

drawtext(aa,30,'准备现⾦'),colorcc9900;  

买⼊股票:STICKLINE(趋势线<=13ANDV12>13,0,50,5,0),color0099ff;  

bb:=(趋势线<=13ANDV12>13)andfilter((趋势线<=13ANDV12>13),10);  

bb:=(趋势线<=13ANDV12>13)andfilter((趋势线<=13ANDV12>13),10);  

drawtext(bb,60,'买⼊股票'),color0099ff;  

卖临界:STICKLINE(趋势线>90and趋势线>ref(趋势线,1),100,95,15,1),COLORFFFF00;  

见顶清仓:filter(趋势线>90and趋势线<ref(趋势线,1)and主⼒进<ref(主⼒进,1),8);  

DRAWTEXT(见顶清仓,90,'逃顶'),coloryellow;  

cc:=(趋势线>=90ANDV12)andfilter((趋势线>=90ANDV12),10);  

stickline(⼤盘资⾦进场and趋势线<13,0,30,2,0),colorred;  

stickline(⼤盘资⾦撤⾛and趋势线>90,0,30,2,0),colorgreen;  

stickline(主⼒进and趋势线<13,0,40,2,0),colorff00ff;  

stickline(主⼒撤and趋势线>90,0,40,2,0),colorblue;  

要说明的是,本指标不仅分时可⽤,各个周期都可以⽤.  

当然,指标不是万能的.炒股的经验才是决胜股市的关键.  

代码  

只⽤前⼏⾏更好  

V1:=(C*2+H+L)/4*10;  

V2:=EMA(V1,13)-EMA(V1,34);  

V3:=EMA(V2,5);V4:=2*(V2-V3)*5.5;  

主⼒撤:IF(V4<=0,V4,0),colorblue;  

主⼒进:IF(V4>=0,V4,0),colorff00ff;  

==============================  

通达信MACD底背离选股公式  

条件选股公式:  

macd背离的公式选股器  

DIFF:=EMA(CLOSE,12)-EMA(CLOSE,26);  

DEA:=EMA(DIFF,9);  

MACD:=2*(DIFF-DEA);  

A1:=BARSLAST(REF(CROSS(DIFF,DEA),1));  

B1:=REF(C,A1+1)>CANDREF(DIFF,A1+1)<DIFFANDCROSS(DIFF,DEA);  

FILTER(B1>0,5)  

条件选股公式:  

macd,RSi,kdj底背离  

KDJ_K:="KDJ.K"(9,3,3);KDJ_D:="KDJ.D"(9,3,3);KDJ_J:="KDJ.J"(9,3,3);  

买1:=CROSS(KDJ_J,0)OR(CROSS(KDJ_J,KDJ_K)ANDKDJ_D<26);  

买2:=CROSS("RSI.RSI1"(6,2,2),20)ORCROSS("RSI.RSI1"(6,12,24),"RSI.RSI2"(6,12,24));  

买3:=CROSS("MACD.DIF","MACD.DEA")ORCROSS("MACD.MACD",0);  

买0:=买1+买2+买3;  

买:IF(买0>1,买0,0);  

通达信百发百中  

{百发百中K:100,120,105}  

VARA:=CLOSE/MA(CLOSE,48)*100<71*K/100;  

VARB:=CLOSE/MA(CLOSE,50)*100<70*K/100;  

VARC:=HIGH/LOW>1.078/K*100;  

VARD:=VARCANDCOUNT(VARC,4)>2;  

VAR1:=CLOSE;  

VAR2:=MA(VAR1,6);  

VAR3:=MA(VAR1,24);  

VAR4:=MA(VAR1,32);  

VAR5:=MA(VAR1,62);  

VAR6:=MA(VAR1,105);  

百:=VAR5/VAR6*100;发:=VAR4/VAR2*100;中:=VAR3/VAR2*100;  

财:=VAR2/VAR1*100;⼊:=CLOSE/COST(8)*100;  

((发>110/K*100AND⼊<80*K/100)OR(VARDAND(VARAORVARB)))  

AND(HIGH>LOW)AND(REF(HIGH,1)>REF(LOW,1))AND  

(REF(HIGH,2)>REF(LOW,2))AND(REF(HIGH,3)>REF(LOW,3))AND  

(REF(HIGH,2)>REF(LOW,2))AND(REF(HIGH,3)>REF(LOW,3))AND  

(REF(HIGH,4)>REF(LOW,4))AND(REF(HIGH,5)>REF(LOW,5));  

1)KDJ和RSI在20以下钝化⼀段时间;2)MACD绿线逐渐缩短,且DIF上穿DAE⽽DEA也向上运⾏;3)⽇线向SAR靠拢并交叉;4)ROC  

在超卖区上穿MROC并且MROC上⾏;5)BOLL开⼝放⼤;6)5⽇线⾛平并上穿10⽇线且10⽇线⾛平并向上。  

试着将上述条件编成⼀公式,经测试,结果为零。于是,删除并放宽⼀些条件,有如下公式:  

DIFF:=EMA(CLOSE,12)-EMA(CLOSE,26);  

DEA:=EMA(DIFF,9);  

MACD:=2*(DIFF-DEA);  

AA1:=DIFF<0ANDDIFF>=DEAANDDEA>REF(DEA,1)ANDMACD>REF(MACD,1);  

RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;  

K:=SMA(RSV,3,1);  

D:=SMA(K,3,1);  

AA2:=3*K-2*D<25;  

LC:=REF(CLOSE,1);  

AA3:=SMA(MAX(CLOSE-LC,0),6,1)/SMA(ABS(CLOSE-LC),6,1)*100<30;  

ROC:=(CLOSE-REF(CLOSE,12))/REF(CLOSE,12)*100;  

ROCMA:=MA(ROC,6);  

AA4:=ROCMA<0ANDROC>=ROCMAANDROCMA>REF(ROCMA,1);  

AA5:=C<SAR(10,2,20)ORCROSS(C,SAR(10,2,20));  

MID:=MA(CLOSE,26);  

UPPER:=MID+2*STD(CLOSE,26);  

AA1ANDAA2ANDAA3ANDAA4ANDAA5;  

⼤家可再减少⼀些条件试试,信号会逐步增多。⽐如去掉最后两个后,  

成功率仍是百分之百,⽽信号由6个增加到10个。  

=======================================  

[通达信]抄底买⼊+选股公式  

JJ:=(CLOSE+HIGH+LOW)/3;  

A:=EMA(JJ,10);  

B:=REF(A,1);  

STICKLINE(A>B,A,B,5,0),COLORYELLOW;  

STICKLINE(A<B,A,B,5,0),COLORBLUE;  

M1:EMA(CLOSE,3);  

M2:EMA(CLOSE,8);  

M3:EMA(M2,13);  

M4:EMA(M2,55);  

VAR1:=EMA(M3,55);  

M5:EMA(M4,81),COLORRED,LINETHICK2;  

VAR2:=(REF(HIGH,1)+REF(LOW,1))/2;  

VAR3:=MA(CLOSE,21)+2*STD(CLOSE,21);  

DRAWICON(CROSS(VAR2,VAR3),HIGH*1.035,2);  

DRAWTEXT(CROSS(VAR2,VAR3),HIGH*1.02,'卖出'),COLORGREEN;  

VAR4:=REF(CLOSE,1);  

VAR5:=SMA(MAX(CLOSE-VAR4,0),7,1)/SMA(ABS(CLOSE-VAR4),7,1)*100;  

VAR6:=CROSS(79,VAR5);  

VAR7:=FILTER(VAR6,4);  

DRAWICON(VAR7,HIGH*1.035,2);  

DRAWTEXT(VAR7,HIGH*1.02,'卖出'),COLORGREEN;  

A7:=(2*C+H+L)/4;  

VAR10:=LLV(LOW,34);  

VAR11:=HHV(HIGH,34);  

SK:=EMA((A7-VAR1)/(VAR2-VAR1)*100,7);  

SD:=EMA(0.667*REF(SK,1)+0.333*SK,5);  

DRAWTEXT(IF(COUNT(CLOSE<REF(CLOSE,1),8)/8>6/10ANDVOL>=1.5*MA(VOL,5)AND  

COUNT(SK>=SD,3)ANDREF(LOW,1)=LLV(LOW,120),1,0),LOW,'●买进'),COLORRED;  

DRAWTEXT(IF(COUNT(CLOSE<REF(CLOSE,1),13)/13>6/10AND  

COUNT(SK>SD,6)ANDREF(LOW,5)=LLV(LOW,120)ANDREF(CLOSE>=OPEN,4)AND  

REF(CLOSE>OPEN,3)ANDREF(CLOSE>OPEN,2)ANDREF(OPEN>CLOSE,1)AND  

OPEN>REF(CLOSE,1),1,0),LOW,'●买进'),COLORRED;  

D:=MA(CLOSE,80)-MA(CLOSE,10)/3;  

DRAWTEXT(IF(CLOSE<DANDVOL/240>MA(VOL,5)/240ANDCLOSE>REF(CLOSE,1)*1.08  

DRAWTEXT(IF(CLOSE<DANDVOL/240>MA(VOL,5)/240ANDCLOSE>REF(CLOSE,1)*1.08  

ANDCLOSE<MA(CLOSE,13)*1.3,1,0),LOW,'●抄底'),COLORRED;  

选股公式  

M2:=EMA(CLOSE,8);  

M3:=EMA(M2,13);  

VAR1:=EMA(M3,55);  

VAR2:=(REF(HIGH,1)+REF(LOW,1))/2;  

VAR3:=MA(CLOSE,21)+2*STD(CLOSE,21);  

VAR4:=REF(CLOSE,1);  

VAR5:=SMA(MAX(CLOSE-VAR4,0),7,1)/SMA(ABS(CLOSE-VAR4),7,1)*100;  

VAR6:=CROSS(79,VAR5);  

VAR7:=FILTER(VAR6,4);  

A7:=(2*C+H+L)/4;  

VAR10:=LLV(LOW,34);  

VAR11:=HHV(HIGH,34);  

SK:=EMA((A7-VAR1)/(VAR2-VAR1)*100,7);  

SD:=EMA(0.667*REF(SK,1)+0.333*SK,5);  

S1:=IF(COUNT(CLOSE<REF(CLOSE,1),8)/8>6/10ANDVOL>=1.5*MA(VOL,5)AND  

COUNT(SK>=SD,3)ANDREF(LOW,1)=LLV(LOW,120),1,0);  

S2:=IF(COUNT(CLOSE<REF(CLOSE,1),13)/13>6/10AND  

COUNT(SK>SD,6)ANDREF(LOW,5)=LLV(LOW,120)ANDREF(CLOSE>=OPEN,4)AND  

REF(CLOSE>OPEN,3)ANDREF(CLOSE>OPEN,2)ANDREF(OPEN>CLOSE,1)AND  

OPEN>REF(CLOSE,1),1,0);  

D:=MA(CLOSE,80)-MA(CLOSE,10)/3;  

S3:=IF(CLOSE<DANDVOL/240>MA(VOL,5)/240ANDCLOSE>REF(CLOSE,1)*1.08  

ANDCLOSE<MA(CLOSE,13)*1.3,1,0);  

综合选股:S1ORS2ORS3;  

======================================================================  

[通达信]“⽜股起爆”及选股公式(源码副图)  

源码如下:  

⽜股起爆指标,⼏经验证,收获不⼩,图中的起爆点增加了⼀个红⾊柱,⽤⽂字标注”明天买“使其更直观。  

副图指标:  

HSL:=EMA(VOL/CAPITAL,3);  

ZDL:=HHV(HSL,240);  

ZXL:=LLV(HSL,240);  

XS:=MA(C,33);  

锁定:EMA((HSL-ZXL)/ZXL*XS,13);  

浮动:EMA((ZDL-HSL)/HSL*XS,13);  

⼒量对⽐:锁定-浮动,COLORSTICK;  

A:=1.1*C;  

B:=0.9*C;  

B1:=100*(WINNER(A)-WINNER(B));  

锁定筹码:100-B1;  

C1:=MA(C,13)<REF(MA(C,13),1);  

明天买:CROSS(锁定筹码,90)ANDC1;  

STICKLINE(明天买=1,0,200,2,0),COLORRED;  

DRAWTEXT(明天买,100,明天买),COLORWHITE;  

筹码锁定区:STICKLINE(锁定筹码>65ANDC1,锁定筹码-50,0,6,0),COLORGREEN;  

VAR4:SMA(100*(C-LLV(L,55))/(HHV(H,55)-LLV(L,55)),13,1)-10;  

安全区:VAR4<20,COLORFFFF00;  

STICKLINE(安全区,VAR4,20,8,1),COLORYELLOW;  

风险区:60;  

条件及预警选股指标:  

HSL:=EMA(VOL/CAPITAL,3);  

ZDL:=HHV(HSL,240);  

ZXL:=LLV(HSL,240);  

XS:=MA(C,33);  

XS:=MA(C,33);  

锁定:=EMA((HSL-ZXL)/ZXL*XS,13);  

浮动:=EMA((ZDL-HSL)/HSL*XS,13);  

⼒量对⽐:=锁定-浮动;  

A:=1.1*C;  

B:=0.9*C;  

B1:=100*(WINNER(A)-WINNER(B));  

锁定筹码:=100-B1;  

C1:=MA(C,13)<REF(MA(C,13),1);  

明天买:IF(CROSS(锁定筹码,90)ANDC1,60,0)*2;  

筹码锁定区:=STICKLINE(锁定筹码>65ANDC1,锁定筹码-50,0,6,0);  

VAR4:=SMA(100*(C-LLV(L,55))/(HHV(H,55)-LLV(L,55)),13,1)-10;  

安全区:=VAR4<20,COLORFFFF00;  

风险区:=60;  

==============================================================================================  

{底背离,通达信版、同花顺版}  

DIFF:=EMA(CLOSE,12)-EMA(CLOSE,26);  

DEA:=EMA(DIFF,9);  

MACD:=2*(DIFF-DEA);  

QZQ:=BARSLAST(REF(MACD,1)<0ANDMACD>0);  

QM:=LLVBARS(MACD,QZQ+20);  

MQDZ:=IF(QM>QZQ,REF(MACD,QM),0);  

XG1:=MACD<0ANDMACD>MQDZ  

ANDCLOSE=LLV(CLOSE,QZQ+20)ANDMQDZ<0;  

XG:REF(XG1,1)=1ANDMACD>REF(MACD,1);  

{双底背离,通达信版、同花顺版}  

DIFF:=EMA(CLOSE,12)-EMA(CLOSE,26);  

DEA:=EMA(DIFF,9);  

MACD:=2*(DIFF-DEA);  

QZQ:=BARSLAST(REF(MACD,1)<0ANDMACD>0);  

QM:=LLVBARS(MACD,QZQ+20);  

MQDZ:=IF(QM>QZQ,REF(MACD,QM),0);  

QF:=LLVBARS(DIFF,QZQ+20);  

DQDZ:=IF(QF>QZQ,REF(DIFF,QF),0);  

XG1:=MACD<0ANDMACD>MQDZANDDIFF<0ANDDIFF>DQDZ  

ANDCLOSE=LLV(CLOSE,QZQ+20)ANDMQDZ<0ANDDQDZ<0;  

XG:REF(XG1,1)=1ANDMACD>REF(MACD,1);  

注:底双背离是指MACD(绿柱)和DIFF(黄⽩线)都底背离。  

========================================================  

[通达信]⾼⼿常⽤的指标(⼼得+源码+主图)  

以前发的抄底特准,抄底红柱,另外MACD背离⾃⼰在论坛中找,以上三个信号同时出现(直接可⽤抄底特准选股)选出的股票,再加上我  

现在发的MACD+KDJ指标,KDJ的J值在20以下,MACD是绿线或是第⼀根紫⾊线最好,这⼀定是必须遵守的原则,⼀般买进持股不超过五  

个交易⽇,让你净赚10%以上,信号不是天天有,股票也不是天天可以做,最重要⼀点是必须在尾盘买进,这样可以确定信号的100%,⼀  

年做上⼏次,保你利润是净增,多看少动,坚持原则,你才是最⼤的羸家。  

{均线组合}  

DIF1:=EMA(CLOSE,7)-EMA(CLOSE,19),COLORWHITE;  

DEA1:=EMA(DIF1,9);  

MACD1:=(DIF1-DEA1)*100,COLORSTICK;  

STICKLINE(MACD1>REF(MACD1,1)ANDMACD1>0,0,MACD1,0,0),COLORRED;  

STICKLINE(MACD1<=REF(MACD1,1)ANDMACD1>0,0,MACD1,0,0),COLORYELLOW;  

STICKLINE(MACD1<REF(MACD1,1)ANDMACD1<0,0,MACD1,0,0),COLOR00FF00;  

STICKLINE(MACD1<REF(MACD1,1)ANDMACD1<0,0,MACD1,0,0),COLOR00FF00;  

STICKLINE(MACD1>=REF(MACD1,1)ANDMACD1<0,0,MACD1,0,0),COLORMAGENTA;  

STICKLINE(C>0,0,0,50,1),COLORBLUE;  

RSV1:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;  

K⽇:SMA(RSV1,3,1),COLORWHITE;  

D⽇:SMA(K⽇,3,1),COLORYELLOW;  

J⽇:3*K⽇-2*D⽇,COLORFF00FF;  

底部:0,COLORF00FF0,LINETHICK2;  

DRAWICON(CROSS(J⽇,底部),底部,1);  

信号缺⼀不可操作  

[通达信]抄底特准,⽆未来(有图有码){抄底特准}  

VAR1:=REF(CLOSE,1);  

VAR2:=SMA(MAX(CLOSE-VAR1,0),7,1)/SMA(ABS(CLOSE-VAR1),7,1)*100;  

FILTER(REF(VAR2,1)<20ANDVAR2>REF(VAR2,1),5)  

(可选股)  

MACD底背离  

DIFF:=EMA(DCLOSE,12)-EMA(DCLOSE,26);  

DEA:=EMA(DIFF,9),COLORFFFF00;  

A1:=BARSLAST(REF(CROSS(DIFF,DEA),1));  

底背离:REF(CLOSE,A1+1)>CLOSEANDDIFF>REF(DIFF,A1+1)ANDCROSS(DIFF,DEA);  

[通达信]红柱抄底(副图)  

信号出现后配KDJ使⽤,J值必须在0值以下才能买,这就是前提,⼀定要切记,到时错了别怪我事先没说过,如能在配上MACD的底背离那是更准了  

{红柱抄底}  

BIAS1:=(C-MA(C,6))/MA(C,6)*100;  

BIAS2:=(C-MA(C,12))/MA(C,12)*100;  

BIAS3:=(C-MA(C,24))/MA(C,24)*100;  

BIAS:=(BIAS1+2*BIAS2+3*BIAS3)/6;  

乖离:=MA(BIAS,3);  

STICKLINE(CROSS(BIAS,乖离)AND乖离<-9.5,60,0,2,0),COLORRED;  

(⼀定要切记KDJ的J值必须在0值以下才能买)  

选股  

BIAS1:=(C-MA(C,6))/MA(C,6)*100;  

BIAS2:=(C-MA(C,12))/MA(C,12)*100;  

BIAS3:=(C-MA(C,24))/MA(C,24)*100;  

BIAS:=(BIAS1+2*BIAS2+3*BIAS3)/6;  

乖离:=MA(BIAS,3);  

XG:CROSS(BIAS,乖离)AND乖离<-9.5;  

选股  

BIAS1:=(C-MA(C,6))/MA(C,6)*100;  

BIAS2:=(C-MA(C,12))/MA(C,12)*100;  

BIAS3:=(C-MA(C,24))/MA(C,24)*100;  

BIAS:=(BIAS1+2*BIAS2+3*BIAS3)/6;  

乖离:=MA(BIAS,3);  

STICKLINE(CROSS(BIAS,乖离)AND乖离<-9.5,60,0,2,0),COLORRED;  

选股  

BIAS1:=(C-MA(C,6))/MA(C,6)*100;  

BIAS1:=(C-MA(C,6))/MA(C,6)*100;  

BIAS2:=(C-MA(C,12))/MA(C,12)*100;  

BIAS3:=(C-MA(C,24))/MA(C,24)*100;  

BIAS:=(BIAS1+2*BIAS2+3*BIAS3)/6;  

乖离:=MA(BIAS,3);  

CROSS(BIAS,乖离)AND乖离<-9.5;  

[通达信]关于MACD底背离选股公式  

选股⼀:(注意包含了DCLOSE函数,是个移动函数,但是和普通的未来函数有区别,陆⽼师⽤的三合⼀选股⽤的就是这款)  

DIFF:=EMA(DCLOSE,12)-EMA(DCLOSE,26);  

DEA:=EMA(DIFF,9),COLORFFFF00;  

MACD:=(DIFF-DEA)*2;  

A1:=BARSLAST(REF(CROSS(DIFF,DEA),1));  

A2:=BARSLAST(REF(CROSS(DEA,DIFF),1));  

底背离:REF(CLOSE,A1+1)>CLOSEANDDIFF>REF(DIFF,A1+1)ANDCROSS(DIFF,DEA);  

选股⼆:(其实就是把第⼀个选股公式的DCLOSE改为了CLOSE)  

DIFF:=EMA(CLOSE,12)-EMA(CLOSE,26);  

DEA:=EMA(DIFF,9);  

MACD:=2*(DIFF-DEA);  

A1:=BARSLAST(REF(CROSS(DIFF,DEA),1));  

B1:=REF(C,A1+1)>CANDREF(DIFF,A1+1)<DIFFANDCROSS(DIFF,DEA);  

FILTER(B1>0,5)  

选股三:  

DIFF:=EMA(CLOSE,12)-EMA(CLOSE,26);  

DEA:=EMA(DIFF,9);  

AB:=REF(DEA,20);  

BB:=REF(CLOSE,30);  

低值:=LLV(DEA,25);  

选股:CROSS("KDJ.J","KDJ.D")AND"KDJ.D"<30ANDDEA>ABANDDEA>低值ANDCLOSE<BBAND低值<-0.2;  

[通达信]“MACD底背离”+选股公式  

源码:  

DIFF:=EMA(CLOSE,12)-EMA(CLOSE,26);  

DEA:=EMA(DIFF,9);  

MACD:=2*(DIFF-DEA);  

QZQ:=BARSLAST(REF(MACD,1)<0ANDMACD>0);  

QM:=LLVBARS(MACD,QZQ+20);  

MQDZ:=IF(QM>QZQ,REF(MACD,QM),0);  

XG1:=MACD<0ANDMACD>MQDZ  

ANDCLOSE=LLV(CLOSE,QZQ+20)ANDMQDZ<0;  

XG:REF(XG1,1)=1ANDMACD>REF(MACD,1);

image.png

[源码注释]通达信公式动态翻译结果

V111赋值:120日内最高价的最低值

飞鱼赋值:100*(收盘价-V111)/V111,画黄色,线宽为1

V211赋值:120日内最高价的最高值

海洋赋值:100*(V211-收盘价)/收盘价,画绿色,线宽为1

海1赋值:22日内海洋的最高值,画绿色,线宽为1

当满足条件飞鱼>海1时,在日期日130日内最高价的最高值和日期日130日内最低价的最低值位置之间画柱状线,宽度为5,0不为0则画空心柱.,COLOR545454 

K线

输出 上:(开盘价和收盘价的较大值-开盘价和收盘价的较小值)*2/3+开盘价和收盘价的较小值,画洋红色,NODRAW

输出中:(开盘价+收盘价)/2,画红色,NODRAW

输出下:(开盘价和收盘价的较大值-开盘价和收盘价的较小值)/3+开盘价和收盘价的较小值,画黄色,NODRAW

F10赋值:100*(收盘价-开盘价)/开盘价

F20赋值:100*(收盘价-1日前的收盘价)/1日前的收盘价

振幅赋值:(最高价-最低价)/1日前的收盘价*100

RQ赋值:如果日期>=1200824,返回1,否则返回0

KCB赋值:如果属于某板块,返回1,否则返回0

CYB赋值:如果属于某板块ANDRQ,返回1,否则返回0

ZT1赋值:F20>=9.5 AND 收盘价=最高价 AND 取反

ZT2赋值:F20>=19.5 AND 收盘价=最高价 AND (KCB OR CYB)

ZT3赋值:平盘AND 收盘价=最低价 AND 收盘价=最高价 AND (ZT1 OR ZT2)

ZT4赋值:ZT1 OR ZT2 OR ZT3

当满足条件ZT4时,在开盘价和收盘价位置之间画柱状线,宽度为3,0不为0则画空心柱.,COLORFF00FF

当满足条件ZT4时,在最高价和最低价位置之间画柱状线,宽度为0,0不为0则画空心柱.,COLORFF00FF

输出强弱分界80:获利盘为85%的成本分布的10日指数移动平均,画红色

输出强弱分界99:获利盘为99%的成本分布的10日指数移动平均,画绿色

强弱分界80向上赋值:强弱分界80>1日前的强弱分界80

强弱分界99向上赋值:强弱分界99>1日前的强弱分界99

输出LC:100*(最低价-1日前的收盘价)/1日前的收盘价,画绿色,NODRAW

输出HC:100*(最高价-1日前的收盘价)/1日前的收盘价,画白色,NODRAW

当满足条件LC<=-5时,在中和最低价位置之间画柱状线,宽度为0,0不为0则画空心柱.,COLORFF8000

当满足条件LC<=-8时,在中和最低价位置之间画柱状线,宽度为0,0不为0则画空心柱.,画黄色

当满足条件(最高价/1日前的收盘价>=1.03)时,在中和最高价位置之间画柱状线,宽度为0,0不为0则画空心柱.,COLOR838383

当满足条件(最高价/1日前的收盘价>=1.05)时,在中和最高价位置之间画柱状线,宽度为0,0不为0则画空心柱.,COLORFF8000

当满足条件(最高价/1日前的收盘价>=1.08)时,在中和最高价位置之间画柱状线,宽度为0,0不为0则画空心柱.,画黄色,线宽为2

推荐阅读:通达信黄金倍量柱指标公式

  

黄金柱:=V/REF(V,1)>=2.0;  

K1:=SUMBARS(黄金柱,1);  

K2:=SUMBARS(黄金柱,2);  

K3:=SUMBARS(黄金柱,3);  

K4:=SUMBARS(黄金柱,4);  

K5:=SUMBARS(黄金柱,5);  

K6:=SUMBARS(黄金柱,6);  

K7:=SUMBARS(黄金柱,7);  

K8:=SUMBARS(黄金柱,8);  

K9:=SUMBARS(黄金柱,9);  

K10:=SUMBARS(黄金柱,10);  

AA:STICKLINE(K1,REFV(L,K1-1)*1.002,REFV(L,K1-1),2,0),COLORYELLOW;  

T60:=V=HHV(V,60);  

T100:=V=HHV(V,100);  

T2:=V/REF(VOL,1)>=3;  

T3:=REF(C,1)/REF(O,1)<3;  

五星上将:=(T60ANDT2ANDT3)OR(T100ANDT2ANDT3);  

DRAWICON(五星上将,H,23);  

{量柱图}  

C2:=REF(C,1);  

涨停:=IF((C-C2)*100/C2>=(10-0.01*100/C2),1,0);  

STICKLINE(涨停,OPEN,CLOSE,-1,0),COLORWHITE;  

STICKLINE(涨停,H,L,0,0),COLORWHITE;  

DRAWICON(涨停,L-0.2,11);  

DRAWTEXT(涨停,L-0.2,'–涨停');  

跌停:=IF((C2-C)*100/C2>=(10-0.01*100/C2),1,0);  

STICKLINE(跌停,OPEN,CLOSE,-1,0),COLORBLUE;  

STICKLINE(跌停,H,L,0,1),COLORBLUE;  

DRAWICON(跌停,H+0.2,2);  

DRAWTEXT(跌停,H+0.2,'–跌停');  

TY:=C;  

AA1:=REF(TY,10)=HHV(TY,2*10+1);  

BB1:=FILTER(AA1,10);  

C1:=BACKSET(BB1,10+1);  

HD:=FILTER(C1,10);  

AA2:=REF(TY,10)=LLV(TY,2*10+1);  

B2:=FILTER(AA2,10);  

CC2:=BACKSET(B2,10+1);  

LD:=FILTER(CC2,10);  

前期高位:REFV(H,BARSLAST(HD)),COLOR00FF00,POINTDOT,LINETHICK3;  

前期低位:REFV(L,BARSLAST(LD)),COLORFF00FF,POINTDOT,LINETHICK3;  

{求位置坐标}  

PHD:=IF(LLV(L,3)>=REF(H,3),REF(H,3),  

IF((LLV(L,3)>=REF(C,3)ANDREF(C,3)>REF(O,3)),REF(C,3),  

IF(LLV(L,3)>=REF(O,3)ANDREF(C,3)>REF(O,3),REF(O,3),REF(L,3))));  

{在K线图上标示量柱类型}倍量:=DRAWICON((VOL>REF(V,1)*2.0ORVOL=REF(V,1)*2.0)AND  

C>REF(C,1),H+0.2,26);  

低量:=DRAWICON(VOL<REF(LLV(VOL,13),1),H+0.1,2);  

地量:=DRAWICON(VOL<REF(LLV(VOL,100),1),H+0.1,12);  

平量:=DRAWICON(ABS(VOL-HHV(REF(VOL,1),5))/HHV(REF(VOL,1),5)<=0.03OR  

ABS(VOL-REF(VOL,1))/REF(VOL,1)<=0.03,H+0.1,16);  

倍缩:=DRAWICON(VOL<=REF(V,1)*0.5,H+0.1,27);  

{画量柱标识:}  

{1.画倍量黄金柱标识–红箭头图标}倍量黄金柱:=DRAWICON((LLV(L,3)>REF(L,3)ORLLV(L,3)=REF(L,3))AND  

HHV(V,3)<REF(V,3)AND  

REF(C,3)>REF(O,3)ANDREF(V,3)>=2*REF(V,4),H+0.2,1);  

{2.画梯量黄金柱标识–橘子图标}  

梯量黄金柱:=DRAWICON(LLV(L,3)>REF(L,3)ANDHHV(V,3)<REF(V,3)AND  

REF(V,5)>REF(V,6)ANDREF(V,4)>REF(V,5)ANDREF(V,3)>REF(V,4),H,17);  

{3.画平量黄金柱标识–苹果图标}  

平量黄金柱:=DRAWICON(LLV(L,3)>REF(L,3)ANDHHV(V,3)<REF(V,3)AND  

REF(C,3)>REF(O,3)ANDABS(REF(V,3)-REF(V,4))/REF(V,4)<=0.03,H,19);  

{4.画立桩量标识–顶部红箭头图标}  

N:=25;  

立桩量:=REF(V,3)/REF(MA(V,5),4)>(N/10)AND  

REF(V,3)/REF(HHV(V,60),4)>1.5ANDLLV(L,3)>REF(L,3);  

STICKLINE(倍量,OPEN,CLOSE,-1,0),COLORYELLOW;  

倍量黄金线:STICKLINE(倍量黄金柱,PHD,PHD,30,0),COLORWHITE;  

DRAWICON(倍量黄金柱,PHD*1.008,12);  

DRAWTEXT(倍量黄金柱,PHD*1.010,'标准黄金柱精准线'),COLORFF00FF;  

DRAWTEXT(倍量黄金柱,PHD,'================='),COLORWHITE;  

立桩量标识:DRAWICON(立桩量,H*1.002,1);  

DRAWTEXT(立桩量,H*1.06,'立'),COLORRED;  

DRAWTEXT(立桩量,H*1.04,'桩'),COLORRED;  

DRAWTEXT(立桩量,H*1.02,'量'),COLORRED;  

AAA:=CONST(HHV(H,190));  

TS1:=0+0.03;  

TS2:=TS1+0.03;  

TS3:=TS2+0.03;  

DRAWTEXT(CURRBARSCOUNT=70,AAA-(AAA*TS1),'<一>.量柱的阶段性拐点标志–  

空间转化原则:'),COLORFF00FF;  

DRAWTEXT(CURRBARSCOUNT=70,AAA-(AAA*TS2),'1.平台起柱:在K线整理平台  

上突然起柱;'),COLORFF00FF;  

DRAWTEXT(CURRBARSCOUNT=70,AAA-(AAA*TS3),'2.凹口起柱:在K线逐步回调  

形成凹口时起柱.常见凹口倍量;'),COLORFF00FF;  

TS4:=TS3+0.03;  

TS5:=TS4+0.03;  

TS6:=TS5+0.03;  

DRAWTEXT(CURRBARSCOUNT=70,AAA-(AAA*TS4),'3.过顶起柱:过左峰起柱.常见  

过顶倍量;'),COLORFF00FF;  

DRAWTEXT(CURRBARSCOUNT=70,AAA-(AAA*TS5),'4.触底起柱:触前期谷底起柱.  

常见触底倍量.'),COLORFF00FF;  

DRAWTEXT(CURRBARSCOUNT=70,AAA-(AAA*TS6),'<二>.量柱的集合定性–组合量  

柱:'),COLORFF00FF;  

TS7:=TS6+0.03;  

TS8:=TS7+0.03;  

TS9:=TS8+0.03;  

DRAWTEXT(CURRBARSCOUNT=70,AAA-(AAA*TS7),'1.低量柱+倍量柱:后市必大  

涨!'),COLORFF00FF;  

DRAWTEXT(CURRBARSCOUNT=70,AAA-(AAA*TS8),'2.倍量柱+倍量柱:主庄控盘  

良好,急于拉升!'),COLORFF00FF;  

DRAWTEXT(CURRBARSCOUNT=70,AAA-(AAA*TS9),'3.缩倍柱+倍量柱:机会就在  

眼前!'),COLORFF00FF;  

{============================}  

BBB:=CONST(HHV(H,190));  

TT1:=0+0.03;  

TT2:=TT1+0.03;  

TT3:=TT2+0.03;  

DRAWTEXT(CURRBARSCOUNT=100,BBB-(BBB*TT1),'<三>.量柱的三日定性–时间转  

化原则:'),COLORFF00FF;  

DRAWTEXT(CURRBARSCOUNT=100,BBB-(BBB*TT2),'1.后三日价升量缩:转化为黄  

金柱;'),COLORFF00FF;  

DRAWTEXT(CURRBARSCOUNT=100,BBB-(BBB*TT3),'2.后三日量柱先阴后阳:该量  

柱官升一级;'),COLORFF00FF;  

TT4:=TT3+0.03;  

TT5:=TT4+0.03;  

DRAWTEXT(CURRBARSCOUNT=100,BBB-(BBB*TT4),'3.后三日量柱阴阳相间:量柱  

退化,走势面临调整;'),COLORFF00FF;  

DRAWTEXT(CURRBARSCOUNT=100,BBB-(BBB*TT5),'4.后三日量柱实体逐步缩小:  

力量将衰退,面临调整.'),COLORFF00FF;  

{底部趋势拐点}  

VVOL:=IF(CURRBARSCOUNT=1AND  

PERIOD=5,VOL*240/FROMOPEN,DRAWNULL);  

VOLUME:=VOL;  

AAG:=VOL>=REF(V,1)*1.91ANDC>REF(C,1);  

AA1G:=VOL<REF(LLV(VOL,21),1);  

AA2G:=VOL<REF(LLV(VOL,55),1);  

AA3G:=ABS(VOL-REF(VOL,1))/REF(VOL,1)<=0.05;  

TY:=C;  

A1:=REF(TY,10)=HHV(TY,2*10+1);  

C1:=BACKSET(B1,10+1);HD:=FILTER(C1,10);  

A2:=REF(TY,10)=LLV(TY,2*10+1);  

C2:=BACKSET(B2,10+1);LD:=FILTER(C2,10);  

{前期高位:=REF(C,BARSLAST(HD)),COLORGREEN,POINTDOT;  

STICKLINE(C,前期高位,前期高位,8,0),COLORGREEN,POINTDOT;}{高位的绿线}{高点:=(C/REF(C,BARSLAST(HD))-1)*100,NODRAW;  

STICKLINE((HIGH-MAX(CLOSE,OPEN))/(HIGH￾LOW)>0.667,H,C,0.8,0),COLORBLUE;}  

三日不破:=MIN(MIN(L,REF(L,1)),REF(L,2))>=REF(L,3);  

三日量缩:=(MAX(MAX(V,REF(V,1)),REF(V,2))<REF(V,3));  

三日价涨A:=C>=REF(C,1)ANDC>BBIANDC>O;  

三日价涨B:=C<REF(C,1);  

三日价涨C:=MIN(MIN(C,REF(C,1)),REF(C,2))>=REF(L,3);  

TIM:=IF(DATE<1140214,1,0);  

缩倍柱:=(VOL*1.95<=REF(VOL,1))*TIM;  

百日低量:=(VOL=LLV(VOL,100))*TIM;  

倍量柱:=C>REF(C,1)*1.04AND(VOL>=1.9*REF(VOL,1))*TIM;  

四日前倍量柱:=(REF(VOL,3)>1.9*REF(VOL,4))*TIM;  

四日前高量柱:=(REF(VOL,3)>=REF(VOL,4)  

REF(VOL,3)<1.9*REF(VOL,4)AND三日量缩)*TIM;  

前三引用不成立:=COUNT(REF(四日前倍量柱,1)AND(REF(三日  

不破,1)ORREF(三日价涨C,1)),3)=0ANDCOUNT(REF(四日前高量  

柱,1)AND(REF(三日不破,1)ORREF(三日价涨C,1)),3)=0;  

倍量黄金柱:=四日前倍量柱AND三日量缩AND三日不破AND  

三日价涨AAND前三引用不成立;  

AND  

B2:=FILTER(A2,10);  

B1:=FILTER(A1,10);  

高量黄金柱:=四日前高量柱AND三日量缩AND三日不破AND  

三日价涨AAND前三引用不成立;  

黄金柱:=倍量黄金柱OR高量黄金柱;  

次倍量黄金柱:=NOT(黄金柱)AND四日前倍量柱AND三日量缩  

AND三日不破AND三日价涨BAND前三引用不成立;  

次高量黄金柱:=NOT(黄金柱)AND四日前高量柱AND三日量缩  

AND三日不破AND三日价涨BAND前三引用不成立;  

次黄金柱:=次倍量黄金柱OR次高量黄金柱;  

准倍量黄金柱:=NOT(黄金柱OR次黄金柱)AND四日前倍量柱  

AND((三日量缩AND三日价涨C)OR(COUNT(倍量柱,3)>=1AND  

三日不破))AND前三引用不成立;  

准高量黄金柱:=NOT(黄金柱OR次黄金柱)AND四日前高量柱  

AND(三日量缩AND三日价涨C)AND前三引用不成立;  

准黄金柱:=准倍量黄金柱OR准高量黄金柱;  

倍量将军柱:=NOT(黄金柱OR次黄金柱OR准黄金柱)AND四日  

前倍量柱AND三日不破AND三日价涨AAND前三引用不成立;  

高量将军柱:=NOT(黄金柱OR次黄金柱OR准黄金柱)AND四日  

前高量柱AND三日不破AND三日价涨AAND前三引用不成立;  

将军柱:=倍量将军柱OR高量将军柱;  

次倍量将军柱:=NOT(黄金柱OR次黄金柱OR准黄金柱OR将军  

柱)AND四日前倍量柱AND三日不破AND三日价涨BAND前三引  

用不成立;  

次高量将军柱:=NOT(黄金柱OR次黄金柱OR准黄金柱OR将军  

柱)AND四日前高量柱AND三日不破AND三日价涨BAND前三引  

用不成立;  

次将军柱:=次倍量将军柱OR次高量将军柱;  

准倍量将军柱:=NOT(黄金柱OR次黄金柱OR准黄金柱OR将军  

柱OR次将军柱)AND四日前倍量柱AND三日价涨CAND前三引用  

不成立;  

准高量将军柱:=NOT(黄金柱OR次黄金柱OR准黄金柱OR将军  

柱OR次将军柱)AND四日前高量柱AND三日价涨CAND前三引用  

不成立;  

准将军柱:=准倍量将军柱OR准高量将军柱;  

BACKSET100:=BACKSET(黄金柱OR次黄金柱OR准黄金柱OR  

将军柱OR次将军柱OR准将军柱,4);  

FILTER100:=FILTER(BACKSET100,3);  

BACKSET101:=BACKSET(黄金柱,4);  

FILTER101:=FILTER(BACKSET101,3);  

BACKSET102:=BACKSET(次黄金柱,4);  

FILTER102:=FILTER(BACKSET102,3);  

BACKSET103:=BACKSET(准黄金柱,4);  

FILTER103:=FILTER(BACKSET103,3);  

BACKSET104:=BACKSET(将军柱,4);  

FILTER104:=FILTER(BACKSET104,3);  

BACKSET105:=BACKSET(次将军柱,4);  

FILTER105:=FILTER(BACKSET105,3);  

BACKSET106:=BACKSET(准将军柱,4);  

FILTER106:=FILTER(BACKSET106,3);  

黄金线下影线:=REF(FILTER100,3)=1  

MIN(MIN(L,REF(L,1)),REF(L,2))<=REF(L,3);  

黄金线实体下端:=REF(FILTER100,3)=1  

MIN(MIN(L,REF(L,1)),REF(L,2))<=MIN(REF(C,3),REF(O,3))  

MIN(MIN(L,REF(L,1)),REF(L,2))>REF(L,3),LINETHICK0;  

黄金线上影线:=REF(FILTER100,3)=1  

MIN(MIN(L,REF(L,1)),REF(L,2))>=REF(H,3);  

黄金线实体上端:=REF(FILTER100,3)=1  

MIN(MIN(L,REF(L,1)),REF(L,2))>=MAX(REF(C,3),REF(O,3))  

REF(FILTER100,3)=1  

MIN(MIN(L,REF(L,1)),REF(L,2))<REF(H,3);  

黄金线实体中间:=REF(FILTER100,3)=1  

AND  

AND  

AND  

AND  

AND  

AND  

AND  

AND  

MIN(MIN(L,REF(L,1)),REF(L,2))<MAX(REF(C,3),REF(O,3))  

REF(FILTER100,3)=1  

MIN(MIN(L,REF(L,1)),REF(L,2))>MIN(REF(C,3),REF(O,3));  

黄金线实体中间1:=REF(FILTER100,3)=1  

MIN(MIN(L,REF(L,1)),REF(L,2))<MAX(REF(C,3),REF(O,3))  

REF(FILTER100,3)=1  

MIN(MIN(L,REF(L,1)),REF(L,2))>MIN(REF(C,3),REF(O,3))  

REF(L,2)=MIN(MIN(L,REF(L,1)),REF(L,2));  

黄金线实体中间2:=REF(FILTER100,3)=1  

MIN(MIN(L,REF(L,1)),REF(L,2))<MAX(REF(C,3),REF(O,3))  

REF(FILTER100,3)=1  

MIN(MIN(L,REF(L,1)),REF(L,2))>MIN(REF(C,3),REF(O,3))  

REF(L,1)=MIN(MIN(L,REF(L,1)),REF(L,2));  

黄金线实体中间3:=REF(FILTER100,3)=1  

MIN(MIN(L,REF(L,1)),REF(L,2))<MAX(REF(C,3),REF(O,3))  

REF(FILTER100,3)=1  

MIN(MIN(L,REF(L,1)),REF(L,2))>MIN(REF(C,3),REF(O,3))  

L=MIN(MIN(L,REF(L,1)),REF(L,2));  

BACKSET201:=BACKSET(黄金线下影线,4);  

FILTER201:=FILTER(BACKSET201,3);  

BACKSET202:=BACKSET(黄金线实体下端,4);  

FILTER202:=FILTER(BACKSET202,3);  

BACKSET203:=BACKSET(黄金线上影线,4);  

FILTER203:=FILTER(BACKSET203,3);  

BACKSET204:=BACKSET(黄金线实体上端,4);  

FILTER204:=FILTER(BACKSET204,3);  

BACKSET205:=BACKSET(黄金线实体中间,4);  

FILTER205:=FILTER(BACKSET205,3);  

BACKSET2051:=BACKSET(黄金线实体中间1,4);  

AND  

AND  

AND  

AND  

AND  

AND  

AND  

AND  

AND  

AND  

AND  

AND  

AND  

AND  

FILTER2051:=FILTER(BACKSET2051,3);  

BACKSET2052:=BACKSET(黄金线实体中间2,4);  

FILTER2052:=FILTER(BACKSET2052,3);  

BACKSET2053:=BACKSET(黄金线实体中间3,4);  

FILTER2053:=FILTER(BACKSET2053,3);  

BT201:=IF(BARSLAST(FILTER201)=DRAWNULL,BARSCOUNT(  

CLOSE),BARSLAST(FILTER201));  

BT202:=IF(BARSLAST(FILTER202)=DRAWNULL,BARSCOUNT(  

CLOSE),BARSLAST(FILTER202));  

BT203:=IF(BARSLAST(FILTER203)=DRAWNULL,BARSCOUNT(  

CLOSE),BARSLAST(FILTER203));  

BT204:=IF(BARSLAST(FILTER204)=DRAWNULL,BARSCOUNT(  

CLOSE),BARSLAST(FILTER204));  

BT205:=IF(BARSLAST(FILTER205)=DRAWNULL,BARSCOUNT(  

CLOSE),BARSLAST(FILTER205));  

BT2051:=IF(BARSLAST(FILTER2051)=DRAWNULL,BARSCOU  

NT(CLOSE),BARSLAST(FILTER2051));  

BT2052:=IF(BARSLAST(FILTER2052)=DRAWNULL,BARSCOU  

NT(CLOSE),BARSLAST(FILTER2052));  

BT2053:=IF(BARSLAST(FILTER2053)=DRAWNULL,BARSCOU  

NT(CLOSE),BARSLAST(FILTER2053));  

最近黄金线:=MIN(MIN(MIN(MIN(MIN(MIN(BT201,BT202),BT203),BT204),B  

T2051),BT2052),BT2053);  

DAY1:=SUMBARS(FILTER100,1);  

HJX1_1:=IF(SUMBARS(FILTER201,1)=DAY1,IF(DAY1=1,LOW,R  

EF(LOW,DAY1-1)),0);  

HJX1_2:=IF(SUMBARS(FILTER202,1)=DAY1,IF(DAY1=1,MIN(C  

,O),MIN(REF(C,DAY1-1),REF(OPEN,DAY1-1))),0);  

HJX1_3:=IF(SUMBARS(FILTER203,1)=DAY1,IF(DAY1=1,HIGH,  

REF(HIGH,DAY1-1)),0);  

HJX1_4:=IF(SUMBARS(FILTER204,1)=DAY1,IF(DAY1=1,MAX(  

C,O),MAX(REF(C,DAY1-1),REF(OPEN,DAY1-1))),0);  

HJX1_51:=IF(SUMBARS(FILTER2051,1)=DAY1,IF(DAY1=2,LO  

W,IF(DAY1<2,DRAWNULL,REF(LOW,DAY1-2))),0);  

HJX1_52:=IF(SUMBARS(FILTER2052,1)=DAY1,IF(DAY1=3,LO  

W,IF(DAY1<3,DRAWNULL,REF(LOW,DAY1-3))),0);  

HJX1_53:=IF(SUMBARS(FILTER2053,1)=DAY1,IF(DAY1=4,LO  

W,IF(DAY1<4,DRAWNULL,REF(LOW,DAY1-4))),0);  

黄  

_53,COLORYELLOW;  

立桩量:=VOL=HHV(VOL,30)ANDVOL>1.9*REF(VOL,1);  

立桩量三日突破:=IF(BARSLAST(立桩量)=1AND  

CLOSE>REF(HIGH,1),1,IF(BARSLAST(  

CLOSE>REF(HIGH,2),1,IF(BARSLAST(  

CLOSE>REF(HIGH,3),1,0)));  

立桩量三日不破:=BARSLAST(立桩量)=3AND  

REF(LOW,3)<=MIN(MIN(C,REF(C,1)),REF(C,2));  

BACKSET300:=BACKSET(立桩量三日不破,4);  

BACKSET301:=BACKSET(立桩量三日突破,4);  

立桩量成立:=FILTER(BACKSET300,3)ANDBACKSET301AND  

立桩量;  

FILTER101ANDFILTER(BACKSET300,3)ANDBACKSET301  

AND立桩量;

image.png

声明:本站所有文章,如无特殊说明或标注,均为本站原创发布。任何个人或组织,在未征得本站同意时,禁止复制、盗用、采集、发布本站内容到任何网站、书籍等各类媒体平台。如若本站内容侵犯了原著者的合法权益,可联系我们进行处理。