神奇指标网

绝密买卖点主图指标公式源码-绝佳买卖

浏览 163次浏览
标签: 买卖
来源:神奇指标网 编辑:神奇指标网 发布日期:2022-09-30


买卖的时候,我们最好参考均线的压力和支撑来决策,并且配合k线的具体位置来参考。不惧、不贪则不会出现大的错误。



通达信指标公式源码介绍:



绝密买卖点主图指标公式源码-绝佳买卖



  

Var1:=BARSCOUNT(CLOSE);  

Var2:=HHV(HIGH,200);  

Var3:=LLV(LOW,200);  

Var4:=(Var2-Var3)/40;  

Var5:=HIGH+Var4;  

STICKLINE(Var1/30=FLOOR(Var1/30),Var5,Var5+3*Var4,8,0);  

STICKLINE(Var1/30=FLOOR(Var1/30),Var5,Var5+2*Var4,7,0);  

Var7:=REF(CLOSE-OPEN,2);  

Var8:=REF(CLOSE,1);  

Var9:=REF(CLOSE,2);  

VarA:=REF(CLOSE,3);  

VarB:=REF(CLOSE,4);  

VarC:=MAX(MAX(MAX(CLOSE,Var8),Var9),VarA);  

VarD:=MIN(MIN(MIN(CLOSE,Var8),Var9),VarA);  

红色持股:STICKLINE(CLOSE=VarCAND(Var8>=Var9ORVar8>=VarA)ORVar8=VarCAND(Var9=VarDORVarA=VarD)ANDCLOSE>=Var9ORVar9=VarCANDVarA=VarDANDCLOSE>=Var8ORVarA=VarCANDCLOSE>=Var8ANDCLOSE>=Var9,Var8,CLOSE,5,1);  

品红变盘:STICKLINE(CLOSE=VarCANDVar8=VarD,Var9,CLOSE,5,1);  

黄色下跌:STICKLINE(CLOSE=VarDAND(Var8<Var9ORVar8<VarA)ORVar8=VarDAND(Var9=VarCORVarA=VarC)ANDCLOSE<Var9ORVar9=VarDANDVarA=VarCANDCLOSE<Var8ORVarA=VarDANDCLOSE<Var8ANDCLOSE<Var9,Var8,CLOSE,5,0);  

绿色买:STICKLINE(Var8=VarCANDCLOSE=VarD,Var9,CLOSE,5,0);  

STICKLINE(Var8=VarDANDCLOSE>=Var9OR(Var9=VarDANDVar8<=VarAORVarA=VarDANDVar8<=Var9)ANDVar9<VarBANDCLOSE>=Var8,Var8,Var9,5,0);  

兰色抛售:STICKLINE(Var8=VarCANDCLOSE<Var9OR(Var9=VarCANDVar8>VarAORVarA=VarCANDVar8>Var9)ANDVar9>=VarBANDCLOSE<Var8,Var8,Var9,5,1);  

VarE:=SAR(5,1,5);  

VarF:=EMA(CLOSE,30);  

Var10:=IF(CLOSE>450,8,IF(CLOSE>=20ANDCLOSE<150,0.2,IF(CLOSE<20ANDCLOSE>=10,0.07,IF(CLOSE<10,0.03,0.07))));  

变色龙:STICKLINE(CLOSE>VarE,VarF,VarF+Var10,6,0);  

STICKLINE(CLOSE<VarE,VarF,VarF-Var10,6,0);  

STICKLINE(CROSS(CLOSE,VarE),VarF,VarF-Var10,6,0);  

STICKLINE(CROSS(VarE,CLOSE),VarF,VarF+Var10,6,0);  

STICKLINE(RANGE(DAY,6,9)ORRANGE(DAY,27,30),VarF+0.01,VarF-0.01,6,0);  

生命线:FORCAST(CLOSE,30),CIRCLEDOT;  

支撑:MA(CLOSE,13)*0.955;  

A:ma(CLOSE,3),ColorFF00FF,LINETHICK0;  

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

B:=EMA(A1,10);  

B2:=REF(B,1);  

MA20:=EMA(CLOSE,20);  

DRAWTEXT((B>B2),ma20,'*'),Colorffff00;  

DRAWTEXT((B<B2),ma20,'*'),Coloryellow;  

VAR1:=EMA(CLOSE,3);  

VAR2:=EMA(CLOSE,8);  

MA5:MA(CLOSE,5),Coloryellow;  

MA21:=EMA(CLOSE,21);  

stICKLINE(VAR1<MA21,h,l,0,0),Colorgreen;  

STICKLINE(VAR1<MA21,c,o,8,0),Color007700;  

STICKLINE(VAR1<MA21,c,o,7,0),Color008E00;  

STICKLINE(VAR1<MA21,c,o,6,0),Color009900;  

STICKLINE(VAR1<MA21,c,o,5,0),Color00A600;  

STICKLINE(VAR1<MA21,c,o,4,0),Color00B500;  

STICKLINE(VAR1<MA21,c,o,3,0),Color00C600;  

STICKLINE(VAR1<MA21,c,o,2,0),Color00D500;  

STICKLINE(VAR1<MA21,c,o,1,0),Color00E600;  

STICKLINE(VAR1>MA21,h,l,0,0),Color106fff;  

STICKLINE(VAR1>MA21,c,o,8,0),Color000084;  

STICKLINE(VAR1>MA21,c,o,7,0),Color000095;  

STICKLINE(VAR1>MA21,c,o,6,0),Color0000A2;  

STICKLINE(VAR1>MA21,c,o,5,0),Color0000B3;  

STICKLINE(VAR1>MA21,c,o,4,0),Color0000C8;  

STICKLINE(VAR1>MA21,c,o,3,0),Color0000D7;  

STICKLINE(VAR1>MA21,c,o,2,0),Color0000EA;  

STICKLINE(VAR1>MA21,c,o,1,0),Color0000FF;  

STICKLINE(VAR1<VAR2ANDVAR1>MA21,h,l,0,0),Colorff5d10;  

STICKLINE(VAR1<VAR2ANDVAR1>MA21,c,o,8,0),Colorff5d10;  

STICKLINE(VAR1<VAR2ANDVAR1>MA21,c,o,5,0),Colorff7710;  

STICKLINE(VAR1<VAR2ANDVAR1>MA21,c,o,2,0),Colorff9910;  

STICKLINE(VAR1>VAR2ANDVAR1<MA21,h,l,0,0),Colorff00ff;  

STICKLINE(VAR1>VAR2ANDVAR1<MA21,c,o,8,0),Color8E008E;  

STICKLINE(VAR1>VAR2ANDVAR1<MA21,c,o,7,0),Color9D009D;  

STICKLINE(VAR1>VAR2ANDVAR1<MA21,c,o,6,0),ColorB000B0;  

STICKLINE(VAR1>VAR2ANDVAR1<MA21,c,o,5,0),ColorC600C6;  

STICKLINE(VAR1>VAR2ANDVAR1<MA21,c,o,4,0),ColorD000D0;  

STICKLINE(VAR1>VAR2ANDVAR1<MA21,c,o,3,0),ColorE600E6;  

STICKLINE(VAR1>VAR2ANDVAR1<MA21,c,o,2,0),ColorF900F9;  

STICKLINE(VAR1>VAR2ANDVAR1<MA21,c,o,1,0),ColorFF09FF;  

七天线:EMA(C,7),COLORWHITE;  

黄金线:(EMA(C,18)),POINTDOT,LINETHICK4,COLORYELLOW;  

生命线:(MA(C,28)),COLORMAGENTA;  

姊妹线:(EMA(C,56)),COLORCYAN;  

多空线:(MA(C,120)),COLOR0099FF;  

A3:=EMA((((SLOPE(C,21))*20)+C),68);  

A4:=EMA(C,10);  

A5:=REF(C,2);  

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

A7:=IF(((A6&lt;(REF(A6,1)))AND(A6&gt;79)),A6,0);  

A8:=LLV(L,21);  

A9:=HHV(H,21);  

A10:=EMA((((CLOSE-A8)/(A9-A8))*100),5);  

A11:=EMA((((CLOSE-A8)/(A9-A8))*50),13);  

A12:=EMA(((0.667*(REF(A10,1)))+(0.333*A10)),2);  

A13:=LLV(L,55);  

A14:=HHV(H,34);  

A15:=EMA((((C-A13)/(A14-A13))*100),3);  

A16:=(A11+A15)/2;  

A17:=EMA(((0.667*(REF(A15,1)))+(0.333*A10)),2);  

A18:=EMA(A16,5);  

A19:=EMA(((0.667*(REF(A18,1)))+(0.333*A18)),2);  

A20:=CROSS(A10,A11);  

A21:=(CROSS(A10,A19))AND(A19&lt;30);  

A22:=A21*0.6;  

A23:=((C+L)+H)/3;  

A24:=EMA(A23,6);  

A25:=EMA(A24,5);  

A26:=CROSS(A24,A25);  

DRAWICON(A26,(LOW/1.030),1),LINETHICK2,COLORMAGENTA;  

DRAWTEXT(CROSS(A4,A3),L*0.88,'买!'),LINETHICK4,COLORYELLOW;  

STICKLINE(((C&gt;=黄金线)AND(C&gt;=O)),H,L,0,1),COLORRED;  

STICKLINE(((C&gt;=黄金线)AND(C&gt;=O)),O,C,2,1),COLORRED;  

STICKLINE(((C&gt;=黄金线)AND(C&lt;=O)),H,L,0,0),COLORRED;  

STICKLINE(((C&gt;=黄金线)AND(C&lt;=O)),O,C,2,0),COLORRED;  

STICKLINE(((C&lt;黄金线)AND(C&gt;=O)),H,L,0,1),COLORGREEN;  

STICKLINE(((C&lt;黄金线)AND(C&gt;=O)),O,C,2,1),COLORGREEN;  

STICKLINE(((C&lt;黄金线)AND(C&lt;=O)),H,L,0,0),COLORGREEN;  

STICKLINE(((C&lt;黄金线)AND(C&lt;=O)),O,C,2,0),COLORGREEN;  

MA2:=MA(CLOSE,10);  

MA34:=MA(CLOSE,34);  

VARA:=((AMOUNT)/(vol))/(100);  

VARB:=((3)*(HIGH)+LOW+OPEN+(2)*(CLOSE))/(7);  

VARC:=((SUM(AMOUNT,7))/(VARA))/(100);  

VARD:=DMA(VARB,(VOL)/(VARC));  

VARE:=((CLOSE-VARD)/(VARD))*(100);  

VARF:=((CLOSE-LLV(LOW,34))/(HHV(HIGH,34)-LLV(LOW,34)))*(100);  

VARJ:=MA(VARE,20)+STD(VARE,20);  

bias18:=((CLOSE-MA(CLOSE,18))/(MA(CLOSE,18)))*(100);  

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

顶:=(REF(BIAS18,1)>=5)ANDcrOSS(VARJ,VARE)AND(K>79);  

DRAWTEXT((REF(BIAS18,1)>=5)ANDCROSS(VARJ,VARE)AND  

(K>79),h*1.02,'风险'),Coloryellow;  


image.png



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

MA5赋值:收盘价的5日简单移动平均

MA10赋值:收盘价的10日简单移动平均

AA赋值:MA5上穿MA10

输出XG:最近5日存在AA


神奇指标网(https://www.shenqizhibiao.com/)所有指标公式及文章来源于网络仅供学习研究

神奇指标收藏 收藏
神奇指标分享 分享

网友评论

已有0人评论

清除 发表评论
    神奇指标提问

    求助编写

    神奇指标

    神奇指标

    神奇指标
    关注官方
    抖音号
    神奇指标抖音号