大智慧波段趋势指标公式
主力持仓:EMA(100*(CLOSE- LLV(LOW,34))/(HHV(HIGH,34)-LLV(LOW,34)),3),colorff00ff,linethick2;
指数趋势:
EMA(100*(INDEXC-LLV(INDEXL,34))/(HHV(INDEXH,34)-LLV(INDEXL,34)),3),COLORFFAA66,LINETHICK3;
强弱分界: 80,coloryellow;
主力线:WINNER(C)*100 ,COLORRED,linethick2;
散户线:(WINNER(C*1.1)-WINNER(C*0.9))*100 ,colorgreen,linethick2;
B:=crOSS(主力线,散户线);
D:=主力线>强弱分界;
主力强入:=B AND D;
stICKLINE( 主力强入,主力强入,80,2,0),COLORFFAA00,LINETHICK5;
DRAWTEXT(主力强入,80,'(主力)'),COLORFFAA00,LINETHICK3;
DIFF:=EMA(CLOSE,12)-EMA(CLOSE,26);
DEA:=EMA(DIFF,9);
macd:=2*(DIFF-DEA);
主力潜伏中:COUNT(MacD<0,10)=10,COLORRED,LINETHICK0;
{指标网-股票公式网站 www.zhibiaow.com}
STICKLINE(主力潜伏中,0,MACD*80,8,0),COLORF00FF0;
100,COLOR1C1C1C;
0,COLOR1C1C1C;
-100,COLOR1C1C1C;
-100,STICK,COLOR1C1C1C;
zz:=(hhv(h,3)+llv(l,3))/2;a:=if(c>zz,vol,0);b:=if(c<zz,VOL,0);总0:= (a-b);
bbd:EMA(总0,3)/sum(vol,5)*100,LINETHICK0;
STICKLINE(BBD>=0,0,BBD,8,0),COLOR000088;
STICKLINE(BBD>=0,0,BBD,5,0),COLOR0000AA;
STICKLINE(BBD>=0,0,BBD,3,0),COLOR0000CC;
STICKLINE(BBD>=0,0,BBD,1,0),COLOR0000FF;
STICKLINE(BBD<0,0,BBD,8,0),COLOR888800;
STICKLINE(BBD<0,0,BBD,5,0),COLORAAAA00;
STICKLINE(BBD<0,0,BBD,3,0),COLORCCCC00;
STICKLINE(BBD<0,0,BBD,1,0),COLORFFFF00;
XH1:=ref(bbd,1)<ref(bbd,2) and ref(bbd,1)<-10 and bbd>ref(bbd,1) and bbd>0;
XH2:=ref(bbd,1)>=ref(bbd,2) and ref(bbd,1)>8 and bbd<ref(bbd,1) and bbd<0;
DRAWICON(XH1,-25,4);DRAWICON(XH2,25,5);
DRAWTEXTAbs(380,200,'证券代码: '+STKLABEL+' 证券名称: '+STKNAME+''),Color0000ff,LINETHICK3;