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

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

授权方式: 免费版

指标评级: ★★★★★

指标分类: 策略

画线方法: 副图

一、捉妖红金绿副图指标公式源码

  

P1:=3;  

A10304:=REF(HIGH,3)=HHV(HIGH,2*3+1);  

B10304:=FILTER(A10304,3);  

C10304:=BACKSET(B10304,3+1);  

D10304:=FILTER(C10304,3);{高点}  

A20304:=REF(LOW,3)=LLV(LOW,2*3+1);  

B20304:=FILTER(A20304,3);  

C20304:=BACKSET(B20304,3+1);  

D20304:=FILTER(C20304,3);{低点}  

E10304:=(REF(LLV(LOW,2*3),1)+REF(HHV(HIGH,2*3),1))/2;  

E20304:=(HIGH+LOW)/2;{高低点出现在同一K线上时可作取舍}  

H10304:=(D10304ANDNOT(D20304ANDE10304>=E20304))ORBARSTATUS=2ORBARSCOUNT(CLOSE)=1;  

L10304:=(D20304ANDNOT(D10304ANDE10304=E20304));  

X10304:=REF(BARSLAST(H10304),1)+1;  

F10304:=BACKSET(H10304ANDCOUNT(L10304,X10304)>0,LLVBARS(IF(L10304,LOW,10000),X10304));  

G10304:=F10304>REF(F10304,1);  

I10304:=BACKSET(G10304,2);  

LD0304:=I10304>REF(I10304,1);{过滤后低点}  

L20304:=LD0304ORBARSTATUS=2ORBARSCOUNT(CLOSE)=1;  

X20304:=REF(BARSLAST(L20304),1)+1;  

F20304:=BACKSET(L20304ANDCOUNT(H10304,X20304)>0,HHVBARS(IF(H10304,HIGH,0),X20304));  

G20304:=F20304>REF(F20304,1);  

I20304:=BACKSET(G20304,2);  

HD0304:=I20304>REF(I20304,1);{过滤后高点}  

UU0304:=BACKSET(BARSTATUS=2,BARSLAST(LD0304)+1);  

VV0304:=UU0304>REF(UU0304,1);  

UU20304:=BACKSET(BARSTATUS=2,BARSLAST(HD0304)+1);  

VV20304:=UU20304>REF(UU20304,1);  

{以下语句为三角形部分}  

底:REF(L,BARSLAST(VV0304)),COLORred,LINETHICK1;  

顶:REF(H,BARSLAST(VV20304)),COLORGreen,LINETHICK1;  

{下跌三角形:绿色三角形画完介入}  

StickLine(VV0304,顶,底,0,0),COLORGreen,linethick2;  

DRAWLINE(VV20304,H,VV0304,L,0),COLORGreen,linethick2;{斜}  

DRAWLINE(VV20304,H,VV0304,顶,0),COLORGreen,linethick2;  

{上涨三角形:红色三角形画完出局}  

StickLine(VV20304,顶,底,0,0),COLORred,linethick2;  

DRAWLINE(VV0304,L,VV20304,H,0),COLORred,linethick2;{斜}  

DRAWLINE(VV0304,L,VV20304,底,0),COLORred,linethick2;  

{文字}  

NN304:=DISPSTATUS=2;  

DRAWTEXT(nn304,底,'底:'+NUMTOSTRN(底,2)+'元'),ALIGN2,COLORred,LINETHICK1,VALIGN0;  

DRAWTEXT(nn304,顶,'顶:'+NUMTOSTRN(顶,2)+'元'),ALIGN2,COLORGreen,LINETHICK1,VALIGN2;  

{箱体}  

TY309:=C;  

HD309:=FILTER(BACKSET(FILTER(REF(TY309,10)=HHV(TY309,2*10+1),10),10+1),10);  

LD309:=FILTER(BACKSET(FILTER(REF(TY309,10)=LLV(TY309,2*10+1),10),10+1),10);  

A309:=REF(C,BARSLAST(HD309));  

B309:=REF(C,BARSLAST(LD309));  

T1309:=BARSLAST(HD309)<BARSLAST(LD309)ANDNOT(HD309);  

T2309:=BARSLAST(HD309)>BARSLAST(LD309)ANDNOT(LD309);  

波浪顶:IF(T1309,A309,A309),COLORCYAN,POINTDOT,LINETHICK2;  

波浪底:IF(T2309,B309,B309),COLORMAGENTA,POINTDOT,LINETHICK2;  

a:=HHV(MA((L+H+C)/3,3),3);  

b:=llv(MA((L+H+C)/3,3),10);  

STICKLINE(DISPSTATUS=2,a,a,20,0),Coloryellow,linethick1;{小箱体–上沿}  

DRAWTEXT(DISPSTATUS=2,a,NUMTOSTRN(a,3)),colorYELLOW;  

STICKLINE(DISPSTATUS=2,b,b,20,0),COLORWhite,linethick1;{小箱体–下沿}  

DRAWTEXT(DISPSTATUS=2,b,NUMTOSTRN(b,3)),COLORWhite;  

k1:=llv(l,barslast(DISPSTATUS=1)+1);  

aa1:=cost(95);  

aa2:=cost(5);  

ly:=(aa1-aa2)*100/(aa1+aa2);  

N:=p1;{原码N:=3;}  

A1:=REF(H,N)=HHV(H,2*N+1);  

B1:=FILTER(A1,N);  

C1:=BACKSET(B1,N+1);  

D1:=FILTER(C1,N);{高点}  

A2:=REF(L,N)=LLV(L,2*N+1);  

B2:=FILTER(A2,N);  

C2:=BACKSET(B2,N+1);  

D2:=FILTER(C2,N);{低点}  

E1:=(REF(LLV(L,2*N),1)+REF(HHV(H,2*N),1))/2;  

E2:=(H+L)/2;{高低点出现在同一K线上时可作取舍}  

H1:=(D1ANDNOT(D2ANDE1>=E2))ORDISPSTATUS=2ORBARSCOUNT(C)=1;  

L1:=(D2ANDNOT(D1ANDE1<E2));  

H2:=D1ANDNOT(D2ANDE1>=E2);  

X1:=REF(BARSLAST(H1),1)+1;  

F1:=BACKSET(H1ANDCOUNT(L1,X1)>0,LLVBARS(IF(L1,L,10000),X1));  

G1:=F1>REF(F1,1);  

I1:=BACKSET(G1,2);  

LD:=I1>REF(I1,1);{过滤后低点}  

L2:=LDORDISPSTATUS=2ORBARSCOUNT(C)=1;  

X2:=REF(BARSLAST(L2),1)+1;  

F2:=BACKSET(L2ANDCOUNT(H2,X2)>0,HHVBARS(IF(H2,H,0),X2));  

G2:=F2>REF(F2,1);  

I2:=BACKSET(G2,2);  

HD:=I2>REF(I2,1);{过滤后高点}  

R1:=BACKSET(DISPSTATUS=2,BARSLAST(HD)+1);S1:=R1>REF(R1,1);{前一高}  

T1:=BACKSET(DISPSTATUS=2,BARSLAST(LD)+1);U1:=T1>REF(T1,1);{前一低}  

R2:=BACKSET(S1,REF(BARSLAST(HD),1)+2);S2:=R2>REF(R2,1);{前二高}  

T2:=BACKSET(U1,REF(BARSLAST(LD),1)+2);U2:=T2>REF(T2,1);{前二低}  

T3:=BACKSET(U2,REF(BARSLAST(LD),1)+2);U3:=T3>REF(T3,1);{前三低}  

T4:=BACKSET(U3,REF(BARSLAST(LD),1)+2);U4:=T4>REF(T4,1);{前四低}  

VA:=IF((CLOSE>REF(CLOSE,1)),88,0);  

AR:=IF(((CLOSE)/(REF(CLOSE,1))>1.05)AND((HIGH)/(CLOSE)<1.01)AND(VA>0),91,0);  

大胆搏:FILTER((AR>90),45)*20,COLORWHITE;  

N:=30;  

TJ:EVERY(C>OANDC>REF(C,1)ANDO>REF(O,1),3)  

AND(C-LLV(L,N))/(HHV(H,N)-LLV(L,N))*100<30;  

MID:=(CLOSE+LOW+OPEN+HIGH)/4;  

主力:(20*MID+19*REF(MID,1)+18*REF(MID,2)+17*REF(MID,3)+  

16*REF(MID,4)+15*REF(MID,5)+14*REF(MID,6)+  

13*REF(MID,7)+12*REF(MID,8)+11*REF(MID,9)+MID)/2,COLORRED;  

主力买:IF(主力>REF(主力,2),主力,DRAWNULL),COLORRED,LINETHICK2;  

主力卖:IF(主力<REF(主力,2),主力,DRAWNULL),COLORGREEN,LINETHICK2;  

BIAS1:=(C-EMA(C,10))/EMA(C,10);  

BIAS2:=(C-EMA(C,20))/EMA(C,20);  

BIAS3:=(C-EMA(C,55))/EMA(C,55);  

乖离1:=(BIAS1+5*BIAS2+10*BIAS3);  

乖离2:EMA(主力+乖离1,5),NODRAW;  

乖离3:EMA(主力+乖离1+乖离2,15)/2,NODRAW;  

乖离买:IF(乖离2>REF(乖离2,2),乖离2,DRAWNULL),COLORRED,LINETHICK2,NODRAW;  

乖离卖:IF(乖离2<REF(乖离2,2),乖离2,DRAWNULL),COLORGREEN,NODRAW;  

连续乖离:=乖离2>REF(乖离2,1)ANDREF(乖离2,1)>REF(乖离2,2)AND  

REF(乖离2,2)>REF(乖离2,3)ANDCROSS(乖离1,0);  

主力买1:=IF(乖离2>REF(乖离2,3),乖离2,DRAWNULL),COLORRED;  

主力买2:=IF(乖离2<REF(乖离2,2),乖离2,DRAWNULL),COLORGREEN;  

STICKLINE(主力买1,乖离2,乖离3,3,0),COLORRED;  

STICKLINE(主力买2,乖离2,乖离3,3,0),COLORGREEN;  

{换手Z:VOL/FINANCE(46)*10000,NODRAW,COLORRED;}  

IF(主力买>=REF(乖离3,2),主力买,DRAWNULL),COLORRED,LINETHICK3;  

IF(主力买<=REF(乖离2,1),主力买,DRAWNULL),COLORGREEN,LINETHICK2;  

DRAWTEXT(CROSS(主力买,乖离2)ANDCROSS(C,MA(C,10)),乖离2,'初显'),COLORFFFFA6;  

DRAWTEXT(CROSS(主力买,乖离2)ANDCROSS(C,MA(C,60)),乖离3,'牛妖'),COLOR51E3E8;  

N1:=12;N2:=16;N3:=50;  

LC:=REF(CLOSE,1);  

R1:SMA(MAX(CLOSE-LC,0),N1,1)/SMA(ABS(CLOSE-LC),N1,1)*100,COLORLIGRAY;  

MAR:MA(R1,N2),COLORYELLOW;  

IF(MAR>=50ORCROSS(MAR,50),MAR,DRAWNULL),COLORRED,LINETHICK2;  

R2:SMA(MAX(CLOSE-LC,0),N3,1)/SMA(ABS(CLOSE-LC),N3,1)*100,COLORLIGREEN;  

IF(R2>=50ORCROSS(R2,50),R2,DRAWNULL),COLORFF00FF,LINETHICK2;  

牛熊:50,POINTDOT,LINETHICK4,COLORCYAN;  

超卖:20,POINTDOT;  

超买:80,POINTDOT;  

image.png

二、捉妖红金黄公式源码

  

A5:=MA(C,5);  

A6:=MA(C,60);  

AB:=CROSS(C,A5);  

AC:=CROSS(C,A6);  

捉妖大师:ABANDAC;  

DRAWGBK(O>C,RGB(160,32,240),RGB(56,94,15),0,'背1',0);  

Aa01:=(WINNER((CLOSE*1))*100.000);  

Ad2:=(WINNER((CLOSE*1.1))*100.000);  

Ad3:=(WINNER((CLOSE*0.9))*100.000);  

Ad4:=MA(Ad3,5);  

Ad6:=(100-MA(Ad2,5));  

{STICKLINE(1,Ad6,MA(Ad2,5),2,1),COLORGREEN;}  

A08:=(MA(Ad2,5)-MA(Ad3,5));  

{STICKLINE(1,Ad4,MA(Ad2,5),2,1),COLORYELLOW;}  

AiA:=(((((HHV(Ad4,15)-Ad3)/Ad3)*100)>30)AND(HHV(Ad4,15)>50));  

STICKLINE(AiA,(0-2),2,2,1);  

STICKLINE(NOT(AiA),(0-2),2,2,1),COLORBLUE;  

STICKLINE(Ad3>REF(Ad3,1),0,Ad3,2,0),COLORRED;  

STICKLINE(Ad3<REF(Ad3,1),0,Ad3,2,1),COLORRED;  

获利:=MA(Ad3,1),COLORMAGENTA,DOTLINE;  

主力:MA(Ad3,10),COLORMAGENTA,LINETHICK2;  

套牢:=100-Ad2,COLORLIBLUE,DOTLINE;  

散户:(100.000-MA(Ad2,10)),COLORLIBLUE,LINETHICK2;  

浮动:=Ad2-Ad3,COLORLIRED,DOTLINE;  

游资:(MA(Ad2,10)-MA(Ad3,10)),COLORLIRED,LINETHICK2;  

STICKLINE(1,100,100,5,1),COLORGREEN;  

DRAWTEXT_FIX(C>0,0.002,0,0,DYBLOCK),COLOR8000FF;  

DRAWTEXT_FIX(C>0,0.046,0,0,EXTERNSTR(0,1)),COLOR8000FF;  

买线:=EMA(C,2);  

卖线:=EMA(SLOPE(C,21)*20+C,42);  

BU:=CROSS(买线,卖线);  

SEL:=CROSS(卖线,买线);  

STICKLINE(买线>=卖线,LOW,HIGH,0.1,0),COLORRED;  

STICKLINE(买线>=卖线,CLOSE,OPEN,3,0),COLORRED;  

STICKLINE(买线<卖线,CLOSE,OPEN,3,0),COLORFFF000;  

STICKLINE(买线<卖线,LOW,HIGH,0.1,0),COLORFFF000;  

Z1:=REF(HIGH,4)=HHV(HIGH,2*4+1);  

Y1:=FILTER(Z1,3);  

C1:=BACKSET(Y1,3+1);  

D1:=FILTER(C1,3);  

A2:=REF(LOW,3)=LLV(LOW,2*3+1);  

V2:=FILTER(A2,3);  

C2:=BACKSET(V2,3+1);  

D2:=FILTER(C2,3);  

E1:=(REF(LLV(LOW,2*3),1)+REF(HHV(HIGH,2*3),1))/2;  

E2:=(HIGH+LOW)/2;  

H1:=(D1ANDNOT(D2ANDE1>=E2))ORISLASTBAR=1ORBARSCOUNT(CLOSE)=1;  

H2:=D1ANDNOT(D2ANDE1>=E2);  

L1:=D2ANDNOT(D1ANDE1=E2);  

X1:=REF(BARSLAST(H1),1)+1;  

DRAWTEXT_FIX(CURRBARSCOUNT=60,0.4,0.01,0,''),COLORGREEN;  

F1:=BACKSET(H1ANDCOUNT(L1,X1)>0,LLVBARS(IF(L1,LOW,10000),X1));  

G1:=F1>REF(F1,1);  

I1:=BACKSET(G1,2);  

LD:=I1>REF(I1,1);  

L2:=LDORISLASTBAR=1ORBARSCOUNT(CLOSE)=1;  

X2:=REF(BARSLAST(L2),1)+1;  

F2:=BACKSET(L2ANDCOUNT(H2,X2)>0,HHVBARS(IF(H2,HIGH,0),X2));  

G2:=F2>REF(F2,1);  

I2:=BACKSET(G2,2);  

HD:=I2>REF(I2,1);  

UU2:=BACKSET(ISLASTBAR=1,BARSLAST(HD)+1);  

VV2:=UU2>REF(UU2,1);  

WW2:=BACKSET(VV2,REF(BARSLAST(HD),1)+2);  

XX2:=WW2>REF(WW2,1);  

突破线:REF(H,BARSLAST(VV2));  

持仓线:REF(H,BARSLAST(XX2));  

TP1:=CROSS(C,突破线);  

TP2:=CROSS(C,持仓线);  

STICKLINE(TP1,H,L,0,0),COLORYELLOW;  

STICKLINE(TP1,C,O,3,0),COLORYELLOW;  

STICKLINE(TP1,C,O,3,0),COLORYELLOW;  

STICKLINE(TP1,C,O,1,0),COLORYELLOW;  

DRAWTEXT(TP1,LOW*0.98,'资金突破'),LINETHICK1,COLORYELLOW;  

STICKLINE(TP2,H,L,0,0),COLORYELLOW;  

STICKLINE(TP2,C,O,3,0),COLORYELLOW;  

STICKLINE(TP2,C,O,3,0),COLORYELLOW;  

STICKLINE(TP2,C,O,1,0),COLORYELLOW;  

DRAWTEXT(TP2,LOW*0.98,'资金突破'),LINETHICK1,COLORYELLOW;  

量:VOL,VOLSTICK,COLORLIGRAY;  

几倍:V/REF(V,1),COLORYELLOW,NODRAW;  

倍数:=1.9;  

倍量:VOL>=REF(V,1)*倍数AND(IF(C<O,C>REF(C,1),1)),COLORYELLOW,NODRAW;  

真阳或假阴:=C>OORC>REF(C,1);  

收阳:=REF(真阳或假阴,3);  

倍量1:=REF(倍量,3);  

高量:=REF(V,3)>=HHV(V,7);  

三日不破:=LLV(C,3)>=REF(L,3);  

价升:=COUNT(C>=REF(C,1),3)=3;{收盘价逐升}  

量缩:=COUNT(V<=REF(V,1),3)=3;  

连阳:=COUNT(真阳或假阴,3)=3;  

倍量将军柱:=倍量1AND三日不破AND收阳;  

高量将军柱:=高量AND三日不破AND收阳;  

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

黄金柱:=将军柱AND价升AND量缩AND连阳;{标准黄金柱}  

V100:=V<=LLV(V,100)*1.2ANDV>0ANDBARSCOUNT(V)>=100;  

百日地量群:=COUNT(V100,5)>=3;  

长阴短柱:=C/REF(C,1)<=0.96ANDV<HHV(V,30)/1.9;  

STICKLINE(将军柱,0,V,2,0),COLORWHITE;  

STICKLINE(将军柱,0,V,0.5,0),COLORYELLOW;  

STICKLINE(黄金柱,0,V,2,0),COLORWHITE;  

STICKLINE(黄金柱,0,V,0.5,0),COLORMAGENTA;  

STICKLINE(百日地量群,0,V,0.5,0),COLORWHITE;  

STICKLINE(百日地量群,0,V,0.2,0),COLORFFFF00;  

STICKLINE(长阴短柱,0,V,0.2,0),COLOR000000;

image.png

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

AA赋值:随机指标KD的K>随机指标KD的D上穿0.5

输出XG:AA AND 收盘价/1日前的收盘价>AA累加至2的天数-1日前的收盘价/1日前的收盘价

推荐阅读:捉妖红金绿公式

  

AA:=REF(CLOSE,1);  

BBB:=SMA(MAX(CLOSE-AA,0),21,1)/SMA(ABS(CLOSE-AA),21,1)*1000;  

HHH:=BBB-LLV(BBB,27);  

CCC:=LLV(BBB,27)-BBB;  

QQ:=(MA(HHH,2)*3+HHH*13)/16,COLORFF00FF,LINETHICK2;  

SS:=(MA(CCC,2)*3+CCC*13)/16,COLORFF00FF,LINETHICK2;  

GG:=MA(HHH,5),LINETHICK2,COLORGREEN;  

MM:=MA(CCC,5),LINETHICK2,COLORGREEN;  

WW:=IF(QQ<GG,SS,MM),LINETHICK2,COLOR0000FF;  

EE:=IF(SS<MM,GG,QQ),COLORFFFFCC,LINETHICK2;  

★买:=IF(EE-WW<5.6,200,0);  

RSVV:=(CLOSE-LLV(LOW,10))/(HHV(HIGH,10)-LLV(LOW,10))*100;  

VARB2:=(RSVV/2+22)*1;  

量:=EMA(VOL,13);  

资金:=EMA(AMOUNT,13);  

过滤:=((资金/量)/100);  

提纯:=(((CLOSE-过滤)/过滤)*100);  

黄金:=((提纯<(0))),COLORRED;  

买AA:=黄金ANDRSVV<VARB2-2;  

精准:=买AA>0;  

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

DX:=100*EMA(EMA(MTM,6),6)/EMA(EMA(ABS(MTM),6),6);  

买:=IF(LLV(DX,2)=LLV(DX,7)ANDCOUNT(DX<0,2)ANDCROSS(DX,MA(DX,2)),1,0);  

七胜:=FILTER(买=1,5);  

REF(精准,1)AND七胜;  

DIFA:=EMA(CLOSE,6)-EMA(CLOSE,13);  

DEA:=EMA(DIFA,5);  

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

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

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

MK日金叉:=CROSS(DIFA,DEA)ANDCROSS(K,D);  

MK日金叉共振:IF(MK日金叉,5,0);  

DRAWBAND(COST(70),RGB(80,0,80),COST(90),RGB(88,8,240));  

DRAWBAND(COST(50),RGB(80,60,80),COST(70),RGB(88,68,240));  

DRAWBAND(COST(30),RGB(80,120,80),COST(50),RGB(88,128,240));  

DRAWBAND(COST(10),RGB(80,190,80),COST(30),RGB(88,188,240));  

{彩色K线}  

TYX3:=MA(REF(HHV((C+L+O+H)/4,30),1),3);  

TYX4:=MA((C+L+O+H)/4,13);  

TYX5:=EMA((C+L+O+H)/4,21);  

{空心红}  

STICKLINE(C<TYX5ANDC>O,H,L,0,0),COLORRED;  

STICKLINE(C<TYX5ANDC>O,C,O,3,1),COLORRED;  

{深绿}  

STICKLINE(C<TYX5ANDC<O,H,L,0,0),COLOR007700;  

STICKLINE(C<TYX5ANDC<O,C,O,3,0),COLOR005500;  

STICKLINE(C<TYX5ANDC<O,C,O,2,0),COLOR006600;  

STICKLINE(C<TYX5ANDC<O,C,O,1,0),COLOR007700;  

{蓝}  

STICKLINE(C>TYX5ANDC<O,H,L,0,0),COLORFFDD44;  

STICKLINE(C>TYX5ANDC<O,C,O,3,0),COLORFF7700;  

STICKLINE(C>TYX5ANDC<O,C,O,2,0),COLORFFAA22;  

STICKLINE(C>TYX5ANDC<O,C,O,1,0),COLORFFDD44;  

{黄}  

STICKLINE(C>TYX5ANDC>O,H,L,0,0),COLOR00EEFF;  

STICKLINE(C>TYX5ANDC>O,C,O,3,0),COLOR00AAFF;  

STICKLINE(C>TYX5ANDC>O,C,O,2,0),COLOR00CCFF;  

STICKLINE(C>TYX5ANDC>O,C,O,1,0),COLOR00EEFF;  

{粉红}  

STICKLINE(C>TYX4ANDC>O,H,L,0,0),COLORFF66AA;  

STICKLINE(C>TYX4ANDC>O,C,O,3,0),COLORFF11FF;  

STICKLINE(C>TYX4ANDC>O,C,O,2,0),COLORFF44FF;  

STICKLINE(C>TYX4ANDC>O,C,O,1,0),COLORFF66FF;  

{亮灰}  

STICKLINE(C>TYX4ANDC<O,H,L,0,0),COLOR999999;  

STICKLINE(C>TYX4ANDC<O,C,O,3,0),COLOR555555;  

STICKLINE(C>TYX4ANDC<O,C,O,2,0),COLOR777777;  

STICKLINE(C>TYX4ANDC<O,C,O,1,0),COLOR999999;  

{深红}  

STICKLINE(C>TYX3ANDC>O,H,L,0,0),COLOR0000DD;  

STICKLINE(C>TYX3ANDC>O,C,O,3,0),COLOR000099;  

STICKLINE(C>TYX3ANDC>O,C,O,2,0),COLOR0000BB;  

STICKLINE(C>TYX3ANDC>O,C,O,1,0),COLOR0000DD;  

{涨跌停K线}  

STICKLINE((C-REF(C,1))*100/REF(C,1)>=(10-0.01*100/REF(C,1)),OPEN,CLOSE,1,0),COLORYELLOW;  

STICKLINE((REF(C,1)-C)*100/REF(C,1)>=(10-0.01*100/REF(C,1)),OPEN,CLOSE,1,0),COLORWHITE;  

{突破}  

STICKLINE(REF(COUNT(C<TYX3,5)=5,1)ANDC>TYX3ANDC>O,C,O,1,0),COLOR00CCFF;  

STICKLINE(REF(COUNT(C<TYX3,5)=5,1)ANDC>TYX3ANDC>O,C,O,1,0),COLOR00CCFF;  

A1:=CLOSE*VOL;  

A2:=EMA((EMA(A1,3)/EMA(VOL,3)+EMA(A1,6)/EMA(VOL,6)+EMA(A1,12)/EMA(VOL,12)+EMA(A1,24)/EMA(VOL,24))/4,13);  

A3:=1.06*A2;  

A4:=EMA(A3-(EMA(CLOSE,3)-A3),5);  

AAK:IF(A4<=A3,A4,A3),COLORYELLOW,LINETHICK2;  

A5:=2*A3-AAK;  

AAA:IF(A5>=A3,A5,A3),COLORYELLOW,LINETHICK2;  

观望:IF(AAK=AAA,AAK,DRAWNULL),COLORGREEN,LINETHICK2;  

趋势:=3*SMA((C-LLV(L,27))/(HHV(H,27)-LLV(L,27))*100,5,1)-2*  

SMA(SMA((C-LLV(L,27))/(HHV(H,27)-LLV(L,27))*100,5,1),3,1);  

ZZ:=趋势>REF(趋势,1);  

K1:=VOL/1000000;  

K2:=CLOSE;  

V1:=EMA(K1,5);  

V2:=EMA(K2,5);  

价异动:=K2>REF(V2,1)*1.06;  

量异动:=K1>REF(V1,1)*1.6&&ZZ;  

停牌:=DYNAINFO(17)>0;  

MK1:=SUM(价异动,2)>0AND停牌;  

MK2:=SUM(量异动,2)>0ANDREF(趋势,1)<89;  

共鸣:=(C>REF(C,1)ANDFILTER(MK1ANDMK2,3))*6,COLORRED;  

XGP:=AAK=AAAAND共鸣;  

DRAWICON(XGP,O*1.01,10);  

DRAWTEXT(XGP,O*1.01,'←突破顶,'),COLORYELLOW;  

A:=(3*C+L+O+H)/6;  

X:=(20*A+19*REF(A,1)+18*REF(A,2)+17*REF(A,3)+16*REF(A,4)+15*REF(A,5)+  

14*REF(A,6)+13*REF(A,7)+12*REF(A,8)+11*REF(A,9)+10*REF(A,10)+9*REF(A,11)+8*REF(A,12)  

+7*REF(A,13)+6*REF(A,14)+5*REF(A,15)+4*REF(A,16)+3*REF(A,17)+2*REF(A,18)+  

REF(A,20))/210;  

S2:=SMA(C,3,1);  

S6:=SMA(C,5,1);  

DK:=2*(S2-S6);  

主力成本:EMA(X,13),COLORFF00FF,LINETHICK0;  

短期底部:LLV(HIGH,30),LINETHICK2,COLORFFCC00;  

IF(MA(C,3),MA(C,3),DRAWNULL),coloryellow,LINETHICK2;  

IF(MA(C,9),MA(C,9),DRAWNULL),colormagenta,LINETHICK2;  

IF(MA(C,23.5),MA(C,23.5),DRAWNULL),colorwhite;  

DRAWKLINE(HIGH,OPEN,LOW,CLOSE);  

MA5:=MA(C,5);  

MA10:=MA(C,10);  

MA30:=MA(C,30);  

FA:=BARSLAST(CROSS(MA10,MA5))ANDCROSS(MA5,MA10);  

FB:=FAANDMA5>MA30ANDMA10>MA30ANDMA10>REF(MA10,1);  

DRAWTEXT(FB,L-0.58,'★红牛'),colorred;  

V1:=EMA(CLOSE,5);  

V2:=EMA(EMA(CLOSE,90)*1.01,10);  

DRAWTEXT(CROSS(V1,V2),V1+0.05,'牛起步'),COLOR00FF00;  

VAR1:=LLV(LOW,21);  

VAR2:=HHV(HIGH,21);  

AK1:=EMA((((CLOSE-VAR1)/(VAR2-VAR1))*100),5);  

AK:=EMA((((CLOSE-VAR1)/(VAR2-VAR1))*50),13);  

AB:=CROSS(AK1,AK);  

DRAWTEXT((AB=1),(LOW*0.99),'○牛窝'),coloryellow;  

AA1:=AMOUNT/V;  

BB1:=L<AA1*0.9;  

CC1:=(C-REF(C,1))/REF(C,1)*100>1.2;  

DD1:=L<MA(C,5)*0.921;  

EE1:=V<MA(V,5)*1.5;  

老鼠仓:=BB1ANDCC1ANDDD1ANDEE1,LINETHICK0,COLOR0099FF;  

DRAWTEXT(老鼠仓,L*0.99,'老鼠仓'),COLOR0099FF;  

VAR3AA:=IF((CLOSE>REF(CLOSE,1)),88,0);  

VAR4AA:=IF(((CLOSE)/(REF(CLOSE,1))>1.05)AND((HIGH)/(CLOSE)<1.01)AND(VAR3AA>0),91,0);  

DRAWTEXT(FILTER((VAR4AA>90),45),(LOW)*(0.93),'★大胆搏'),COLOR00FFFF;  

DRAWTEXT(FILTER((VAR4AA>90),35),(LOW)*(0.99000001),'★加仓'),COLOR00FFFF;  

A1AA:=9;  

A2AA:=(REF(CLOSE,A1AA+1)<CLOSE);  

DRAWTEXT(FILTER((A2AA>-0.5),84),(HIGH)*(1.05),'小心变盘'),COLORFFFFFF;  

VAR6:=REF(C,1);  

VAR7:=SMA(MAX(C-VAR6,0),6,1)/SMA(ABS(C-VAR6),6,1)*100;  

DRAWTEXT(CROSS(82,VAR7),H*1.01,'▼逃顶'),coloryellow;  

MIB:=(2*CLOSE+LOW+OPEN+HIGH)/5;  

支撑1线:(20*MIB+19*REF(MIB,1)+18*REF(MIB,2)+17*REF(MIB,3)+16*REF(MIB,4)+15*REF(MIB,5)+14*REF(MIB,6)+13*REF(MIB,7)+12*REF(MIB,8)+11*REF(MIB,9)+10*REF(MIB,10)+9*REF(MIB,11)+8*REF(MIB,12)+7*REF(MIB,13)+6*REF(MIB,14)+5*REF(MIB,15)+4*REF(MIB,16)+3*REF(MIB,17)+2*REF(MIB,18)+REF(MIB,20))/210,colorred;  

支撑2线:MA(支撑1线,6),colorgreen;  

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

顶线:(20*MIA+19*REF(MIA,1)+18*REF(MIA,2)+17*REF(MIA,3)+16*REF(MIA,4)+15*REF(MIA,5)+14*REF(MIA,6)+13*REF(MIA,7)+12*REF(MIA,8)+11*REF(MIA,9)+10*REF(MIA,10)+9*REF(MIA,11)+8*REF(MIA,12)+7*REF(MIA,13)+6*REF(MIA,14)+5*REF(MIA,15)+4*REF(MIA,16)+3*REF(MIA,17)+2*REF(MIA,18)+REF(MIA,20))/210,COLORFFCC00;

image.png

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