通达信指标公式源码概况:
指标类别: 通达信指标公式
授权方式: 免费版
指标评级: ★★★★★
指标分类: 策略
画线方法: 副图
短线抓牛指标公式
VAR1:=SUM(MAX(MAX(HIGH-LOW,ABS(HIGH-REF(CLOSE,1))),ABS(LOW-REF(CLOSE,1))),25);
VAR2:=HIGH-REF(HIGH,1);
VAR3:=REF(LOW,1)-LOW;
VAR4:=SUM(IF(VAR20 AND VAR2VAR3,VAR2,0),25);
VAR5:=SUM(IF(VAR30 AND VAR3VAR2,VAR3,0),25);
VAR6:=VAR4*100/VAR1;
VAR7:=VAR5*100/VAR1;
VAR8:=MA(ABS(VAR7-VAR6)/(VAR7+VAR6)*100,15);
VAR9:=(VAR8+REF(VAR8,15))/2;
A:=(VAR7VAR6 AND VAR725 AND VAR625);
B:ZIG(3,10)*100,colorred;
G:MA(B,2);
D:CROSS(B,G)*1000,colorred,LINETHICK2;
W:CROSS(G,B)*1000,colorwhite,LINETHICK2;
E:=REF(INDEXC,1);
F:=SMA(MAX(INDEXC-E,0),3,1)/SMA(ABS(INDEXC-E),3,1);
VAR10:=F AND F8;
VAR11:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
VAR12:=SMA(VAR11,3,1);
VAR13:=SMA(VAR12,3,1);
VAR14:=VAR13 AND VAR1320;
DRAWTEXT(W=1000,1000,'卖' ),colorwhite;
DRAWTEXT(D=1000, 1000,'买'),colorred;
安全线:EMA((CLOSE+HIGH+LOW)/3,55),colorf4e202;
A:=EMA(SLOPE(EMA(CLOSE,55),10)*15+CLOSE,2);
短期:EMA(SLOPE(EMA(CLOSE,55),10)*15+CLOSE,2),color83ffff;
长期:EMA(A,13),colorff80ff;
VAR1:=SUM(MAX(MAX(HIGH-LOW,ABS(HIGH-REF(CLOSE,1))),ABS(LOW-REF(CLOSE,1))),25);
VAR2:=HIGH-REF(HIGH,1);
VAR3:=REF(LOW,1)-LOW;
VAR4:=SUM(IF(VAR20 AND VAR2VAR3,VAR2,0),25);
VAR5:=SUM(IF(VAR30 AND VAR3VAR2,VAR3,0),25);
VAR6:=VAR4*100/VAR1;
VAR7:=VAR5*100/VAR1;
VAR8:=MA(ABS(VAR7-VAR6)/(VAR7+VAR6)*100,15);
VAR9:=(VAR8+REF(VAR8,15))/2;
A:=(VAR7VAR6 AND VAR725 AND VAR625);
B:ZIG(3,10)*100,colorred;
G:MA(B,2);
D:CROSS(B,G)*1000,colorred,LINETHICK2;
W:CROSS(G,B)*1000,colorwhite,LINETHICK2;
E:=REF(INDEXC,1);
F:=SMA(MAX(INDEXC-E,0),3,1)/SMA(ABS(INDEXC-E),3,1);
VAR10:=F AND F8;
VAR11:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
VAR12:=SMA(VAR11,3,1);
VAR13:=SMA(VAR12,3,1);
VAR14:=VAR13 AND VAR1320;
DRAWTEXT(W=1000,1000,'卖' ),colorwhite;
DRAWTEXT(D=1000, 1000,'买'),colorred;
短线擒牛指标
M:=6;//或8
VAR1:=(C+0.618*REF(C,1)+0.382*REF(C,2)+0.236*REF(C,3)+0.146*REF(C,4))/2.382;
VAR2:=HHV(C,60)-LLV(C,60);
VAR3:=(CLOSE-LLV(LOW,M))/(HHV(HIGH,M)-LLV(LOW,M))*10000;
VAR4:=SMA(MAX(VAR1-REF(VAR1,1),0),5,1)/SMA(ABS(VAR1-REF(VAR1,1)),5,1);
VAR5:=VAR1+VAR2*(VAR4-0.5);
EA反转基线:=VAR3REF(VAR3,1) AND REF(VAR3,1)REF(VAR3,2) AND VAR39000 AND VAR5MA(CLOSE,3);
DRAWTEXT(EA反转基线 AND EA反转基线REF(EA反转基线,1),LOW-0.05,'买点'),coloryellow;
var1:=CLOSEREF(CLOSE,1) AND CLOSEREF(CLOSE,2);
Var2:=REF(Var1,1) AND CLOSE=REF(CLOSE,1) AND CLOSE=REF(CLOSE,2);
Var3:=REF(Var2,1) AND CLOSE=REF(CLOSE,1) AND CLOSE=REF(CLOSE,2);
Var4:=REF(Var3,1) AND CLOSE=REF(CLOSE,1) AND CLOSE=REF(CLOSE,2);
Var5:=REF(Var4,1) AND CLOSE=REF(CLOSE,1) AND CLOSE=REF(CLOSE,2);
Var6:=REF(Var5,1) AND CLOSE=REF(CLOSE,1) AND CLOSE=REF(CLOSE,2);
Var7:=REF(Var6,1) AND CLOSE=REF(CLOSE,1) AND CLOSE=REF(CLOSE,2);
Var8:=REF(Var7,1) AND CLOSE=REF(CLOSE,1) AND CLOSE=REF(CLOSE,2);
Var9:=REF(Var8,1) AND CLOSE=REF(CLOSE,1) AND CLOSE=REF(CLOSE,2);
VarA:=REF(Var9,1) AND CLOSE=REF(CLOSE,1) AND CLOSE=REF(CLOSE,2);
VarB:=REF(VarA,1) AND CLOSE=REF(CLOSE,1) AND CLOSE=REF(CLOSE,2);
VarC:=REF(VarB,1) AND CLOSE=REF(CLOSE,1) AND CLOSE=REF(CLOSE,2);
VarD:=CLOSEREF(CLOSE,1) AND CLOSEREF(CLOSE,2);
VarE:=REF(VarD,1) AND CLOSE=REF(CLOSE,1) AND CLOSE=REF(CLOSE,2);
VarF:=REF(VarE,1) AND CLOSE=REF(CLOSE,1) AND CLOSE=REF(CLOSE,2);
Var10:=REF(VarF,1) AND CLOSE=REF(CLOSE,1) AND CLOSE=REF(CLOSE,2);
Var11:=REF(Var10,1) AND CLOSE=REF(CLOSE,1) AND CLOSE=REF(CLOSE,2);
Var12:=REF(Var11,1) AND CLOSE=REF(CLOSE,1) AND CLOSE=REF(CLOSE,2);
Var13:=REF(Var12,1) AND CLOSE=REF(CLOSE,1) AND CLOSE=REF(CLOSE,2);
Var14:=REF(Var13,1) AND CLOSE=REF(CLOSE,1) AND CLOSE=REF(CLOSE,2);
Var15:=REF(Var14,1) AND CLOSE=REF(CLOSE,1) AND CLOSE=REF(CLOSE,2);
Var16:=REF(Var15,1) AND CLOSE=REF(CLOSE,1) AND CLOSE=REF(CLOSE,2);
Var17:=REF(Var16,1) AND CLOSE=REF(CLOSE,1) AND CLOSE=REF(CLOSE,2);
Var18:=REF(Var17,1) AND CLOSE=REF(CLOSE,1) AND CLOSE=REF(CLOSE,2);
Var19:=REF(VarD OR VarE OR VarF OR Var10 OR Var11 OR Var12 OR Var13 OR
Var14 OR Var15 OR Var16 OR Var17 OR Var18,1) AND Var1;
DRAWTEXT(Var19,L,'B'),colorwhite;
Var1A:=REF(Var1 OR Var2 OR Var3 OR Var4 OR Var5 OR Var6 OR Var7 OR
Var8 OR Var9 OR VarA OR VarB OR VarC,1) AND VarD;
DRAWTEXT(Var1A,H*1.02,'S'),coloryellow;
ma3:MA(C,3),colorfff000;
ma6:MA(C,6),colorff99ff;
ma9:MA(C,9),color00ff00;
qs1:=IF(CMA(C,4),1,0);
qs2:=IF(CMA(C,4),-1,0);
qs3:=IF(MA(C,5)REF(MA(C,5),1),1,0);
qs4:=IF(MA(C,5)REF(MA(C,5),1),-1,0);
qs:=qs1+qs2+qs3+qs4;
STICKLINE((qs=-2 AND CO),H,L,0,0),Color00FF00;
STICKLINE((qs=-2 AND CO),OPEN,CLOSE,10,0),Color007900;
STICKLINE((qs=-2 AND CO),OPEN,CLOSE,8,1),Color00A200;
STICKLINE((qs=-2 AND CO),OPEN,CLOSE,4,0),Color00D600;
STICKLINE((qs=-2 AND CO),OPEN,CLOSE,2,0),Color00FF00;
STICKLINE((qs=-2 AND CO),H,L,0,0),Color53A9FF;
STICKLINE((qs=-2 AND CO),O,C,10,0),Color003E7B;
STICKLINE((qs=-2 AND CO),O,C,8,1),Color0053A6;
STICKLINE((qs=-2 AND CO),O,C,4,0),Color006AD5;
STICKLINE((qs=-2 AND CO),O,C,2,0),Color2492FF;
STICKLINE((qs=0 AND CO),H,L,0,0),ColorFFFFFF;
STICKLINE((qs=0 AND CO),O,C,10,0),ColorBBBBBB;
STICKLINE((qs=0 AND CO),O,C,8,1),ColorCACACA;
STICKLINE((qs=0 AND CO),O,C,4,0),ColorF6F6F6;
STICKLINE((qs=0 AND CO),O,C,2,0),ColorFFFFFF;
STICKLINE((qs=0 AND CO),H,L,0,0),Color00FFFF;
STICKLINE((qs=0 AND CO),O,C,10,0),Color008888;
STICKLINE((qs=0 AND CO),O,C,8,1),Color00BFBF;
STICKLINE((qs=0 AND CO),O,C,4,0),Color00DBDB;
STICKLINE((qs=0 AND CO),O,C,2,0),Color00F0F0;
STICKLINE((qs=2 AND CO),H,L,0,0),ColorFF00FF;
STICKLINE((qs=2 AND CO),O,C,10,0),ColorBB00BB;
STICKLINE((qs=2 AND CO),O,C,8,1),colorFF5BFF;
STICKLINE((qs=2 AND CO),O,C,4,0),colorF900F9;
STICKLINE((qs=2 AND CO),O,C,2,0),ColorFF66FF;
STICKLINE((qs=2 AND CO),H,L,0,0),Color0000FF;
STICKLINE((qs=2 AND CO),O,C,10,0),Color00007B;
STICKLINE((qs=2 AND CO),O,C,8,1),Color000097;
STICKLINE((qs=2 AND CO),O,C,4,0),Color0000C4;
STICKLINE((qs=2 AND CO),O,C,2,0),Color0000EC;
AC:=AMOUNT/(VOL);
YY:=MA(AC,13);
LLL:=(C-YY)/YY*100;
MIDC := MA(CLOSE,21);
UPPERC:= MIDC + 2*STD(C,21);
LOWERC:= MIDC – 2*STD(C,21);
BBA:=(C-LOWERC)/(UPPERC-LOWERC);
BBC:=FORCAST(BBA,3);
LIFENGCYC:=(REF(LLL,1)-15 AND REF(BBA,1)0 AND LLLREF(LLL,1));
STICKLINE(LIFENGCYC0,C,O,2,0),COLOR10ABFF;
STICKLINE(LIFENGCYC0,C,O,1.5,0),COLOR10D0FF;
STICKLINE(LIFENGCYC0,C,O,1,0),COLOR10FFFF;
DRAWTEXT(LIFENGCYC0,LOW*0.99,'☆'),colorffffff;
LC:=REF(CLOSE,1);
RSI:=((SMA(MAX((CLOSE – LC),0),3,1) / SMA(ABS((CLOSE – LC)),3,1)) * 100);
DRAWTEXT(CROSS(88,RSI),(HIGH * 1.02),'逃'),ColorFFFFFF;
来势线: EMA(CLOSE,7)-EMA(CLOSE,21),coloryellow;
福星: EMA(来势线,7), COLORSTICK,colorred;
VAR1:=CLOSE/REF(LLV(LOW,35),5) 1;
决策: IF(VAR1,0.5,0), STICK,coloryellow;
必买: IF(TROUGHBARS(3,15,1)=0 AND HIGHLOW+0.01,1,-1),coloryellow ,LINETHICK1 ;
必卖: IF(PEAKBARS(3,15,1)=1,1,2),colorwhite,LINETHICK1;
趋势线: (EMA(WINNER(CLOSE),7)-EMA(WINNER(CLOSE),35))*5,colorred;
逃顶线: EMA(CLOSE/REF(HHV(CLOSE,7),50),1),COLOR00FF00 ,LINETHICK1 ;
评论(0)