通达信指标公式源码概况:
指标类别: 通达信指标公式
授权方式: 免费版
指标评级: ★★★★★
指标分类: 策略
画线方法: 副图
一、超牛龙头指标公式
VAR2:=1/WINNER(CLOSE);
VAR3:=MA(CLOSE,13);
VAR4:=100-ABS((CLOSE-VAR3)/VAR3*100);
VAR5:=LLV(LOW,75);
VAR6:=HHV(HIGH,75);
VAR7:=(VAR6-VAR5)/100;
VAR8:=SMA((CLOSE-VAR5)/VAR7,20,1);
VAR9:=SMA((OPEN-VAR5)/VAR7,20,1);
VARA:=3*VAR8-2*SMA(VAR8,15,1);
VARB:=3*VAR9-2*SMA(VAR9,15,1);
VARC:=100-VARB;
拉升资金:MA(WINNER(CLOSE*0.95)*100,3),COLORYELLOW,;
新庄建仓:(100-IF(VAR2>5,IF(VAR2<100,VAR2,VAR4-10),0)),COLORGREEN,;
VARD:=拉升资金>VAR4;
VARE:=REF(LOW,1)*0.9;
VARF:=LOW*0.9;
VAR10:=(VARF*VOL+VARE*(CAPITAL-VOL))/CAPITAL;
VAR11:=EMA(VAR10,30);
VAR12:=CLOSE-REF(CLOSE,1);
VAR13:=MAX(VAR12,0);
VAR14:=ABS(VAR12);
VAR15:=SMA(VAR13,7,1)/SMA(VAR14,7,1)*100;
VAR16:=SMA(VAR13,13,1)/SMA(VAR14,13,1)*100;
VAR17:=BARSCOUNT(CLOSE);
VAR18:=SMA(MAX(VAR12,0),6,1)/SMA(ABS(VAR12),6,1)*100;
VAR19:=(-200)*(HHV(HIGH,60)-CLOSE)/(HHV(HIGH,60)-LLV(LOW,60))+100;
VAR1A:=(CLOSE-LLV(LOW,15))/(HHV(HIGH,15)-LLV(LOW,15))*100;
VAR1B:=SMA((SMA(VAR1A,4,1)-50)*2,3,1);
VAR1C:=(INDEXC-LLV(INDEXL,14))/(HHV(INDEXH,14)-LLV(INDEXL,14))*100;
VAR1D:=SMA(VAR1C,4,1);
VAR1E:=SMA(VAR1D,3,1);
VAR1F:=(HHV(HIGH,30)-CLOSE)/CLOSE*100;
VAR20:=VAR18<=25ANDVAR19<-95ANDVAR1F>20ANDVAR1B<-30ANDVAR1E<30
ANDVAR11-CLOSE>=-0.25ANDVAR15<22ANDVAR16<28ANDVAR17>50;
VAR21:=(HIGH+LOW+CLOSE)/3;
VAR22:=(VAR21-MA(VAR21,14))/(0.015*AVEDEV(VAR21,14));
VAR23:=(VAR21-MA(VAR21,70))/(0.015*AVEDEV(VAR21,70));
VAR24:=IF(VAR22>=150ANDVAR22<200ANDVAR23>=150ANDVAR23<200,10,0);
VAR25:=IF(VAR22<=-150ANDVAR22>-200ANDVAR23<=-150AND
VAR23>-200,-10,VAR24);
过中轴线注意:(IF(VAR23>=200ANDVAR22>=150,15,IF(VAR23<=-200AND
VAR22<=-150,-15,VAR25))+50),COLORCC9900,LINETHICK3,CROSSDOT;
STICKLINE(VARD,VAR4,拉升资金,5,0),;
STICKLINE(1,拉升资金,0,1,0),COLORYELLOW,COLOR00AAFF;
STICKLINE(1,新庄建仓,100,1,0),COLORGREEN,;
STICKLINE(VAR20,0,80,5,0),COLORRED,LINETHICK3;
DRAWTEXT(CROSS(VAR20,0.5)ANDCOUNT(VAR20=1,10)=1,60,'有钱不赚是傻蛋!
'),COLORYELLOW,LINETHICK2;
DRAWTEXT(CROSS(VARD,0.5)ANDCOUNT(VARD=1,10)=1,70,'赚钱我走啦!
'),,COLORGREEN;
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;
二、超牛龙头主图指标公式
Z1:=STRCAT(HYBLOCK,'');
Z2:=STRCAT(Z1,DYBLOCK);
Z3:=STRCAT(Z2,'');
DRAWTEXT_FIX(ISLASTBAR,0,0,0,STRCAT(Z3,GNBLOCK)),COLORRED;
ZK1:(XMA(XMA(H,25),25)-XMA(XMA(L,25),25))*1+XMA(XMA(H,25),25),DOTLINE,COLORBLUE;
ZD1:XMA(XMA(L,25),25)-(XMA(XMA(H,25),25)-XMA(XMA(L,25),25))*1,LINETHICK2,COLORRED;
ZD2:EMA(ZD1,25),LINETHICK2;
DRAWBAND(ZD1,RGB(55,0,0),ZD2,RGB(0,91,0));
DRAWKLINE(H,O,L,C);
STICKLINE(ZD1>LOWAND
ZD1MIN(C,O)AND
ZD1
STICKLINE(ZD1>HIGH,OPEN,CLOSE,2,0),COLORYELLOW;
STICKLINE(ZD1>HIGH,HIGH,LOW,0,0),COLORYELLOW;
VAR23:=100*XMA(XMA((C-REF(C,1)),6),6)/XMA(XMA(ABS((C-REF(C,1))),6),6);
回调买:=LLV(VAR23,2)=LLV(VAR23,7)ANDCOUNT(VAR23<0,2)ANDCROSS(VAR23,MA(VAR23,2));
XG:=ZD1>HIGHAND回调买ANDL<=ZD1;
DRAWTEXT(XG,L,'▲买⼊'),COLORRED;
JJ:=(HIGH+LOW+CLOSE)/3;
QJ0:=VOL/IF(HIGH=LOW,4,HIGH-LOW);
QJ1:=IF(CAPITAL=0,QJ0*(JJ-MIN(CLOSE,OPEN)),QJ0*IF(HIGH=LOW,1,(MIN(OPEN,CLOSE)-LOW)));
QJ2:=IF(CAPITAL=0,QJ0*(MIN(OPEN,CLOSE)-LOW),QJ0*IF(HIGH=LOW,1,(JJ-MIN(CLOSE,OPEN))));
QJ3:=IF(CAPITAL=0,QJ0*(HIGH-MAX(OPEN,CLOSE)),QJ0*IF(HIGH=LOW,1,(HIGH-MAX(OPEN,CLOSE))));
QJ4:=IF(CAPITAL=0,QJ0*(MAX(CLOSE,OPEN)-JJ),QJ0*IF(HIGH=LOW,1,(MAX(CLOSE,OPEN)-JJ)));
DDX:=((QJ1+QJ2)-(QJ3+QJ4))/IF(CAPITAL=0,10000,10000),COLOR00AAAA,LINETHICK;
V2:=SMA(IF(C>=REF(C,1),DDX,-DDX/100),2,1);
V5:=SMA(V2*120/FROMOPEN*5,2,1);
V10:=SMA(V5,5,1);
V20:=SMA(V10,5,1);
DY:=CURRBARSCOUNT=1ANDC
DY2:=REF(V2,1)-DY;
XG2:=C>OANDDY2<0.02ANDMA(C,5)>MA(C,60)ANDC/REF(C,1)>=1.02ANDH
{DRAWTEXT(XG2,L,'▲抓⽜'),COLORYELLOW;}
DRAWTEXT(XG2ANDL
超B:=L2_AMO(0,2)/10000.0;
⼤B:=L2_AMO(1,2)/10000.0;
中B:=L2_AMO(2,2)/10000.0;
⼩B:=L2_AMO(3,2)/10000.0;
超S:=-L2_AMO(0,3)/10000.0;
⼤S:=-L2_AMO(1,3)/10000.0;
中S:=-L2_AMO(2,3)/10000.0;
⼩S:=-L2_AMO(3,3)/10000.0;
TESTSKIP(NOT(超BOR⼤BOR中BOR⼩BOR超SOR⼤SOR中SOR⼩S)!=0);
净流⼊:=(超B+⼤B+中B+⼩B)+(超S+⼤S+中S+⼩S);
⼤宗净流⼊:=(超B+⼤B)+(超S+⼤S);
超⼤单:=(超B)+(超S);
⼤单:=(⼤B)+(⼤S);
中单:=(中B)+(中S);
⼩单:=(⼩B)+(⼩S);
⼤宗进:=(超B)+(⼤B);
⼤宗出:=(超S)+(⼤S);
⾮⼤宗进:=(中B)+(⼩B);
⾮⼤宗出:=(中S)+(⼩S);
资⾦流向:=(超B+⼤B+中B+⼩B)+(超S+⼤S+中S+⼩S);
近5⽇流向:=SUM(资⾦流向,5);
近10⽇流向:=SUM(资⾦流向,10);
主⼒资⾦
线:=(L2_AMO(0,0)+L2_AMO(1,0)-L2_AMO(0,1)-L2_AMO(1,1))/100.0,LINETHICK2;
主⼒买⼒度:=LARGEINTRDVOL*100/VOL;
主⼒卖⼒度:=LARGEOUTTRDVOL*100/VOL;
AAB:=CONST(MAX(ABS(超⼤单),MAX(ABS(⼤单),MAX(ABS(中单),ABS(⼩单))))),NODRAW;
DRAWRECTREL(5,CONST(830-(ABS(超⼤
单)*500/AAB))/2,35,460,IF(CONST(超⼤
单)>0,RGB(255,0,255),RGB(0,255,255)));
DRAWRECTREL(40,CONST(830-(ABS(⼤单)*500/AAB))/2,70,460,IF(CONST(⼤单)>0,RGB(255,0,255),RGB(0,255,255)));
DRAWRECTREL(75,CONST(830-(ABS(中单)*500/AAB))/2,105,460,IF(CONST(中单)>0,RGB(255,0,255),RGB(0,255,255)));
DRAWRECTREL(110,CONST(830-(ABS(⼩单)*500/AAB))/2,140,460,IF(CONST(⼩单)>0,RGB(255,0,255),RGB(0,255,255)));
DRAWTEXT_FIX(CURRBARSCOUNT=1,0.007,0.46,0,'超户⼤户中户散
户'),COLORWHITE;
DRAWNUMBER_FIX(CURRBARSCOUNT=1,0.007,0.4,0,INTPART(超⼤
单)),COLORWHITE;
DRAWNUMBER_FIX(CURRBARSCOUNT=1,0.042,0.4,0,INTPART(⼤单)),COLORWHITE;
DRAWNUMBER_FIX(CURRBARSCOUNT=1,0.076,0.4,0,INTPART(中单)),COLORWHITE;
DRAWNUMBER_FIX(CURRBARSCOUNT=1,0.112,0.4,0,INTPART(⼩单)),COLORWHITE;
TYX3:=MA(REF(HHV((C+L+O+H)/4,30),1),3);
筹码突破:=C>TYX3
AND(C-REF(C,1))*100/REF(C,1)>=(10-0.01*100/REF(C,1)),COLORRED;
A111:=COST(85);
A222:=COST(15);
A333:=A111-A222;
A444:=(A111+A222)/2;
单峰密集:=A333/A444*100<30,LINETHICK0;
{A5:=A3/A4*100<30;}
B1:=HHV(HIGH,250);
B2:=LLV(LOW,250);
B3:=B1-B2;
B4:=(A444-B2);
低位:=A444<(B3*04+B2),LINETHICK0;
低位单峰密集:=单峰密集AND低位;
B5:=C/REF(C,1)>1.04;{ANDV/REF(V,1)>2;{ANDH=C;}
主⼒持
仓%:=EMA(100*(CLOSE-LLV(LOW,30))/(HHV(HIGH,30)-LLV(LOW,30)),3);
主⼒持仓⼤于75%:=主⼒持仓%>=75{AND主⼒持仓%<=91}ANDC>0ANDCLOSE>OPENANDC=H;
敢死吗:=主⼒持仓⼤于75%AND低位单峰密集ANDB4AND
WINNER(C)>=0.91ANDB5,COLORGREEN,LINETHICK3;
{DRAWTEXT(FILTER(敢死吗=1,5),L,'—-敢死吗'),COLORGREEN;}DRAWICON(FILTER(敢死吗=1,5),L*0.995,25);
DIF1:=EMA(DCLOSE,12)-EMA(DCLOSE,26);
DEA1:=EMA(DIF1,9);
AAA1:=(DIF1-DEA1)*2*60;
AAA上:=IF(AAA1>REF(AAA1,1),AAA1,DRAWNULL);
AAA下:=IF(AAA1
买:=13;
⼊:=AAA1-REF(AAA1,1);
正⼤:=CROSS(⼊,买);
DIF2:=EMA(DCLOSE,10)-EMA(DCLOSE,72);
DEA2:=EMA(DIF2,17);
AAA:=(DIF2-DEA2)*2*60;
⼊2:=AAA-REF(AAA,1);
⽜股:=CROSS(⼊2,13);
正⼤⽜股:=正⼤AND⽜股;
DRAWICON(正⼤⽜股,L*0.99,1);
VAR1:=(CLOSE-MA(CLOSE,7))/MA(CLOSE,7)*100;
VAR2:=(CLOSE-LLV(LOW,21))/(HHV(HIGH,21)-LLV(LOW,21))*100;VAR3:=SMA(VAR2,3,1);
天:=100+(-ABS(VAR1)),COLORRED;
下:=SMA(VAR3,2,1);
⽆:=ABS(VAR1),COLORGREEN;
敌:=50,COLORFFAA00,LINETHICK3;
LC:=REF(CLOSE,1);
操作线:=SMA(MAX(CLOSE-LC,0),2,1)/SMA(ABS(CLOSE-LC),2,1)*100;卖:=CROSS(90,操作线);
DRAWICON(卖,H*1.01,8);
绝底线:=5;
买阴线1:操作线<5ANDZD1>ZD2ANDL
DRAWICON(买阴线1,L*0.98,7);
买阴线2:操作线<5ANDZD1
DRAWICON(买阴线2,L*0.995,7);
DRAWTEXT_FIX(1,0.20,0.88,0,HYBLOCK),COLORGREEN;
DRAWTEXT_FIX(1,0.20,0.94,0,EXTERNSTR(0,3))COLORFF88FF
Var1:=MA((HIGH+LOW+2*CLOSE)/4,5);
Var2:=EMA(Var1,10)-EMA(Var1,30);
Var3:=EMA(Var2,5);
Var4:=(Var2-Var3)*5;
Var5:=IF(Var4<=Var1,Var1,Var4);
动向:=FORCAST(FORCAST(Var5,10),10),LINETHICK1;趋势:IF(Var5>动向,Var5,Var1),COLORYELLOW;
强势:MA(Var1,5),COLORRED;
弱势:=MA(HHV(Var1,10),5),colorwhite;主力:
SMA(CLOSE,10,1),colorffff00;
疯牛:
DMA(MA(CLOSE+REF(CLOSE,5)/CLOSE*0.098,90),VOL),LINETHICK2,COLORRED;
年线:
DMA(MA(CLOSE+REF(CLOSE,5)/CLOSE*0.098,250),VOL),LINETHICK2,POINTDOT,C
OLOR30CC00;
Var6:=EMA(CLOSE,5);
Var7:=EMA(CLOSE,10);
Var8:=EMA(CLOSE,20);
Var9:=EMA(CLOSE,30);
VarA:=EMA(CLOSE,60);
VarB:=EMA(CLOSE,90);
VarC:=EMA(CLOSE,125);
VarD:=EMA(CLOSE,250);
Var10:=1.809*LLV(LOW,250);
Var11:=MA(CLOSE,10)-EMA(CLOSE,10)*100;Var12:=MA(Var11,5);
Var13:=3*(Var12-Var11);
Var14:=((CLOSE-LLV(LOW,20))/(HHV(HIGH,20)-LLV(LOW,20))*200-100)/2-
REF(CLOSE
,5);
Var15:=SMA(SMA(Var14,5,1),5,1);
Var16:=MA(MA(Var15,5),5);
Var17:=3*Var16-5*Var15;
Var18:=EMA(Var17,10);
Var19:=MA(CLOSE,20)/MA(CLOSE,20)-REF(CLOSE,20)/CLOSE*100;
Var1A:=DMA(SMA(EMA(Var19,5),5,1),VOL/REF(VOL,5));
Var1B:=SMA(EMA(Var19,10),5,1);
Var1C:=(-100)*(HHV(HIGH,13)-CLOSE)/(HHV(HIGH,13)-LLV(LOW,13));
Var1D:=(-100)*(HHV(HIGH,8)-CLOSE)/(HHV(HIGH,8)-LLV(LOW,8));
Var1E:=SMA(MAX(MAX(HIGH-LOW,ABS(HIGH-REF(CLOSE,1))),ABS(LOWREF(CLOSE,1))),14,1);
Var1F:=HIGH-REF(HIGH,1);
Var20:=REF(LOW,1)-LOW;
Var21:=SMA(IF(Var1F>0ANDVar1F>Var20,Var1F,0),14,1);
Var22:=SMA(IF(Var20>0ANDVar20>Var1F,Var20,0),14,1);
Var23:=Var21*100/Var1E;
Var24:=Var22*100/Var1E;
Var25:=SMA(ABS(Var24-Var23)/(Var24+Var23)*100,14,1);
Var26:=(Var25+REF(Var25,6))/2;
DRAWTEXT(CROSS(Var13,50)ANDVar6>Var7ANDVar7>Var8ANDVar8>Var9
ANDVar9>VarAANDVarA>VarBANDVarB>VarCANDVarC>VarDAND疯牛>VarD
ANDVar19>Var1AANDVar1A>Var1BANDVar1B>-100ANDVar1C>-20ANDVar1D>-
20AND-30>Var18ANDVar18>Var17AND
Var23>Var25ANDVar25>Var26ANDVar26>Var24,年线,'宝典'),COLORYELLOW;
DRAWTEXT(CROSS(Var13,200)ANDVar6>Var7ANDVar7>Var8ANDVar8>Var9
ANDVar9>VarAANDVarA>VarBANDVarB>VarCANDVarC>VarDANDVarD>年线
AND年线>Var10ANDVar19>Var1AANDVar1A>Var1BANDVar1B>-100AND
Var1C>-20ANDVar1D>-20ANDVar23>Var25AND
Var25>Var26ANDVar26>Var24,年线,'疯牛'),COLORYELLOW;
[源码注释]通达信公式动态翻译结果
DIFF赋值:收盘价的8日指数移动平均-收盘价的13日指数移动平均
DEA赋值:DIFF的5日指数移动平均
A1赋值:DIFF>DEA
输出MACD金叉:如果A1,返回1,否则返回0,画黄色
RSV1赋值:(收盘价-8日内最低价的最低值)/(8日内最高价的最高值-8日内最低价的最低值)*100
K赋值:RSV1的3日[1日权重]移动平均
D赋值:K的3日[1日权重]移动平均
当满足条件K>D时,在2位置画1号图标
当满足条件K<D时,在2位置画2号图标
当满足条件是否最后一个周期=1时,在2位置书写文字,COLORFFFFFF
A2赋值:K>D
输出KDJ金叉:如果A2,返回2,否则返回0,画黄色
LC赋值:1日前的收盘价
RSI1赋值:(收盘价-LC和0的较大值的5日[1日权重]移动平均)/(收盘价-LC的绝对值的5日[1日权重]移动平均)*100
RSI2赋值:(收盘价-LC和0的较大值的13日[1日权重]移动平均)/(收盘价-LC的绝对值的13日[1日权重]移动平均)*100
当满足条件RSI1>RSI2时,在3位置画1号图标
当满足条件RSI1<RSI2时,在3位置画2号图标
当满足条件是否最后一个周期=1时,在3位置书写文字,COLORFFFFFF
A3赋值:RSI1>RSI2
输出RSI金叉:如果A3,返回3,否则返回0,画黄色
RSV赋值:-(13日内最高价的最高值-收盘价)/(13日内最高价的最高值-13日内最低价的最低值)*100
LWR1赋值:RSV的3日[1日权重]移动平均
LWR2赋值:LWR1的3日[1日权重]移动平均
当满足条件LWR1>LWR2时,在4位置画1号图标
当满足条件LWR1<LWR2时,在4位置画2号图标
当满足条件是否最后一个周期=1时,在4位置书写文字,COLORFFFFFF
A4赋值:LWR1>LWR2
输出LWR金叉:如果A4,返回4,否则返回0,画黄色
BBI赋值:(收盘价的3日简单移动平均+收盘价的6日简单移动平均+收盘价的12日简单移动平均+收盘价的24日简单移动平均)/4
当满足条件收盘价>BBI时,在5位置画1号图标
当满足条件收盘价<BBI时,在5位置画2号图标
当满足条件是否最后一个周期=1时,在5位置书写文字,COLORFFFFFF
A5赋值:收盘价>BBI
输出BBI金叉:如果A5,返回5,否则返回0,画黄色
MTM赋值:收盘价-1日前的收盘价
MMS赋值:100*MTM的5日指数移动平均的3日指数移动平均/MTM的绝对值的5日指数移动平均的3日指数移动平均
MMM赋值:100*MTM的13日指数移动平均的8日指数移动平均/MTM的绝对值的13日指数移动平均的8日指数移动平均
当满足条件MMS>MMM时,在6位置画1号图标
当满足条件MMS<MMM时,在6位置画2号图标
当满足条件是否最后一个周期=1时,在6位置书写文字,COLORFFFFFF
A6赋值:MMS>MMM
输出MTM金叉:如果A6,返回6,否则返回0,画黄色
输出涨买入:如果(A1ANDA2ANDA3ANDA4ANDA5ANDA6)ANDREF(A1ANDA2ANDA3ANDA4ANDA5ANDA6,1)=0,返回7,否则返回0,画蓝色,线宽为2
输出上涨:如果A1ANDA2ANDA3ANDA4ANDA5ANDA6,返回7,否则返回0,画蓝色,线宽为2
推荐阅读:超牛龙头趋势判断副图指标
短期:100*(C-LLV(L,5))/(HHV(C,5)-LLV(L,5)),COLORWHITE;
中期:100*(C-LLV(L,10))/(HHV(C,10)-LLV(L,10)),COLORYELLOW;
中长期:100*(C-LLV(L,20))/(HHV(C,20)-LLV(L,20)),COLORMAGENTA;
长期:100*(C-LLV(L,30))/(HHV(C,30)-LLV(L,30)),COLORRED,LINETHICK
2;
强市线:80,POINTDOT;
弱市线:20,POINTDOT;
分水岭:50,POINTDOT;
多空对比四线归一选股公式:用于下跌中的抄底。
短期:=100*(C-LLV(L,5))/(HHV(C,5)-LLV(L,5));
中期:=100*(C-LLV(L,10))/(HHV(C,10)-LLV(L,10));
中长期:=100*(C-LLV(L,20))/(HHV(C,20)-LLV(L,20));
长期:=100*(C-LLV(L,30))/(HHV(C,30)-LLV(L,30));
xg1:短期<6and中期<6and中长期<6and长期<6;
多空对比单针下20选股公式:用于趋势向上股票的逢低买入(阴线买
入)第二天逢低买入。
短期:=100*(C-LLV(L,5))/(HHV(C,5)-LLV(L,5));
中期:=100*(C-LLV(L,10))/(HHV(C,10)-LLV(L,10));
中长期:=100*(C-LLV(L,20))/(HHV(C,20)-LLV(L,20));
长期:=100*(C-LLV(L,30))/(HHV(C,30)-LLV(L,30));
xg1:短期<20AND长期>60;
资金波
动:EMA(100*(C-LLV(LOW,34))/(HHV(H,34)-LLV(LOW,34)),3),POINTDO
T,COLORRED,LINETHICK4;
超强势:84,POINTDOT,COLORMAGENTA;
强势:60,POINTDOT,COLORGREEN;
弱市:35,POINTDOT,COLORWHITE;
用法:结合大盘,下跌后反弹,低点上移时,个股拉出大阳线后可否追
高用。此指标刚进入超强,大阳线不可追高。在牛市中,低点不断上移,
资金波动指标始终在80上下的强势区,这时拉出有大阳线可追高买进。
个股资金
线:MA(C,1)/MA(REF(C,18),18)*100,LINETHICK2,COLOR00FFFF;
资金生命线:MA(FORCAST(个股资金
线,20),6),COLORMAGENTA,LINETHICK2;
四、个股资金生命线副图无误
个股资金
线:MA(C,1)/MA(REF(C,18),18)*100,LINETHICK2,COLOR00FFFF;
资金生命线:MA(FORCAST(个股资金
线,20),6),COLORMAGENTA,LINETHICK2;
五、资金指数,副图:指标在上海股中(600开头的)使用准确无误,
但在深证股(000开头或其它)中应用时,非主流资金一项有差别。我
琢磨此指标是引用了大盘价的原因。在深圳股中原指标可能引用了深证
成指,但一般软件没有这个函数可引用。一般情况下上证和深证基本一
样,所以此指标可以使用。
{资金指数(副图指标)}
主流资金:EMA(100*(C-LLV(LOW,34))/(HHV(H,34)-LLV(LOW,34)),3),
COLORRED,linethick2;
非主流资
金:EMA(100*(INDEXC-LLV(INDEXL,34))/(HHV(INDEXH,34)-LLV(INDEXL
,34)),3),colorgreen,linethick2;
20,pointdot,colorf00ff0;
50,pointdot,colorgreen;
80,pointdot,colorwhite;
指标说明:
该指标是软件的精华所在,可以清楚的看出一只股票中主力及散户的强
弱关系。它由两条趋势线及三条水平线组成,紫色趋势线代表市场主流
金,绿色趋势线代表非主流资金。指标有三条水平线,从上自下数值分
别为80、50、20。80以上为超强区,20以下为超弱区,50为强弱分水
岭(80—50为强势区,50—20为弱势区)。
使用方法:
当主流资金摆脱非主流资金上攻,且上穿50,表示主力在投入资金,股
价上涨。当主流资金在80以上运行一段时间之后,向下穿越80,显示
主力减仓股价可能走弱。
获利了
结:EMA(EMA(EMA(HIGH,5),5),5)*1.15,ColorFFFFFF,linethick1;
风险:EMA(EMA(EMA(HIGH,5),5),5)*1.1,COLORYELLOW;
回档:EMA(EMA(EMA(HIGH,5),5),5)*1.05,Color00FF00;
平衡:EMA(EMA(EMA(HIGH,5),5),5),ColorFF00FF,linethick1;
反弹:EMA(EMA(EMA(HIGH,5),5),5)*0.95,COLORGRAY,linethick1;
超跌:EMA(EMA(EMA(HIGH,5),5),5)*0.9,colorblue,linethick1;
SMA((HHV(HIGH,36)-CLOSE)/(HHV(HIGH,36)-LLV(LOW,36))*100,2,1),
COLORGREEN,LINETHICK3;
做多能量线:
SMA((CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100,5,1)-8,CO
LORRED,LINETHICK3;
20,pointdot,colorf00ff0;
50,pointdot,colorgreen;
80,pointdot,colorwhite;
RSV:=(CLOSE-LLV(LOW,7))/(HHV(HIGH,7)-LLV(LOW,7))*100;
Y0:SMA(RSV,3,1),COLORRED,LINETHICK1;
Y1:SMA(Y0,3,1),COLORYELLOW,LINETHICK1;
RSV1:=(CLOSE-LLV(LOW,38))/(HHV(HIGH,38)-LLV(LOW,38))*100;
Y2:SMA(RSV1,5,1),COLORMAGENTA,LINETHICK2;
Y3:SMA(Y2,10,1),COLORGREEN,LINETHICK2;
18,COLORWHITE;
85,COLORBLUE;
STICKLINE(Y0>Y1,Y0,Y1,6,0),COLORRED;
STICKLINE(Y0<=Y1,Y0,Y1,6,0),COLORYELLOW;
STICKLINE(Y2>Y3,Y2,Y3,6,0),COLORMAGENTA;
STICKLINE(Y2<=Y3,Y2,Y3,6,0),COLORGREEN;
CS:=(CLOSE-LLV(LOW,8))/(HHV(HIGH,8)-LLV(LOW,8))*100;
YJD:(EMA(CS,3)-50)*2;
极弱:-80;
强势:60;
风险:80;
弱势:-60;
YJD,COLORSTICK;
今日保护价:(REF(C,1)+REF(C,2)+O)/3;
VAR1:=REF(CLOSE,1);
VAR2:=SMA(MAX(CLOSE-VAR1,0),6,1)/SMA(ABS(CLOSE-VAR1),6,1)*100;
STICKLINE(CROSS(75.9,VAR2),YJD+5,YJD-5,3,0),COLORYELLOW;
DRAWTEXT(BARSTATUS=2,78,'清仓'),COLORRED;
DRAWTEXT(BARSTATUS=2,60,'减仓'),COLORYELLOW;
DRAWTEXT(BARSTATUS=2,0,'控盘'),COLORWHITE;
DRAWTEXT(BARSTATUS=2,-60,'回补'),COLORGREEN;
DRAWTEXT(BARSTATUS=2,-80,'吸筹'),COLORBLUE;
O1:(SUM(EMA((CLOSE+LOW)/2,1)/3,3)),COLOR00FFFF,LINETHICK1;
O2:EMA(O1,3),COLORFF00FF,LINETHICK1;
O3:EMA(O2,3),COLOR00FF00,LINETHICK1;
MMM:=MA(C,20);
DRAWTEXT((CLOSE<MMM),MMM,'*'),COLOR00FF00,LINETHICK5;
DRAWTEXT((CLOSE>MMM),MMM,'*'),COLOR0000FF,LINETHICK5;
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;
VAR1A:=REF(VAR1ORVAR2ORVAR3ORVAR4ORVAR5ORVAR6ORVAR7OR
VAR8ORVAR9ORVARAORVARBORVARC,1)ANDVARD;
{粉}
STICKLINE(CLOSE<REF(CLOSE,1),HIGH,LOW,0,0),COLOR00DD00;
STICKLINE(CLOSE<REF(CLOSE,1),OPEN,CLOSE,3.2,0),COLORFF33FF;
STICKLINE(CLOSE<REF(CLOSE,1),OPEN,CLOSE,2.7,0),COLORFF55FF;
STICKLINE(CLOSE<REF(CLOSE,1),OPEN,CLOSE,2.1,0),COLORFF77FF;
STICKLINE(CLOSE<REF(CLOSE,1),OPEN,CLOSE,1.5,0),COLORFF99FF;
STICKLINE(CLOSE<REF(CLOSE,1),OPEN,CLOSE,0.9,0),COLORFFBBFF;
STICKLINE(CLOSE<REF(CLOSE,1),OPEN,CLOSE,0.3,0),COLORFFDDFF;
{金}
STICKLINE(CLOSE>REF(CLOSE,1),HIGH,LOW,0,0),COLOR000DDD;
STICKLINE(CLOSE>REF(CLOSE,1),OPEN,CLOSE,3.2,0),COLOR003333;
STICKLINE(CLOSE>REF(CLOSE,1),OPEN,CLOSE,2.7,0),COLOR005555;
STICKLINE(CLOSE>REF(CLOSE,1),OPEN,CLOSE,2.1,0),COLOR007777;
STICKLINE(CLOSE>REF(CLOSE,1),OPEN,CLOSE,1.5,0),COLOR009999;
STICKLINE(CLOSE>REF(CLOSE,1),OPEN,CLOSE,0.9,0),COLOR00BBBB;
STICKLINE(CLOSE>REF(CLOSE,1),OPEN,CLOSE,0.3,0),COLOR00DDDD;
{红}
STICKLINE(VAR1ORVAR2ORVAR3ORVAR4ORVAR5ORVAR6ORVAR7OR
VAR8ORVAR9ORVARAORVARBORVARC,CLOSE,REF(CLOSE,1),3.2,0),COLOR000555;
STICKLINE(VAR1ORVAR2ORVAR3ORVAR4ORVAR5ORVAR6ORVAR7OR
VAR8ORVAR9ORVARAORVARBORVARC,CLOSE,REF(CLOSE,1),2.7,0),COLOR000777;
STICKLINE(VAR1ORVAR2ORVAR3ORVAR4ORVAR5ORVAR6ORVAR7OR
VAR8ORVAR9ORVARAORVARBORVARC,CLOSE,REF(CLOSE,1),2.1,0),COLOR000999;
STICKLINE(VAR1ORVAR2ORVAR3ORVAR4ORVAR5ORVAR6ORVAR7OR
VAR8ORVAR9ORVARAORVARBORVARC,CLOSE,REF(CLOSE,1),1.5,0),COLOR000BBB;
STICKLINE(VAR1ORVAR2ORVAR3ORVAR4ORVAR5ORVAR6ORVAR7OR
VAR8ORVAR9ORVARAORVARBORVARC,CLOSE,REF(CLOSE,1),0.9,0),COLOR000DDD;
STICKLINE(VAR1ORVAR2ORVAR3ORVAR4ORVAR5ORVAR6ORVAR7OR
VAR8ORVAR9ORVARAORVARBORVARC,CLOSE,REF(CLOSE,1),0.3,0),COLOR000FFF;
{绿}
STICKLINE(VARDORVAREORVARFORVAR10ORVAR11ORVAR12ORVAR13OR
VAR14ORVAR15ORVAR16ORVAR17OR
VAR18,CLOSE,REF(CLOSE,1),3.2,0),COLOR005500;
STICKLINE(VARDORVAREORVARFORVAR10ORVAR11ORVAR12ORVAR13OR
VAR14ORVAR15ORVAR16ORVAR17OR
VAR18,CLOSE,REF(CLOSE,1),2.7,0),COLOR007700;
STICKLINE(VARDORVAREORVARFORVAR10ORVAR11ORVAR12ORVAR13OR
VAR14ORVAR15ORVAR16ORVAR17OR
VAR18,CLOSE,REF(CLOSE,1),2.1,0),COLOR009900;
STICKLINE(VARDORVAREORVARFORVAR10ORVAR11ORVAR12ORVAR13OR
VAR14ORVAR15ORVAR16ORVAR17OR
VAR18,CLOSE,REF(CLOSE,1),1.5,0),COLOR00BB00;
STICKLINE(VARDORVAREORVARFORVAR10ORVAR11ORVAR12ORVAR13OR
VAR14ORVAR15ORVAR16ORVAR17OR
VAR18,CLOSE,REF(CLOSE,1),0.9,0),COLOR00DD00;
STICKLINE(VARDORVAREORVARFORVAR10ORVAR11ORVAR12ORVAR13OR
VAR14ORVAR15ORVAR16ORVAR17OR
VAR18,CLOSE,REF(CLOSE,1),0.3,0),COLOR00FF00;
{紫}
STICKLINE(VAR19,REF(CLOSE,1),REF(CLOSE,2),3.2,0),COLOR550055;
STICKLINE(VAR19,REF(CLOSE,1),REF(CLOSE,2),2.7,0),COLOR770077;
STICKLINE(VAR19,REF(CLOSE,1),REF(CLOSE,2),2.1,0),COLOR990099;
STICKLINE(VAR19,REF(CLOSE,1),REF(CLOSE,2),1.5,0),COLORBB00BB;
STICKLINE(VAR19,REF(CLOSE,1),REF(CLOSE,2),0.9,0),COLORDD00DD;
STICKLINE(VAR19,REF(CLOSE,1),REF(CLOSE,2),0.3,0),COLORFF00FF;
{蓝}
STICKLINE(VAR1A,REF(CLOSE,1),REF(CLOSE,2),3.2,0),COLORFF3300;
STICKLINE(VAR1A,REF(CLOSE,1),REF(CLOSE,2),2.7,0),COLORFF5500;
STICKLINE(VAR1A,REF(CLOSE,1),REF(CLOSE,2),2.1,0),COLORFF7700;
STICKLINE(VAR1A,REF(CLOSE,1),REF(CLOSE,2),1.5,0),COLORFF9900;
STICKLINE(VAR1A,REF(CLOSE,1),REF(CLOSE,2),0.9,0),COLORFFBB00;
STICKLINE(VAR1A,REF(CLOSE,1),REF(CLOSE,2),0.3,0),COLORFFDD00;
DRAWICON(VAR19=1,L*0.9998,1);
DRAWICON(VAR1A=1,H*1.0003,2);
{以下为副图源码}{组合副图}
N:=2;
M:=3;
ZLCM:=EMA(WINNER(CLOSE)*70,3);{//主力筹码估算}
SHCM:=EMA((WINNER(CLOSE*1.1)-WINNER(CLOSE*0.9))*80,3);{//散户筹码估算}
ZSHTL:=SHCM/(ZLCM+SHCM)*100;{//散户套牢筹码比率}
ZZLKP:=ZLCM/(ZLCM+SHCM)*100;{//主力控盘筹码比率}
ZCMZL:=MA(ZLCM+SHCM,13);{//市场筹码总量}
ZZNTS:=BARSLAST(ZSHTL<90ANDREF(ZSHTL,1)>90);{//走牛天数}
ZSHJJ:=EMA(ZSHTL,89);{//散户警戒}
ZZLJJ:=EMA(ZZLKP,89);{//主力警戒}
ZJLRQD:=INTPART(ZZLKP-ZZLJJ);{//资金流入强度}
SH8:=EMA(ZSHTL,8)
评论(0)