通达信公式源码概况:
指标类别:通达信公式
授权方式: 免费版
指标评级: ★★★★★
指标分类: 策略
画线方法: 副图
一、通达信经典量价指标公式
RV:=(CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100;
RG:=(CLOSE-LLV(LOW,5))/(HHV(HIGH,5)-LLV(LOW,5))*100;
J0:=(HIGH+LOW)/2;QJ:=EMA(J0,3);J1:=IF(CLOSE>QJ,VOL,0);J2:=IF(CLOSE<QJ,VOL,0);
量能:IF(CAPITAL<1,MA(VOL,74),MA(SUM(J1-J2,22),3)),COLOR00DDDD,NODRAW;
趋势:IF(CAPITAL<1,EMA(量能,360),EMA(量能,21)),COLOR008800,NODRAW;
VAR3:=(量能-趋势);VAR4:=SMA(RV,3,1);
VAR5:=SMA(VAR4,3,1);
STICKLINE(VAR3>0,100,50,10,0),COLOR990099;
STICKLINE(VAR3<0,0,50,10,0),COLOR008800;
DRAWICON(CROSS(VAR4,VAR5)ANDVAR5<30,2,1);
DRAWICON(CROSS(VAR5,VAR4)ANDVAR5>30,97,2);
DRAWBAND(VAR5,RGB(0,22,224),VAR4,RGB(255,50,50));
KK:EMA(SMA(RG,3,1),2),COLORFFFFFF;DD:SMA(KK,3,1),COLOR00FFFF;
DRAWTEXT(CROSS(VAR4,VAR5)ANDCROSS(KK,DD),10,'共振点'),COLOR00FFFF;
共振点:=(CROSS(VAR4,VAR5)ANDCROSS(KK,DD));
STICKLINE(共振点>0,0,100,0,0),COLORYELLOW;
A:=EMA(EMA(AMOUNT/10000000,5),10);
N1:=A;
【最高】:N1,LINETHICK;
【最低】:N1,LINETHICK;
【收盘】:N1,LINETHICK;
【开盘】:REF(【收盘】,1),LINETHICK;
STICKLINE(【收盘】>【开盘】,【最高】,【最低】,0,0),COLOR0000FF;
STICKLINE(【收盘】>【开盘】,【收盘】,【开盘】,2,0),COLOR0000FF;
STICKLINE(【收盘】<【开盘】,【收盘】,【开盘】,2,0),COLOR00FF00;
STICKLINE(【收盘】<【开盘】,【最高】,【最低】,0,0),COLOR00FF00;
均量10:MA(A,10),LINETHICK2;
{均量10:MA(A,10),colorwhite,LINETHICK2;}
{IF(均量10>REF(均量10,1),均量10,DRAWNULL),colorred,LINETHICK2;
IF(均量10<REF(均量10,1),均量10,DRAWNULL),colorgreen,LINETHICK2;}
B:=【收盘】>【开盘】;
D:=【收盘】<【开盘】;
DRAWTEXT(ISLASTBARANDB,【最高】,'-量增'),colormagenta;
DRAWTEXT(ISLASTBARANDD,【最高】,'-量缩'),coloryellow;
F:=EMA(EMA(C,5),10);
N2:=F;
【收盘1】:=N2;
【开盘1】:=REF(【收盘1】,1);
G:=【收盘1】>【开盘1】;
I:=【收盘1】<【开盘1】;
DRAWTEXT(ISLASTBARANDG,【最低】*0.90,'-价涨'),colormagenta;
DRAWTEXT(ISLASTBARANDI,【最低】*0.90,'-价跌'),coloryellow;
K:=BANDG;
DRAWTEXT(K,【最低】*0.90,'▲'),colormagenta;
P:=DANDG;
DRAWTEXT(P,【最低】*0.90,'●'),coloryellow;
多头:STICKLINE((CLOSE>MA(CLOSE,30)),0,VOL,3,1),colorred;
空头:STICKLINE((CLOSE<MA(CLOSE,30)),0,VOL,3,1),colorgreen;
AL1:=MA(VOL,5);AL2:=MA(VOL,18);AL3:=MA(VOL,110);
MID:MA(VOL,20),colorwhite;
饱和:MID+2*STDP(V,20),coloryellow;LLW:=MID-2*STDP(V,20);
量能突变:V+REF(V,1)>=(REF(V,2)+REF(V,3)+REF(V,4)+REF(V,5)+REF(V,6))/5*3ANDV<2*REF(V,1)ANDC>OANDC>MA(C,21),COLORFF00FF;STICKLINE(量能突变,2*V/3,V,3,0),COLORFF00FF;
量价配合:REF(V,1);MAX(MA(V,5),MAX(MA(V,10),MA(V,20)))ANDV<2*REF(V,1)ANDCROSS(C,MA(C,21));STICKLINE(量价配合,V/3,2*V/3,3,0),coloryellow;STICKLINE(V=LLV(V,15),0,V,3,0),colorwhite;
量价突破:C>=HHV(C,15)ANDV>=HHV(V,15),COLOR00FFFF;STICKLINE(量价突破,0,V/3,3,0),COLOR00FFFF;MV1:=EMA(V,9);MV2:=EMA(V,34);{FILLRGN(MV1,MV2,MV1>MV2,RGB(255,255,0),MV1<MV2,RGB(0,255,255));};
Var1:=SMA(AMOUNT,19,3)/60000;
Var2:=MA(REF(CLOSE,1),5)/60000;
Var3:=Var1*CLOSE/Var2/5700000;
Var4:=Var3;
Var5:=REF(Var4,1);
Var6:=REF(Var4,2);
Var5,,COLORBLACK;
Var6,,COLORBLACK;
Var7:=REF(Var4,3);
Var8:=REF(Var4,4);
Var9:=REF(Var4,5);
VarA:=REF(Var4,6);
VarB:=REF(Var4,7);
VarC:=REF(Var4,8);
VarD:=REF(Var4,9);
VarE:=REF(Var4,10);
VarF:=REF(Var4,11);
Var10:=REF(Var4,12);
Var11:=REF(Var4,13);
Var12:=REF(Var4,14);
Var13:=REF(Var4,15);
Var14:=REF(Var4,16);
Var15:=REF(Var4,17);
Var16:=REF(Var4,18);
Var17:=REF(Var4,19);
Var18:=REF(Var4,20);
Var19:=REF(Var4,21);
Var1A:=REF(Var4,22);
Var1B:=REF(Var4,23);
Var1C:=REF(Var4,24);
Var1D:=REF(Var4,25);
Var1E:=REF(Var4,26);
Var1F:=REF(Var4,27);
Var20:=REF(Var4,28);
Var21:=REF(Var4,29);
Var22:=REF(Var4,30);
Var23:=REF(Var4,31);
Var24:=REF(Var4,32);
Var25:=REF(Var4,33);
Var26:=REF(Var4,34);
Var27:=REF(Var4,35);
Var28:=REF(Var4,36);
Var29:=REF(Var4,37);
Var2A:=REF(Var4,38);
Var2B:=REF(Var4,39);
Var2C:=REF(Var4,40);
Var2D:=REF(Var4,41);
Var2E:=REF(Var4,42);
Var2F:=REF(Var4,43);
Var30:=REF(Var4,44);
Var31:=REF(Var4,45);
Var32:=REF(Var4,46);
Var33:=REF(Var4,47);
Var34:=REF(Var4,48);
Var35:=REF(Var4,49);
Var36:=REF(Var4,50);
Var37:=IF(Var4>Var5ANDVar5>=Var6,1,IF(Var4<=Var6,-1,IF(Var4>Var6ANDVar6>Var5,2,IF(Var4
Var38:=IF(Var5>Var6ANDVar5>Var7,1,IF(Var5Var7ANDVar6>Var8,2,IF(Var6Var8ANDVar7>Var9,3,IF(Var7Var9ANDVar8>VarA,4,IF(Var8VarAANDVar9>VarB,5,IF(Var9VarBANDVarA>VarC,6,IF(VarAVarCANDVarB>VarD,7,IF(VarBVarDANDVarC>VarE,8,IF(VarCVarEANDVarD>VarF,9,IF(VarDVarFANDVarE>Var10,10,IF(VarEVar10ANDVarF>Var11,11,IF(VarFVar11ANDVar10>Var12,12,IF(Var10Var12ANDVar11>Var13,13,IF(Var11Var13ANDVar12>Var14,14,IF(Var12Var14ANDVar13>Var15,15,IF(Var13Var15ANDVar14>Var16,16,IF(Var14Var16ANDVar15>Var17,17,IF(Var15Var17ANDVar16>Var18,18,IF(Var16Var18ANDVar17>Var19,19,IF(Var17Var19ANDVar18>Var1A,20,IF(Var18Var1AANDVar19>Var1B,21,IF(Var19Var1BANDVar1A>Var1C,22,IF(Var1AVar1CANDVar1B>Var1D,23,IF(Var1BVar1DANDVar1C>Var1E,24,IF(Var1CVar1EANDVar1D>Var1F,25,IF(Var1DVar1FANDVar1E>Var20,26,IF(Var1EVar20ANDVar1F>Var21,27,IF(Var1FVar21ANDVar20>Var22,28,IF(Var20Var22ANDVar21>Var23,29,IF(Var21Var23ANDVar22>Var24,30,IF(Var22Var24ANDVar23>Var25,31,IF(Var23Var25ANDVar24>Var26,32,IF(Var24Var26ANDVar25>Var27,33,IF(Var25Var27ANDVar26>Var28,34,IF(Var26Var28ANDVar27>Var29,35,IF(Var27Var29ANDVar28>Var2A,36,IF(Var28Var2AANDVar29>Var2B,37,IF(Var29Var2BANDVar2A>Var2C,38,IF(Var2AVar2CANDVar2B>Var2D,39,IF(Var2BVar2DANDVar2C>Var2E,40,IF(Var2CVar2EANDVar2D>Var2F,41,IF(Var2DVar2FANDVar2E>Var30,42,IF(Var2EVar30ANDVar2F>Var31,43,IF(Var2FVar31ANDVar30>Var32,44,IF(Var30Var32ANDVar31>Var33,45,IF(Var31Var33ANDVar32>Var34,46,IF(Var32Var34ANDVar33>Var35,47,IF(Var33Var35ANDVar34>Var36,48,IF(Var34
Var39:=REF(Var3,1)/5700000;
Var3A:=(Var3-REF(Var3,1))/REF(Var3,1)*100;
Var3B:=Var1*OPEN/Var2/5700000;
最高:Var1*HIGH/Var2/5700000,,COLORBLACK;
最低:Var1*LOW/Var2/5700000,,COLORBLACK;
趋势生命线:EMA(Var3,13),,COLORGREEN;
★蓄势★:STICKLINE((Var37=1ORVar37=2)ANDVar38<0,Var6,Var5,9,0),,COLORYELLOW;
带量上涨:STICKLINE(Var37=2,Var6,Var4,9,0),,COLORRED;
多头:STICKLINE(Var37=1ORVar38>=1ANDVar37=0,Var5,Var4,9,0),,COLOR33CCFF;
★多翻空变盘★:STICKLINE((Var37=-1ORVar37=-2)ANDVar38>0,Var6,Var5,9,0),,COLORFF6633;
空头:STICKLINE(Var37=-2,Var6,Var4,9,0),,COLORWHITE;
VAR1:=(2*CLOSE+HIGH+LOW)/4;
VAR2:=LLV(LOW,34);
VAR3:=HHV(HIGH,34);
运钞专列:EMA((VAR1-VAR2)/(VAR3-VAR2)*100,13);
和谐一号:=EMA(0.667*REF(运钞专列,1)+0.333*运钞专列,2);
众赢一号:和谐一号;
X1:STICKLINE(CROSS(运钞专列,20)AND和谐一号<运钞专列,运钞专列+19,运钞专列-10,4,1),COLORRED;
X2:DRAWTEXT(CROSS(运钞专列,20)AND和谐一号<运钞专列,运钞专列-5,'众赢贵宾建仓'),
LINETHICK3,COLORMAGENTA;
金砖:STICKLINE(和谐一号<运钞专列,运钞专列,和谐一号,2.5,1),COLORRED;
瓦砾:STICKLINE(和谐一号>运钞专列,运钞专列,和谐一号,2.5,1),COLORBLUE;
选股:=CROSS(运钞专列,30)AND和谐一号<运钞专列;
一叉:DRAWICON(CROSS(运钞专列,和谐一号),和谐一号,5);
二叉:DRAWICON(CROSS(和谐一号,运钞专列),和谐一号,15);
指标公式知识:
T线形成头部的意义
【T线】的收盘价为当日的最高价,在很多书中,被解释为多方能量较强,股价还会继续上升。那么T线会不会出现在头部呢?
T线表现为开盘后,空方有过较强的打压,股价比开盘价低了许多,收盘前多方发力,将股价推高到开盘价处。从这个情况来看,开盘的位置很重要,如果,开盘价仅略比昨日的收盘价高,短线获利盘的压力又不很大,那么,在理论上就不应该有很长的下影线,除非这个股已经有较长时间的涨势,累计了不少中线和长线的获利盘,这时如果获利回吐,那渐进式上升过程中形成的头部T线,渐进式上升过程中头部T线的特点是:
(1)跳空高开的幅度小,上升乏力;
(2)短期获利盘不大,但中长期获利盘较大;
(3)一般情况下,这一类T线头部的下跌速度也是渐进的,直到跌破60日平均线后,才可能出现加速度下跌。
对于渐进式上升T线,留给我们的出货时间还是挺多的,但在股价跌破60日平均线后必须清仓!
如果是激进型的庄家,他可不会那么好心,他们会在指数条件较好的情况下,把股价快速拉高,一旦有买入单蜂拥而入,他们就反手做空,收盘前再拉回去收T线。在T线处买入的人,短期损失惨重。
么股价就会回落,即使收盘前又涨上去,形成T线,也已经是强弩之末。
还有一种T线是上影线和一字线的组合,这种T线应该称为“倒T线”。
倒T线的走势比T线要弱,毕竟T线还有尾盘的拉高,而倒T线则是拉高后一路出货,收盘在最低所形成。
小结:无论是【T线】还是【倒T线】,只要出现在股价的相对高位,就应该怀疑是不是头部到了,特别对于巨量T线更应该注意。只要后期不能再创新高,反转下跌,那么就基本可判定为头部区间,如果再跌破60日均线,则不必再有怀疑了!
每日通达信公式解答:
编写条件:
K线上最后1根阴线的收盘价向右画横线的公式。
编写方法:
AA:=CONst(BArslAST(C<O));
BB:=CONST(REF(C,AA));
STICKLINE(CURRBARSCOUNT<=AA+1,BB,BB,-1,0),COLORYELLOW;
评论(0)