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

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

授权方式: 免费版

指标评级: ★★★★★

指标分类: 策略

画线方法: 副图

一、通达信买卖提示指标公式源码主图

  

DIR1:=ABS(CLOSE-REF(CLOSE,10));  

VIR1:=SUM(ABS(CLOSE-REF(CLOSE,1)),10);  

ER1:=DIR1/VIR1;  

CS1:=ER1*(2/3-2/31)+2/31;  

CQ1:=CS1*CS1;  

TRA:=MAX(MAX((HIGH-LOW),ABS(REF(CLOSE,1)-HIGH)),ABS(REF(CLOSE,1)-LOW));  

AHR:=SMA(TRA,20,1);  

AMA1:DMA(CLOSE,CQ1),COLORFFFFFF,LINETHICK2;  

LH:AMA1+2*AHR,COLOR9314FF;  

NH:AMA1+AHR,DOTLINE,COLOR00DFDF;  

NL:AMA1-AHR,DOTLINE,COLOR00DFDF;  

LL:AMA1-2*AHR,COLOR9314FF;  

DRAWNUMBER(ISLASTBAR,LH,LH),COLOR9314FF;  

DRAWNUMBER(ISLASTBAR,NH,NH),COLOR00DFDF;  

DRAWNUMBER(ISLASTBAR,NL,NL),COLOR00DFDF;  

DRAWNUMBER(ISLASTBAR,LL,LL),COLOR9314FF;  

DRAWNUMBER(ISLASTBAR,AMA1,AMA1),COLORFFFFFF;  

DRAWKLINE(H,O,L,C);  

VAR1:=CLOSE>REF(CLOSE,1)ANDCLOSE>REF(CLOSE,2);  

VAR2:=REF(VAR1,1)ANDCLOSE<=ref(close,1)andclose>=REF(CLOSE,2);  

VAR3:=REF(VAR2,1)ANDCLOSE>=REF(CLOSE,1)ANDCLOSE<=REF(CLOSE,2);  

VAR4:=REF(VAR3,1)ANDCLOSE<=ref(close,1)andclose>=REF(CLOSE,2);  

VAR5:=REF(VAR4,1)ANDCLOSE>=REF(CLOSE,1)ANDCLOSE<=REF(CLOSE,2);  

VAR6:=REF(VAR5,1)ANDCLOSE<=ref(close,1)andclose>=REF(CLOSE,2);  

VAR7:=REF(VAR6,1)ANDCLOSE>=REF(CLOSE,1)ANDCLOSE<=REF(CLOSE,2);  

VAR8:=REF(VAR7,1)ANDCLOSE<=ref(close,1)andclose>=REF(CLOSE,2);  

VAR9:=REF(VAR8,1)ANDCLOSE>=REF(CLOSE,1)ANDCLOSE<=REF(CLOSE,2);  

VARA:=REF(VAR9,1)ANDCLOSE<=ref(close,1)andclose>=REF(CLOSE,2);  

VARB:=REF(VARA,1)ANDCLOSE>=REF(CLOSE,1)ANDCLOSE<=REF(CLOSE,2);  

VARC:=REF(VARB,1)ANDCLOSE<=ref(close,1)andclose>=REF(CLOSE,2);  

VARD:=CLOSE<REF(CLOSE,1)ANDCLOSE<REF(CLOSE,2);  

VARE:=REF(VARD,1)ANDCLOSE>=REF(CLOSE,1)ANDCLOSE<=REF(CLOSE,2);  

VARF:=REF(VARE,1)ANDCLOSE<=ref(close,1)andclose>=REF(CLOSE,2);  

VAR10:=REF(VARF,1)ANDCLOSE>=REF(CLOSE,1)ANDCLOSE<=REF(CLOSE,2);  

VAR11:=REF(VAR10,1)ANDCLOSE<=ref(close,1)andclose>=REF(CLOSE,2);  

VAR12:=REF(VAR11,1)ANDCLOSE>=REF(CLOSE,1)ANDCLOSE<=REF(CLOSE,2);  

VAR13:=REF(VAR12,1)ANDCLOSE<=ref(close,1)andclose>=REF(CLOSE,2);  

VAR14:=REF(VAR13,1)ANDCLOSE>=REF(CLOSE,1)ANDCLOSE<=REF(CLOSE,2);  

VAR15:=REF(VAR14,1)ANDCLOSE<=ref(close,1)andclose>=REF(CLOSE,2);  

VAR16:=REF(VAR15,1)ANDCLOSE>=REF(CLOSE,1)ANDCLOSE<=REF(CLOSE,2);  

VAR17:=REF(VAR16,1)ANDCLOSE<=ref(close,1)andclose>=REF(CLOSE,2);  

VAR18:=REF(VAR17,1)ANDCLOSE>=REF(CLOSE,1)ANDCLOSE<=REF(CLOSE,2);  

VAR19:=REF(VARDORVAREORVARFORVAR10ORVAR11ORVAR12ORVAR13OR  

VAR14ORVAR15ORVAR16ORVAR17ORVAR18,1)ANDVAR1;  

STICKLINE(VAR19,L,L*0.98,3,0),COLORYELLOW;  

VAR1A:=REF(VAR1ORVAR2ORVAR3ORVAR4ORVAR5ORVAR6ORVAR7OR  

VAR8ORVAR9ORVARAORVARBORVARC,1)ANDVARD;  

STICKLINE(VAR1A,H*1.01,H,3,0),COLOR00FF00{98FD};  

XXMA:MA(C,5),COLORWHITE;  

DD5:=XXMA<REF(XXMA,1);  

IF(DD5,XXMA,DRAWNULL),COLOR00FF00;  

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

多空线:(20*X+19*REF(X,1)+18*REF(X,2)+17*REF(X,3)+16*REF(X,4)+15*REF(X,5)+14*REF(X,6)  

+13*REF(X,7)+12*REF(X,8)+11*REF(X,9)+10*REF(X,10)+9*REF(X,11)+8*REF(X,12)  

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

REF(X,20))/210,COLORFF00FF,LINETHICK1;  

{用法:黄托底买进,绿压顶买出。}  

DD:=多空线<REF(多空线,1);  

IF(DD,多空线,DRAWNULL),COLORBLUE,LINETHICK3;  

A:=(XXMA>多空线);  

IF(A,多空线,DRAWNULL),COLORYELLOW,POINTDOT;  

A1:=(XXMA<多空线);  

IF(A1,多空线,DRAWNULL),COLORWHITE;  

V1:=CLOSE*VOL;  

V2:=EMA(V1,13)/EMA(VOL,13);  

CYS:=(EMA((CLOSE-V2)/V2,1)*100);  

AA:=CYS;  

MIDD:=MA(CYS,20);  

CC:=MIDD+0.85*STD(CYS,10);  

TM6:=AA>CC;  

IF(TM6,XXMA,DRAWNULL),COLORRED,LINETHICK2;  

VAR1:=HHV(HIGH,3);  

VAR2:=(IF(WINNER(1.1*CLOSE)<0,0,WINNER(1.1*CLOSE))-IF(WINNER(0.9*CLOSE)<0,0,WINNER(0.9*CLOSE)))*100;  

VAR3:=IF(VAR1<0,0,VAR1);  

VAR4:=IF(VAR2<0,0,VAR2);  

震仓:PWINNER(10,VAR4)*100,COLORWHITE,CROSSDOT,LINETHICK1;  

V1:=LLV(LOW,10);  

V2:=HHV(H,25);  

价位线:=EMA((C-V1)/(V2-V1)*4,4);  

买入:STICKLINE(CROSS(价位线,0.3),50,5,2,0),COLOR00CCFF,LINETHICK1;  

STICKLINE(CROSS(价位线,0.3),30,5,2,0),COLORRED,LINETHICK1;  

卖出:STICKLINE(CROSS(3.5,价位线),60,100,2,0),COLORRED,LINETHICK2;  

STICKLINE(CROSS(3.5,价位线),80,100,2,0),COLORFF9900,LINETHICK2;  

DRAWTEXT(CROSS(价位线,0.3),55,'买'),COLORF00FF0;  

DRAWTEXT(CROSS(3.5,价位线),55,'卖'),COLOR00FF00;  

VAR2Q:=REF(LOW,1);  

VAR3Q:=SMA(ABS(LOW-VAR2Q),3,1)/SMA(MAX(LOW-VAR2Q,0),3,1)*100;  

VAR4Q:=EMA(IF(CLOSE*1.3,VAR3Q*10,VAR3Q/10),3);  

VAR5Q:=LLV(LOW,30);  

VAR6Q:=HHV(VAR4Q,30);  

VAR7Q:=IF(MA(CLOSE,58),1,0);  

VAR8Q:=EMA(IF(LOW<=VAR5Q,(VAR4Q+VAR6Q*2)/2,0),3)/618*VAR7Q;  

VAR9Q:=IF(VAR8Q>100,100,VAR8Q);  

吸筹:STICKLINE(VAR9Q>-120,0,VAR9Q,6,1),COLORYELLOW;  

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

AA4:=(CLOSE-LLV(LOW,21))/(HHV(HIGH,21)-LLV(LOW,21))*100;  

AA5:=SMA(AA4,13,8);  

走势:=CEILING(SMA(AA5,13,8));  

AA6:=SMA(AA3,21,8);  

卖临界:STICKLINE(走势-AA6>85,98,90,15,1),COLORFFFF00;

image.png

二、精准买卖点通达信指标公式源码

  

arA:=BARSCOUNT(CLOSE)*3.142/180;  

A2:SIN(VarA*8)*100,linethick2;  

A3:COS(VarA*8)*100,linethick2;  

X1:0;  

Var1:=MA(CLOSE,5);  

Var2:=MA(CLOSE,10);  

Var3:=MA(CLOSE,20);  

Var4:=MA(CLOSE,30);  

Var5:=(Var1+Var2+Var3+Var4)/4;  

Var6:=(Var5-REF(Var5,5))/REF(Var5,5)*1500;  

Var7:=(Var5-REF(Var5,5))/REF(Var5,5)*1500;  

Var8:=EMA(Var6,8);  

注意:STICKLINE(Var6>REF(Var6,1)ANDVar6<0ANDVar6<Var8,Var6,0,5,0);  

转强:STICKLINE(Var8>REF(Var8,1)ANDVar6<0andvar6>Var8,Var8,0,5,0),COLORYELLOW;  

买点:STICKLINE(Var6>REF(Var6,1)ANDVar6>0ANDVar8<0,Var6,Var8,10,0);  

DRAWICON(FILTER(Var6>REF(Var6,1)ANDVar6>0ANDVar8<0,30),-140,4);  

DRAWTEXT(FILTER(Var6>REF(Var6,1)ANDVar6>0ANDVar8<0,30),-40,'买点'),COLORffffff;  

持股:STICKLINE(Var8>REF(Var8,1)ANDVar8>0,Var6,0,5,0),COLORred;  

观望:STICKLINE(Var6REF(Var8,1)ANDVar6>0,Var6,Var8,10,0);  

持币:STICKLINE(Var6<REF(Var6,1)ANDVar6<Var8,Var6,Var8,5,1),COLORffff00;  

VAR9:=TROUGHBARS(3,15,1)<10;  

VAR10:=PEAKBARS(3,15,1)<10;  

VAR11:=IF(VAR9=1,50,0);  

VAR12:=IF(VAR10=1,50,0);  

底部:=IF(VAR11=50,50,0);  

头部:=IF(VAR12=50,100,0);  

a:if(底部>ref(底部,1),50,0);  

aa:if(头部>ref(头部,1),50,0);  

DRAWTEXT(a=50,100,'买'),COLORred,linethick2;  

DRAWTEXT(aa=50,100,'卖'),COLOR00ff00,linethick2;  

注意底部:0,COLORffffff;  

低位转强:0,COLORYELLOW;  

坚决持股:0,COLORred;  

谨慎观望:0,Color400080;  

果断持币:0,COLORffff00;  

VAR1G:=(((CLOSE/MA(CLOSE,40))*100)<78);  

VAR2G:=(((CLOSE/MA(CLOSE,60))*100)<74);  

VAR3G:=(HIGH>(LOW*1.051));  

VAR4G:=(VAR3GAND(COUNT(VAR3G,5)>1));  

TFD:=IF((VAR4GAND(VAR1GORVAR2G)),2,0);  

TF:=C/REF(C,25)<=1.1;  

CC:=(SMA(MAX(C-REF(C,2),0),7,1)/SMA(ABS(C-REF(C,2)),7,1)*100)<15;  

V3:=(CLOSE-LLV(LOW,8))/(HHV(HIGH,8)-LLV(LOW,8))*100;  

线:=SMA(V3,2,1);  

V5:=SMA(线,2,1);  

BAO:=IF(线>REF(线,1)ANDREF(线,1)<REF(线,2)AND线<23,1.5,0);  

DUAN:TFANDTFDANDCCANDBAO,COLORRED;

image.png

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

DIFIF1:(EMA(CLOSE,12) – EMA(CLOSE,26))*100/EMA(CLOSE,26);

DEAEA1:EMA(DIFIF1,9);

MACD1:=2*(DIFIF1-DEAEA1),STICK;

MACD2:=EMA(MACD1,3);

STICKLINE(MACD1>MACD2 AND MACD1>0,0,MACD1,0,0),COLORRED;

STICKLINE(MACD1>MACD2 AND MACD1<0,0,MACD1,0,0),COLORGREEN;

STICKLINE(MACD1<MACD2,0,MACD1,0,0),COLORCBCBC0;

STICKLINE(MACD1>=0 OR MACD1<=0,0,0,50,1),COLORWHITE;

MACD:MACD1,NODRAW,COLORMAGENTA;

强:IF(DIFIF1>=DEAEA1,DIFIF1,DRAWNULL),COLORRED;

弱:IF(DEAEA1>=DIFIF1,DEAEA1,DRAWNULL),COLORFF9900;

DRAWICON(CROSS(DIFIF1,DEAEA1),DIFIF1+0.1,1);

DRAWICON(CROSS(DEAEA1,DIFIF1),0.4,2);

A1:=BARSLAST(REF(CROSS("MACD.DIF","MACD.DEA"),1));

B1:=REF(C,A1+1)>C AND REF("MACD.DIF",A1+1)<"MACD.DIF" AND CROSS("MACD.DIF","MACD.DEA");

DRAWTEXT(B1>0,-0.8,'MACD底背'),COLORFF00FF;

A2:=BARSLAST(REF(CROSS("KDJ.K","KDJ.D"),1));

B2:=REF(C,A2+1)>C AND REF("KDJ.K",A2+1)<"KDJ.K" AND CROSS("KDJ.K","KDJ.D");

DRAWTEXT(B2,-0.6,'KDJ底离'),COLORYELLOW;{KDJ底背离};

A3:=BARSLAST(REF(CROSS("RSI.RSI1","RSI.RSI2"),1));

B3:=REF(C,A3+1)>C AND REF("RSI.RSI1",A3+1)<"RSI.RSI1" AND CROSS("RSI.RSI1","RSI.RSI2");

DRAWTEXT(B3>0,-0.3,'RSI底离'),COLORCYAN;{RSI底背离};

C1:=BARSLAST(REF(CROSS("MACD.DEA","MACD.DIF"),1));

D1:=REF(C,C1+1)"MACD.DIF" AND CROSS("MACD.DEA","MACD.DIF");

DRAWTEXT(D1>0,0.4,'MACD顶离'),COLORBLUE;{MACD顶背离}

C2:=BARSLAST(REF(CROSS("KDJ.D","KDJ.K"),1));

D2:=REF(C,C2+1)"KDJ.K" AND CROSS("KDJ.D","KDJ.K");

DRAWTEXT(D2>0,0.6,'KDJ顶离'),COLORLIMAGENTA;{KDJ顶背离}

C3:=BARSLAST(REF(CROSS("RSI.RSI2","RSI.RSI1"),1));

D3:=REF(C,C3+1)"RSI.RSI1" AND CROSS("RSI.RSI2","RSI.RSI1");

DRAWTEXT(D3>0,0.8,'RSI顶离'),COLORGREEN;{RSI顶背离};

DD:=C=HHV(C,180);

EE:=DEAEA1< REF(DEAEA1,1) AND REF(DEAEA1< REF(DEAEA1,1),1)=1;

CC:=C> REF(C,1) AND REF(C> REF(C,1),1)=1;

上升背离:(CC AND EE)*DEAEA1,COLOR00FFFF;

顶背离:(DD AND EE AND DEAEA1< HHV(DEAEA1,180))*DEAEA1,STICK,LINETHICK3,COLORGREEN;

FF:=C=LLV(C,180);

GG:= DEAEA1> REF(DEAEA1,1) AND REF(DEAEA1> REF(DEAEA1,1),1)=1;

LL:=C< REF(C,1) AND REF(C< REF(C,1),1)=1;

下降背离:(LL AND GG)*DEAEA1,COLORMAGENTA;

底背离:(FF AND GG AND DEAEA1> LLV(DEAEA1,180))*DEAEA1,STICK,LINETHICK3,COLORRED;

SHORT:=12;

LONG:=26;

MID:=9;

DIF:=EMA(CLOSE,SHORT)-EMA(CLOSE,LONG);

DEA:=EMA(DIF,MID);

MACD9:=(DIF-DEA)*2;

AK1:=DIF<0 AND DEA<0;

AK2:=AK1!=REF(AK1,1) AND AK1;

AK3:=COUNT(CROSS(DIF,DEA),BARSLAST(AK2))=1 AND CROSS(DIF,DEA) AND AK1;

AK4:=COUNT(CROSS(DIF,DEA),BARSLAST(AK2))=2 AND CROSS(DIF,DEA) AND AK1;

AK5:=REF(DIF,BARSLAST(AK3))<=REF(DIF,BARSLAST(AK4));

零下二金:AK4 AND AK5,LINETHICK2,COLOR38B0DE;

BC1:=DIF>0 AND DEA>0;

BC2:=BC1!=REF(BC1,1) AND B1;

BC3:=COUNT(CROSS(DIF,DEA),BARSLAST(BC2))=1 AND CROSS(DIF,DEA) AND BC1;

BC4:=COUNT(CROSS(DIF,DEA),BARSLAST(BC2))=2 AND CROSS(DIF,DEA) AND BC1;

BC5:=REF(DIF,BARSLAST(BC3))<=REF(DIF,BARSLAST(BC4));

零上二金:BC4 AND BC5,LINETHICK2;

T:=BARSLAST(CROSS(DIFIF1,DEAEA1) AND DIFIF1<0);

T1:=SUMBARS(T=0,2);

T2:=SUMBARS(T=0,3);

M:=BARSLAST(CROSS(0,MACD1));

M1:=SUMBARS(M=0,2);

M2:=SUMBARS(M=0,3);

DA1:=REF(DIFIF1,BARSLAST(DIFIF1=LLV(DIFIF1,M+1)));

DA2:=REF(DA1,T1-1);

DA3:=REF(DA2,T1-1);

LT:=BARSLAST(L=LLV(L,M+1));

MT:=BARSLAST(DIFIF1=LLV(DIFIF1,M+1));

L1:=REF(L,LT);

L2:=REF(L1,T1-1);

L3:=REF(L2,T1-1);

XG:=T=0 AND L1<L2 AND L2DA2 AND DA2>DA3;

推荐阅读:通达信买卖提示指标公式源码主图

  

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;  

EMA13:=EMA(C,13),COLORWHITE;  

EMA21:=EMA(C,21),COLORYELLOW;  

EMA34:=EMA(C,34),COLORFF00FF;  

EMA60:=MA(C,60),COLORFFCC66;  

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

VAR3:=IF(YEAR>=2099ANDMONTH>2,0,1);  

VAR4:=LLV(LOW,5);VAR5:=HHV(HIGH,4);  

散户:=EMA((VAR2-VAR4)/(VAR5-VAR4)*100,4)*VAR3;  

庄家:=EMA(0.667*REF(散户,1)+0.333*散户,2)*VAR3;  

VAR9:=CLOSE-REF(CLOSE,5);  

VARA:=EMA(EMA(VAR9,5),5)/EMA(EMA(ABS(VAR9),5),5);  

VARC:=EMA(EMA(VAR9,20),20)/EMA(EMA(ABS(VAR9),20),20);  

卖出:=IF(VARA>0ANDCROSS(VARC,VARA),90,100);  

DRAWICON(卖出<0,H+0.05,2);买线:=EMA(CLOSE,2);  

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

B1:IF(CROSS(买线,卖线),L-0.02,DRAWNULL),CROSSDOT,LINETHICK3,COLORMAGENTA;  

S1:IF(CROSS(80,RSI)*30,H+0.02,DRAWNULL),CROSSDOT,LINETHICK3,COLORYELLOW;  

VC:=((CLOSE-MA(CLOSE,6))/MA(CLOSE,6)*100+(CLOSE-MA(CLOSE,24))/MA(CLOSE,24)*100+(CLOSE-MA(CLOSE,32))/MA(CLOSE,32)*100)/3;  

S2:=IF(VC>20ANDFILTER(VC<REF(VC,1),5),H+0.02,DRAWNULL),CIRCLEDOT,LINETHICK3,COLORGREEN;  

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

A1:EMA(A0,14)COLORBLUE,LINETHICK2;  

A2:=EMA(A0,25)COLORLIBLUE,LINETHICK2;  

A1X:=(A1-REF(A1,1))/REF(A1,1)*100,NODRAW;  

A2X:=(A2-REF(A2,1))/REF(A2,1)*100,NODRAW;  

看多:IF(A1X>=0ANDBARSLAST(CROSS(A1X,0))>0,REF((C+O)/2,BARSLAST(CROSS(A1X,0))),DRAWNULL),COLORMAGENTA{,LINETHICK2};  

逃顶:IF(A1X<0andbarslast(cross(0,a1x))>0,REF((C+O)/2,BARSLAST(CROSS(0,A1X))),DRAWNULL),COLORCYAN,{LINETHICK2};  

买入持股:IF(A1X>=0,A1,DRAWNULL)COLORRED,LINETHICK3;  

卖出空仓:IF(A1X<0ANDA2X<0,A1,DRAWNULL)COLORGREEN,LINETHICK3;  

STICKLINE(CROSS(A1X,0),H,L,0,0),COLOR9933FF;  

STICKLINE(CROSS(A1X,0),C,O,3,0),COLOR0000CC;  

STICKLINE(CROSS(A1X,0),C,O,1,0),COLOR0033FF;  

STICKLINE(CROSS(0,A1X),L,H,0,0),COLOR66CC33;  

工作线:EMA(CLOSE,50),COLORRED,LINETHICK2;  

工作线2:EMA(CLOSE,17),LINETHICK2;  

九号线:=EMA(CLOSE,99);  

暴张线:=MA(CLOSE,181);  

牛:=EMA(CLOSE,144)>=REF(EMA(CLOSE,144),1);  

DRAWTEXT((工作线2>=REF(工作线2,1)AND  

L<工作线2andc>工作线2),L,'买'),COLORYELLOW;  

DRAWTEXT((九号线>=REF(九号线,1)AND牛ANDL<九号线andh>九号线)  

AND((CLOSEC)),L*0.98,'●九号'),COLOR00FF00;  

DRAWTEXT((工作线>=REF(工作线,1)AND牛ANDL<工作线andh>工作线)  

{AND((CLOSEC))},L*0.96,'◆工作'),COLORWHITE;  

DRAWTEXT((暴张线>=REF(暴张线,1)AND牛ANDL<暴张线andh>暴张线)  

AND((CLOSEC)),L*0.94,'★暴张'),COLORMAGENTA;  

黄昏之星:=((((((REF(CLOSE,2)/REF(OPEN,2))>1.03)AND(REF(OPEN,1)>  

REF(CLOSE,2)))AND((ABS((REF(OPEN,1)-REF(CLOSE,1)))/  

REF(CLOSE,1))<0.02))AND((CLOSE/OPEN)<0.97))AND(CLOSE<REF(CLOSE,2)));  

射击之星:=(((MIN(OPEN,CLOSE)=LOW)AND((HIGH-LOW)>(3*  

(MAX(OPEN,CLOSE)-LOW))))AND(CLOSE>MA(CLOSE,5)));  

锤头:=(((HIGH=MAX(OPEN,CLOSE))AND((HIGH-LOW)>(3*(HIGH-  

MIN(OPEN,CLOSE)))))AND(CLOSE<MA(CLOSE,5)));  

吊颈:=(((HIGH=MAX(OPEN,CLOSE))AND((HIGH-LOW)>(3*(HIGH-  

MIN(OPEN,CLOSE))))));  

穿头破脚:=((((((REF(CLOSE,1)/REF(OPEN,1))>1.03)AND((CLOSE/OPEN)  

<0.96))AND(CLOSEREF(CLOSE,1)))OR  

(((((REF(CLOSE,1)/REF(OPEN,1))<0.97)and((close>  

1.04))AND(CLOSE>REF(OPEN,1)))AND(OPEN<REF(CLOSE,1))));  

身怀六甲:=(((((ABS((REF(CLOSE,1)-REF(OPEN,1)))/REF(CLOSE,1))>0.04)  

AND((ABS((CLOSE-OPEN))/CLOSE)<0.005))AND(MAX(CLOSE,OPEN)<  

MAX(REF(CLOSE,1),REF(OPEN,1))))AND(MIN(CLOSE,OPEN)>MIN(REF(CLOSE,1),REF(OPEN,1))));  

乌云盖顶:=(((((REF(CLOSE,1)/REF(OPEN,1))>1.03)AND((CLOSE/OPEN)<  

0.97))AND(OPEN>REF(CLOSE,1)))AND(CLOSE<REF(CLOSE,1)));  

曙光初现:=(((((REF(CLOSE,1)/REF(OPEN,1))<0.97)and((close>  

1.03))AND(OPENREF(CLOSE,1)));  

倾盆雨:=(((((REF(CLOSE,1)/REF(OPEN,1))>=1.03)AND(OPEN<  

REF(CLOSE,1)))AND(OPEN>REF(OPEN,1)))AND(CLOSE<REF(OPEN,1)));  

DRAWTEXT(倾盆雨,H*1.03,'倾盆大雨'),COLORCYAN;  

DRAWTEXT(黄昏之星,H*1.02,'黄昏之星'),COLORCYAN;  

DRAWTEXT(射击之星,H*1.03,'射击之星可能见顶'),COLORCYAN;  

DRAWTEXT(锤头,L-L*0.02,'锤头可能见底'),COLORGREEN;  

DRAWTEXT(吊颈,H*1.03,'吊颈'),COLORCYAN;  

DRAWTEXT(穿头破脚,H*1.05,'穿头破脚'),COLORCYAN;  

DRAWTEXT(乌云盖顶,H*1.03,'乌云盖顶'),COLORCYAN;  

DRAWTEXT(曙光初现,L-L*0.02,'曙光初现(放量)'),COLORGREEN;  

DRAWTEXT(身怀六甲,L-L*0.02,'身怀六甲,底升顶落'),COLORGREEN;

image.png

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