通达信公式源码概况:
指标类别:通达信公式
授权方式: 免费版
指标评级: ★★★★★
指标分类: 策略
画线方法: 副图
一、通达信倍量柱主图指标公式
DRAWGBK(C>0,STRIP(RGB(0,150,130),RGB(0,0,0),1));
VERTLINE(HHV(H,5)>=REF(HHV(H,5),1),1),POINTDOT,color808080;
{时间窗}
VERTLINE(BARSLAST(L=LLV(L,240))=30,1),COLORWHITE,POINTDOT;
VERTLINE(BARSLAST(L=LLV(L,240))=60,1),COLORWHITE,POINTDOT;
VERTLINE(BARSLAST(L=LLV(L,240))=90,1),COLORWHITE,POINTDOT;
VERTLINE(BARSLAST(L=LLV(L,240))=120,1),COLORWHITE,POINTDOT;
VERTLINE(BARSLAST(L=LLV(L,240))=150,1),COLORWHITE,POINTDOT;
VERTLINE(BARSLAST(L=LLV(L,240))=180,1),COLORWHITE,POINTDOT;
VERTLINE(BARSLAST(L=LLV(L,240))=210,1),COLORWHITE,POINTDOT;
VERTLINE(BARSLAST(L=LLV(L,240))=2400,1),COLORWHITE,POINTDOT;
{拾金图}
SSL:=EMA(C,3);
MMV:=EMA(((SLOPE(C,22)*20)+C),55);
MM:=(IF(((DATATYPE>5)AND(DATATYPE<9)),MA(MMV,1),IF((DATATYPE=5),MA(MMV,4),IF((DATATYPE=4),MA(MMV,8),IF((DATATYPE=3),MA(MMV,16),IF((DATATYPE=2),MA(MMV,32),0))))));
STICKLINE(((SSL>MM)),SSL,MM,0.1,0),colorred;
SA:=(MM*0.985);
SS:=(MA(C,5));
DD:=(MA(C,13));
GG:=(MA(C,21));
捞钱手:IF(((SSL>MM)),MM,SA),LINETHICK2,colorFF00FF;
V2Y:=(((C-REF(C,1))/REF(C,1))*100);
V3Y:=(((C-REF(O,29))/REF(O,29))*100);
V4Y:=REF(C,1);
V5Y:=((SMA(MAX((C-V4Y),0),6,1)/SMA(ABS((C-V4Y)),6,1))*100);
V6Y:=((SMA(MAX((C-V4Y),0),12,1)/SMA(ABS((C-V4Y)),12,1))*100);
V7Y:=((SMA(MAX((C-V4Y),0),24,1)/SMA(ABS((C-V4Y)),24,1))*100);
V8Y:=(((C-LLV(L,45))/(HHV(H,45)-LLV(L,45)))*100);
V9Y:=SMA(V8Y,3,1);
VAY:=SMA(V9Y,3,1);
VBY:=((3*V9Y)-(2*VAY));
VCY:=(CROSS(V5Y,10)AND(V3Y<(0-(28*20))));
VDY:=((100-CROSS(76,V5Y))AND(V3Y>(5*20)));
DRAWICON(((CROSS(76,V5Y)AND(V3Y>5))),(H*1.01),5),colorFFFFFF;
VEY:=((((CROSS(V9Y,VAY)AND(VAY<10))AND(V3Y<(0-30)))AND(V2Y>3))*30);
VFY:=-((((VAY<11)AND(V5Y<15))AND(V3Y<(0-26)))*10);
DRAWICON((CROSS(VFY,(0-9))),(L*0.998),4);
能量线:=DMA(((C+O)/2),(V/(SMA(V,4,1)*4)));
上开:=o;
上收:=c;
上高:=h;
上低:=l;
JJ:=(上开+上高+上低)/3;
A:=EMA(JJ,4);
B:REF(A,1),POINTDOT,ColorYellow;
智能黄金线:A,ColorYellow,LINETHICK1;
STICKLINE(((SSL<MM)),捞钱手,智能黄金线,0.1,0),COLORCYAN;
VA1:=EMA(上收,8);
VA2:=EMA(上收,20);
DRAWTEXT(CROSS(VA2,VA1),VA1*1.10,'止损'),ALIGN1,ColorYellow;
DRAWTEXT(CROSS(VA1,VA2)AND(C>=O)AND智能黄金线>REF(智能黄金线,1),VA1*0.98,'★买入'),COLOR00FF00;
选手A:=MA(上收,3);
箱顶A:=MA(REF(HHV(上收,6),1),3);
箱底A:=MA(REF(LLV(上收,3),1),3);
t1:=MA(上收,20)>=REF(MA(上收,20),1);
t2:=CROSS(选手A,箱底A)AND箱顶A/箱底A>100/100ANDt1;
t3:=CROSS(箱顶A,选手A)AND箱顶A/箱底A>100/100;
选手:=MA(上收,2);
箱顶:MA(REF(HHV(上收,30),1),2),COLOR0000FF,LINETHICK2;
箱底:MA(REF(LLV(上收,30),1),2),COLOR00FF00,LINETHICK2;
t4:=CROSS(选手,箱底)AND箱顶/箱底>110/100;
t5:=CROSS(箱顶,选手)AND箱顶/箱底>110/100;
V1:=(上收-LLV(上低,27))/(HHV(上高,27)-LLV(上低,27))*100;
V2:=SMA(V1,3,1);
V3:=SMA(V2,3,1);
V4:=SMA(V3,3,1);
DRAWTEXT(V3>=V4andBARSTATUS=2,箱顶,'–中期好'),COLOR00FFFF;
DRAWTEXT(V3<V4andBARSTATUS=2,箱顶,'–中期坏'),COLORf0f000;
DRAWTEXT(A>BandBARSTATUS=2,箱底,'–短期好'),COLOR00FFFF;
DRAWTEXT(A<BandBARSTATUS=2,箱底,'–短期坏'),COLORf0f000;
mms:=ma(sma((l+h+2*c)/4-ref((l+h+2*c)/4,1),5,1)/sma(abs((l+h+2*c)/4-ref((l+h+2*c)/4,1)),5,1)*100,1)+50;
g1:=if(-mms>95,0,20);
uoo:=(-(((C-LLV(C,7))/(HHV(C,7)-LLV(C,7))*100=100)>0andg1)+1);
DRAWTEXT(CROSS(V3,V4)AND(C>=O)ANDV3<40ANDuoo>0,箱底,'★'),ALIGN0,COLORf00ff0;
DRAWTEXT(CROSS(V4,V3)ANDV4>75,箱顶*1.03,'★减磅'),COLORf0f000;
{K线}
STICKLINE(C>=O,C,O,7,0),COLORRED;
STICKLINE(C>=O,C,O,4,0),COLORB0B0FF;
STICKLINE(C>=O,C,O,2,0),ColorYellow;
STICKLINE(C>=O,H,L,0,0),ColorYellow;
STICKLINE(C<=O,C,O,7,0),colorFFAA00;
STICKLINE(C<=O,C,O,4,0),COLORCYAN;
STICKLINE(C<=O,C,O,2,0),COLORCYAN;
STICKLINE(C<=O,H,L,0,0),COLORCYAN;
{K线卖提示}
Qc0:=3*SMA((C-LLV(L,27))/(HHV(H,27)-LLV(L,27))*100,5,1)-2*SMA(SMA((C-LLV(L,27))/(HHV(H,27)-LLV(L,27))*100,5,1),3,1);
stickline(Qc0>=91AND(C-LLV(C,5))/(HHV(C,5)-LLV(C,5))*100>99.9,O,C,3,0),COLOR3366FF;
stickline(Qc0>=91AND(C-LLV(C,5))/(HHV(C,5)-LLV(C,5))*100>99.9,H,L,0.5,0),COLOR3366FF;
{K线超卖提示}
SQ1:=SMA(MAX(C-REF(C,2),0),7,1)/SMA(ABS(C-REF(C,2)),7,1)*100;
SQ2:=SMA(MAX(C-REF(C,1),0),7,1)/SMA(ABS(C-REF(C,1)),7,1)*100;
CM1:=IF(SQ1<12,30,0);
CM2:=IF(SQ2<12,30,0);
Zb1:=(C-LLV(C,10))/(HHV(C,10)-LLV(C,10))*100;
A01:=SMA(ABS((L-REF(L,1))),3,1)/SMA(MAX((L-REF(L,1)),0),3,1)*100;
A02:=EMA(IF(C*1.3,A01*10,A01/10),3);
A03:=LLV(L,30);
A04:=HHV(A02,30);
A05:=EMA(IF((L<=A03),(A02+A04*2)/2,0),3)/6180*2.5;
A06:=IF((A05>15),15,A05);
Kx:=if(A06>=1.7,-20,0);
Zy:=MA(((C-MA(C,6))/MA(C,6)*100+2*(C-MA(C,12))/MA(C,12)*100+3*(C-MA(C,24))/MA(C,24)*100)/6,3);
Zy1:=IF(Zy<-6,-20,0);
KS:=(((C-SMA(C,13,1))/SMA(C,13,1))*(0-100));
RKS:=REF(KS,1);
MLS:=((((RKS/KS)>1.23)AND(RKS>13))AND((C/REF(C,1))>1.03));
{超卖一}STICKLINE(CM1andIF(KxandwandZy1,-16,10)<0,L,L*0.998,7,0),Color0089FF{超卖一:橙};
{超卖二}STICKLINE(IF(KxandwandZy1,-16,10)<0andCM1,L*0.998,L*0.996,7,0),COLORgreen{超卖二:绿};
{超跌}STICKLINE(CM1andIF(KxandwandZy1,-16,10)<0AND(KS>13),L*0.996,L*0.994,7,0),ColorYellow{超跌};
{反弹}STICKLINE((MLS=1),L,L*0.998,7,0),ColorFFFF00;
{K线买提示}
趋势线:=FORCAST(C,7);
Fk:=100*(C-REF(C,1))/REF(C,1);
pk1:=IF(C<REF(O,1)ANDfk<0,1,0);
pk2:=IF(C<REF(O,2)ANDfk<0,1,0);
pk3:=(((C/O)>1.04)AND(C<(SMA(H,21,2)*1.05)))AND((C-REF(C,1))>0);
stickline((Pk1=0ANDREF(Pk1,1)=1ANDPk2=0ANDREF(Pk2,1)=1),O,C,3,0),COLORMAGENTA;
stickline((Pk1=0ANDREF(Pk1,1)=1ANDPk2=0ANDREF(Pk2,1)=1),H,L,0.5,0),COLORMAGENTA;
STICKLINE(pk3AND(趋势线>REF(趋势线,1)OR智能黄金线>REF(智能黄金线,1)),C,O,3,0),COLORMAGENTA;
STICKLINE(pk3AND(趋势线>REF(趋势线,1)OR智能黄金线>REF(智能黄金线,1)),H,L,0.5,0),COLORMAGENTA;
买进价:=((c-ref(ma(c,6),1))/6+ma(c,6))*1.004;
买进条件:=cross(c,买进价)and买进价>ref(买进价,1);
STICKLINE(买进条件AND捞钱手>智能黄金线AND智能黄金线>REF(智能黄金线,1),L,L*0.998,7,0),COLORWHITE;
买线:=EMA(C,2);
卖线:=EMA(SLOPE(C,21)*20+C,42);
DRAWTEXT(cross(买线,卖线)AND箱顶>=REF(箱顶,1),箱底,'★'),ALIGN0,color00ffff;
stickline(cross(买线,卖线),O,C,3,0),color00ffff;
stickline(cross(买线,卖线),h,l,0.5,0),color00ffff;
A4:=MA(C,20);
A5:=(C>MA(C,5));
A6:=(MA(C,5)>MA(C,10));
A7:=(C>MA(C,10));
A8:=(MA(C,5)>MA(C,20));
A9:=(C>MA(C,20));
A10:=REF(A4,1);
A11:=(A4>A10);
AVX:=(((((IF(A5,10,(0-10))+IF(A6,10,(0-10)))+IF(A7,10,(0-10)))+IF(A8,10,(0-10)))+IF(A9,10,(0-10)))+IF(A11,10,(0-10)));
DSLX:=(C/INDEXC);
DSLX1:=MA(DSLX,5);
DSLX2:=MA(DSLX,10);
V1:=MA(V,5);
V2:=MA(V,10);
阻力位:=IF((C>200),(C*1.01),(C*1.07));
阻力位1:=IF((C<10),(C*1.05),阻力位);
止损位:=IF((C>200),(C*0.99),(C*0.93));
止损位1:=IF((C<10),(C*0.95),止损位);
TJTS1:=BARSTATUS=2andc<200;
TJTS2:=BARSTATUS=2andc>200;
k2:=hhv(h,barslast(DISPSTATUS=1)+1);
DRAWTEXT(TJTS1orTJTS2,k2*0.99,'阻力位:'+NUMTOSTRN(阻力位1,2)+''),ColorYellow,ALIGN2;
DRAWTEXT(TJTS1orTJTS2,k2*0.99,'止损位:'+NUMTOSTRN(止损位1,2)+''),ColorYellow,ALIGN2;
DRAWTEXT(TJTS1and((CROSS(AVX,1)AND(V1>=V2))AND(DSLX>=DSLX1)),k2*0.99,'该股的量能理想,有明显走强迹象,可以考虑中线进场参与,仓位在2/3左右。'),ALIGN2,color0000FF;
DRAWTEXT(TJTS1and((CROSS(AVX,1)AND(V1<V2))AND(DSLX>=DSLX1)),k2*0.99,'该股虽然走势趋强,但量能还显不足,可以考虑短线进场,仓位在1/2左右。'),ALIGN2,color0000FF;
DRAWTEXT(TJTS1and((CROSS(AVX,1)AND(V1>V2))AND(DSLX<DSLX1)),k2*0.99,'该股量价配合良好,但相对其它股票并没有明显走强,可以考虑短线进场,仓位1/2左右。'),ALIGN2,color0000FF;
DRAWTEXT(TJTS1and((CROSS(AVX,1)AND(V1<=V2))AND(DSLX<DSLX1)),k2*0.99,'该股形态尚可,但量能不足,股票也未完全走强,可以短线参与,仓位1/3左右。'),ALIGN2,color0000FF;
DRAWTEXT(TJTS1and((CROSS(1,AVX)AND(V1>=V2))AND(DSLX>=DSLX1)),k2*0.99,'该股形态变坏,但走势相对其它股票尚可,重仓者减持大半,清仓者可以观望。'),ALIGN2,color00FF00;
DRAWTEXT(TJTS1and((CROSS(1,AVX)AND(V1<V2))AND(DSLX>=DSLX1)),k2*0.99,'该股随大盘一起下跌,程明显缩量走势,考虑到大盘风险,减持或清仓。'),ALIGN2,color00FF00;
DRAWTEXT(TJTS1and((CROSS(1,AVX)AND(V1>=V2))AND(DSLX<DSLX1)),k2*0.99,'该股放量下跌,走势明显偏弱,离场观望。'),ALIGN2,color00FF00;
DRAWTEXT(TJTS1and((CROSS(1,AVX)AND(V1<V2))AND(DSLX<DSLX1)),k2*0.99,'该股缩量下跌,走势偏弱,离场观望。'),ALIGN2,color00FF00;
DRAWTEXT(TJTS1and((((AVX>=1)AND(REF(AVX,1)>0))AND(V1>=V2))AND(DSLX>=DSLX1)),k2*0.99,'该股形态良好,强势明显,量能充足,可以继续持有。'),ALIGN2,color00FFFF;
DRAWTEXT(TJTS1and((((AVX>=1)AND(REF(AVX,1)>0))AND(V1<V2))AND(DSLX>=DSLX1)),k2*0.99,'该股上行趋势不变,强势依然,但量能开始转弱,注意风险。'),ALIGN2,color00FFFF;
DRAWTEXT(TJTS1and((((AVX>=1)AND(REF(AVX,1)>0))AND(V1>=V2))AND(DSLX<DSLX1)),k2*0.99,'该股仍然具备上涨潜力,但股性偏弱,可考虑减仓。'),ALIGN2,color00FFFF;
DRAWTEXT(TJTS1and((((AVX>=1)AND(REF(AVX,1)>0))AND(V1<V2))AND(DSLX<DSLX1)),k2*0.99,'该股走势趋弱,量能不足,减持大部分筹码。'),ALIGN2,color00FFFF;
DRAWTEXT(TJTS1and((((AVX<1)AND(REF(AVX,1)<0))AND(V1>=V2))AND(DSLX>=DSLX1)),k2*0.99,'该股形态不佳,注意成交量的变化,但目前不适合参与。'),ALIGN2;
DRAWTEXT(TJTS1and((((AVX<1)AND(REF(AVX,1)<0))AND(V1<V2))AND(DSLX>=DSLX1)),k2*0.99,'该股趋势不明,股价偏弱,注意量能变化,目前不宜参与。'),ALIGN2;
DRAWTEXT(TJTS1and((((AVX<1)AND(REF(AVX,1)<0))AND(V1>=V2))AND(DSLX<DSLX1)),k2*0.99,'该股有走强迹象,但量能不足,趋势不明,不适合操作。'),ALIGN2;
DRAWTEXT(TJTS1and((((AVX<1)AND(REF(AVX,1)<0))AND(V1<V2))AND(DSLX<DSLX1)),k2*0.99,'该股走势太弱,没有参与价值。'),ALIGN2;
DRAWTEXT(TJTS2and(CROSS(AVX,1)AND(V1>=V2)),k2*0.99,'大盘量能理想,有明显走强迹象,可以考虑中线进场参与,仓位在2/3左右,'),ALIGN2,color0000FF;
DRAWTEXT(TJTS2and(CROSS(AVX,1)AND(V1>=V2)),k2*0.98,'如前期经过一轮下跌,此时为最佳买点,但如果前期有过一段涨幅则介入需谨慎。'),ALIGN2,color0000FF;
DRAWTEXT(TJTS2and(CROSS(AVX,1)AND(V1<V2)),k2*0.99,'大盘虽然走势趋强,但量能还显不足,如果前期经过一轮下跌,'),ALIGN2,color0000FF;
DRAWTEXT(TJTS2and(CROSS(AVX,1)AND(V1<V2)),k2*0.98,'可以考虑短线进场,仓位在1/2左右,一旦量能放大可以加仓买入。'),ALIGN2,color0000FF;
DRAWTEXT(TJTS2and(CROSS(1,AVX)AND(V1>=V2)),k2*0.99,'大盘形态走坏,重仓者可以减去大部分仓位。'),ALIGN2,color00FF00;
DRAWTEXT(TJTS2and(CROSS(1,AVX)AND(V1<V2)),k2*0.99,'大盘缩量调整,注意风险,短线清仓观望。'),ALIGN2,color00FF00;
DRAWTEXT(TJTS2and(((AVX>=1)AND(REF(AVX,1)>0))AND(V1>=V2)),k2*0.99,'大盘走势良好,量能理想,可以继续持有强势股。'),ALIGN2,color00FFFF;
DRAWTEXT(TJTS2and(((AVX>=1)AND(REF(AVX,1)>0))AND(V1<V2)),k2*0.99,'大盘形态良好,但量能稍显不足,随时准备减仓。'),ALIGN2,color00FFFF;
DRAWTEXT(TJTS2and(((AVX<1)AND(REF(AVX,1)<0))AND(V1>=V2)),k2*0.99,'大盘趋势不明,注意成交量变化,目前不适宜进场。'),ALIGN2;
DRAWTEXT(TJTS2and(((AVX<1)AND(REF(AVX,1)<0))AND(V1<V2)),k2*0.99,'大盘趋势向下,量能萎缩,不适合进场。'),ALIGN2;
BB:=LLV(L,1);
中浪:FORCAST(FORCAST(BB,55),55),COLORGREEN;
大浪:FORCAST(FORCAST(BB,89{原式80}),89{原式80}),COLORRED;
AC:FORCAST(MA(LLV(C,1),3),3),COLORYELLOW,MOVE1{,SHIFT1};
DRAWTEXT_FIX(CURRBARSCOUNT=60,0.02,0.01,0,'====★flowersfairyBeautifullegend★===='),colorwhite;
DRAWTEXT_FIX(CURRBARSCOUNT=60,0.4,0.01,0,'====★☆QQ:1853609925☆花仙女★★===='),colorred;
n=10;
HSL0:=100*vol/(FINANCE(7)/100),VOLstICK;
HSL:100*VOL/(FINANCE(7)/100),VOLSTICK;
换手:100*VOL/(FINANCE(7)/100),NODRAW;
换手5日:ma(换手,5),NODRAW;
换手10日:MA(换手,10),NODRAW;
换手20日:MA(换手,20),NODRAW;
VOLUME:VOL,VOLSTICK;
g:COUNT(CLOSE>REF(CLOSE,1),2)=2ANDCOUNT(VOL<REF(VOL,1),2)=2;
STICKLINE(g,0,V,1,0),colorgreen;
DRAWTEXT(g,VOL+3000,'降'),colorgreen;
M:=IF(N=1,IF(MOD(FROMOPEN,1)=0,1,
MOD(FROMOPEN,1)),IF(N=5,IF(MOD(FROMOPEN,5)=0,5,
MOD(FROMOPEN,5)),IF(N=15,IF(MOD(FROMOPEN,15)=0,15,
MOD(FROMOPEN,15)),IF(N=30,IF(MOD(FROMOPEN,30)=0,30,
MOD(FROMOPEN,30)),IF(N=60,IF(MOD(FROMOPEN,60)=0,60,
MOD(FROMOPEN,60)),IF(N=240,FROMOPEN,DRAWNULL))))));
虚量:IF(CURRBARSCOUNT=1,V*N/M,DRAWNULL),NODRAW,colorwhite;
启5:=MA(V,5),colorwhite,LINETHICK1;
洗35:=MA(V,35),coloryellow,LINETHICK1;
异135:=MA(V,135),colormagenta,LINETHICK1;
股价:VOL,VOLSTICK;
短3:xma(XMA(股价,3),3),LINETHICK0,colorwhite;
短5:XMA(XMA(股价,5),5),LINETHICK0,colorwhite;
短6:XMA(XMA(股价,6),6),LINETHICK0,colorwhite;
短中2:(短3+短5+短6)/3,LINETHICK0,coloryellow;
短底2:短中2*0.7,LINETHICK0,colorwhite;
短7:XMA(XMA(股价,8),8),LINETHICK0,colorwhite;
短8:XMA(XMA(股价,10),10),LINETHICK0,colorwhite;
短9:XMA(XMA(股价,12),12),LINETHICK0,colorwhite;
短中3:(短7+短8+短9)/3,LINETHICK0,colorwhite;
短顶3:短中3*1.3,LINETHICK0,colorgreen;
短底3:短中3*0.7,LINETHICK0,colorgreen;
中1:XMA(XMA(股价,16),16),LINETHICK0,colorwhite;
中2:XMA(XMA(股价,19),19),LINETHICK0,colorwhite;
中3:XMA(XMA(股价,22),22),LINETHICK0,colorwhite;
中4:XMA(XMA(股价,25),25),LINETHICK0,colorwhite;
中5:XMA(XMA(股价,28),28),LINETHICK0,colorwhite;
中6:XMA(XMA(股价,31),31),LINETHICK0,colorwhite;
中中2:(中1+中2+中3+中4+中5+中6)/6,LINETHICK0,colorgreen;
中顶2:中中2*1.4,LINETHICK0,colorgreen;
中底2:中中2*0.6,LINETHICK0,colorgreen;
VOLUME:VOL,VOLSTICK;
g:COUNT(CLOSE>REF(CLOSE,1),2)=2ANDCOUNT(VOL<REF(VOL,1),2)=2;
STICKLINE(g,0,V,1,0),colorgreen;
DRAWTEXT(g,VOL+6000,'降'),colorgreen;
预定黄金柱:DRAWICON(REF(V,2)>=REF(V,3)*1.99ANDREF(C,2)>REF(O,2)AND
REF(V,2)=HHV(V,3)ANDC/REF(C,2)>=1.0995ANDREF(L,2)=LLV(L,3),V,1);
AA:=VOL>=REF(V,1)*1.91ANDC>REF(C,1);
STICKLINE(AA,0,V,3,0),coloryellow;
T:=DYNAINFO(8)>0;
VO:VOL=LLV(VOL,100)ANDT;
地量柱:TANDVO,colorblue;
STICKLINE(地量柱,0,V,1,0),colorblue;
DRAWTEXT(地量柱,VOL+25000,'地'),colormagenta;
BLZ:=VOL>REF(V,1)*1.9;
BLZ1:=VOL<REF(LLV(VOL,13),1);
BLZ2:=VOL<REF(LLV(VOL,55),1);
STICKLINE(BLZ,0,V,1,0),coloryellow;
倍量柱:BLZ,coloryellow;
DRAWTEXT(倍量柱,VOL+20000,'倍'),coloryellow;
HJZ:=(3*C+H+L+O)/6;
HJZ2:=(8*HJZ+7*REF(HJZ,1)+6*REF(HJZ,2)+5*REF(HJZ,3)+4*REF(HJZ,4)+3*REF(HJZ,5)+2*REF(HJZ,6)+REF(HJZ,8))/36;
HJZ3:=VOL=HHV(VOL,10)ANDVOL>2*REF(VOL,1)ANDCLOSE>HJZ2ANDC>O;
黄金柱:FILTER(HJZ3,5),STICK,colorred,LINETHICK4;
STICKLINE(黄金柱,0,V,1,0),colorred;
DRAWTEXT(黄金柱,VOL+45000,'黄'),colorred;
价涨量缩:g,colorgreen;
FLZ:=V>REF(V,1)*0.98ANDV<REF(V,1)*1.02,LINETHICK0;
STICKLINE(FLZ,0,V,1,0),colormagenta;
DRAWTEXT(FLZ,VOL+4000,'平'),colormagenta;
平量柱:FLZ,colormagenta;
倍缩:V<=REF(V,1)*0.5,NODRAW,colorwhite;
STICKLINE(倍缩,0,V,1,0),colorwhite;
DRAWTEXT(倍缩,VOL+8000,'缩'),colorwhite;
短柱:=C/REF(C,1)<=0.96ANDV<HHV(V,30)/1.9;
DRAWTEXT(短柱,VOL+15000,'!短柱'),colorlicyan;
TJ:=C<O;
TJ1:=C>REF(C,1)ANDTJ;
TJ2:=AMOUNT/V/100>REF(C,1)ANDO>REF(C,1)ANDNOT(TJ1)ANDTJ;
STICKLINE(TJ1,VOL,0,-1,0),colormagenta;
STICKLINE(TJ2,VOL,0,-1,0),colorlired;
DRAWTEXT(TJ1,VOL+30000,'!假阴真阳'),colorred,LINETHICK9;
DRAWTEXT(TJ2,VOL+25000,'!假阴真阳'),coloryellow;
VOLUME:VOL,VOLSTICK;主力启动线:MA(VOLUME,5),COLORRED,LINETHICK2;主力洗盘线:MA(VOLUME,35),COLORYELLOW,LINETHICK2;资金异动线:MA(VOLUME,135),COLORBLUE,LINETHICK2;出击:STICKLINE(CROSS(主力启动线,资金异动线)OR((主力洗盘线>资金异动线)ANDCROSS(主力启动线,主力洗盘线)),0,VOL,2,0),COLORYELLOW;启动:STICKLINE(主力启动线>REF(主力启动线,1)AND(CROSS(VOL,主力启动线)AND(REF(VOL,1)<REF(资金异动线,1)ORREF(VOL,2)<REF(资金异动线,2))),0,VOL,3,0),COLORGREEN;V1:=CLOSE/REF(CLOSE,3)>=1.1;V2:=BACKSET(V1,2);V3:=REF(CLOSE,3)*1.1;V4:=CROSS(C,V3);OK:STICKLINE((V2ANDCOUNT(V2,2)=1),VOL,0,2,0),COLORRED;COND:(CROSS(主力启动线,资金异动线)OR((主力洗盘线>资金异动线)ANDCROSS(主力启动线,主力洗盘线)))OR(主力启动线>REF(主力启动线,1)AND(CROSS(VOL,主力启动线)AND(REF(VOL,1)<REF(资金异动线,1)ORREF(VOL,2)<REF(资金异动线,2))))OR(V2ANDCOUNT(V2,2)=1),LINETHICK0;A:=MA(-100*(HHV(HIGH,34)-CLOSE)/(HHV(HIGH,34)-LLV(LOW,34)),19);B:=-100*(HHV(HIGH,14)-CLOSE)/(HHV(HIGH,14)-LLV(LOW,14));D:=EMA(-100*(HHV(HIGH,34)-CLOSE)/(HHV(HIGH,34)-LLV(LOW,34)),4);长期线:=A+100;短期线:=B+100;中期线:=D+100;见顶:=((REF(中期线,1)>85ANDREF(短期线,1)>85ANDREF(长期线,1)>65)ANDCROSS(长期线,短期线));顶部区域:=(中期线<REF(中期线,1)ANDREF(中期线,1)>80)AND(REF(短期线,1)>95ORREF(短期线,2)>95)AND长期线>60AND短期线<83.5AND短期线<中期线AND短期线<长期线+4;顶部:=FILTER(顶部区域,4);STICKLINE({见顶OR}顶部,VOL,VOL*1.1,20,1),COLORBLUE,LINETHICK2;VAR6:=REF(CLOSE,1);VAR7:=SMA(MAX(CLOSE-VAR6,0),6,1)/SMA(ABS(CLOSE-VAR6),6,1)*100;STICKLINE(CROSS(84,VAR7),VOL,VOL*1.05,20,1),COLOR0099FF,LINETHICK2;均势一:=(((((((((CLOSE+REF(CLOSE,1))+REF(CLOSE,2))+REF(CLOSE,3))+REF(CLOSE,4))+REF(CLOSE,5))+REF(CLOSE,6))+REF(CLOSE,7))+REF(CLOSE,8))/9);均势二:=((((CLOSE+REF(CLOSE,1))+REF(CLOSE,2))+REF(CLOSE,3))/4);趋势一:=((((均势一-REF(均势一,1))/REF(均势一,1))*1000)+50);趋势二:=((((均势二-REF(均势二,1))/REF(均势二,1))*1000)+50);波段高位:=(CROSS(趋势一,趋势二)AND(COUNT((CLOSE>REF(HIGH,1)),12)>5));STICKLINE(波段高位,VOL,VOL*1.08,20,1),COLORGREEN,LINETHICK2;
[源码注释]通达信公式动态翻译结果
输出GV:以收盘价计算的获利盘比例*100, 画红色,STICK
输出CV: 100-GV的3日指数移动平均*(-1),STICK,画青色
输出MGV:GV的9日简单移动平均,线宽为2,画红色
输出MCV:CV的13日简单移动平均 ,线宽为2,画绿色
输出DIFF:MGV+MCV,线宽为4,画洋红色
输出力量对比:GV+CV,画白色,线宽为2
100
输出买点:最近3日存在DIFF上穿0ANDDIFF>1日前的DIFF*40,线宽为3
20,画黄色,线宽为1
每日通达信公式解答:
编写要求:
今日收盘价大于昨天最高价选股。
公式在线网解答:
去除ST股:=EXIST((C-REF(C,1))/REF(C,1)*100>5.6,100);
LTP:=CAPITAL<10000000;
C>REF(H,1)AND去除ST股ANDLTP;
评论(0)