分时黄金分割视觉盛宴介绍
分时黄金分割视觉盛宴
{分时分割}
日牛熊线:EMA(C,120),ColorFF0080,LINETHICK2;
最新:C,Color00FF00,LINETHICK2;
AA:=SUM(AMOUNT,BARSCOUNT(C))/SUM(VOL*100,BARSCOUNT(C));
BB:=BETWEEN(C/AA,C+H,C-H);
partline(最新,最新>=ref(最新,1),rgb(255,0,0),最新<ref(最新,1),rgb(0,255,0)),linethick2;
DRAWTEXT(BARSTATUS=2 AND 最新>REF(最新,1),最新,' 我赢涨↑'+NUMTOSTRn(最新,2)),Color0000FF;
DRAWTEXT(BARSTATUS=2 AND 最新<REF(最新,1),最新,' 跌↓'+NUMTOSTRn(最新,2)),Color00FF00;
XDLR:=IF(AMOUNT*(DYNAINFO(95)+DYNAINFO(94)+DYNAINFO(93))>0,SUM(((AMOUNT-AMOUNT*(DYNAINFO(95)+DYNAINFO(94)+DYNAINFO(93)))/10000),0),0);
XDLC:=IF(AMOUNT*(DYNAINFO(98)+DYNAINFO(97)+DYNAINFO(96))>0,SUM(((AMOUNT-AMOUNT*(DYNAINFO(98)+DYNAINFO(97)+DYNAINFO(96)))/10000),0),0);
DRAWTEXTABS(200,265,'上涨家数:'+NUMTOSTRN(DYNAINFO(69),0)+' 家'),LINETHICK2,COLOR0000FF;
DRAWTEXTABS(320,265,'下跌家数:'+NUMTOSTRN(DYNAINFO(70),0)+' 家'),LINETHICK2,COLOR00FF00;
DRAWTEXTABS(440,265,'平盘家数:'+NUMTOSTRN(DYNAINFO(71),0)+' 家'),LINETHICK2,COLORFFFFFF;
n:=76;{可调参数,取决于窗口大小的补偿}
x:=BARPOS-hhv(if(DISPSTATUS=1,BARPOS,0),0)+1;
hh:=hhv(h,x); ll:=llv(l,x); hl:=hh-ll;
a76:=.764*hl+ll;a61:=.618*hl+ll;a38:=.382*hl+ll;
a23:=.236*hl+ll; a5:=.5*hl+ll;
DRAWTEXTREL(0,0,'最高 ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄' ),Color00FF00,linethick2;
DRAWTEXTREL(0,560+n,'最低______________________________________________________________________________________________________________________________________________________________________'),Color00FF00,linethick2;
DRAWTEXTREL(0,(560+n)/2,'中轴=================================================================================='),Color00FFFF,linethick2;
DRAWTEXTREL(0,0.618*(560+n),'▼-------------------------------------------------------------------------------'),Color00FF00,linethick2;
DRAWTEXTREL(0,0.382*(560+n),'▲-------------------------------------------------------------------------------'),Color00FF00,linethick2;
DRAWTEXTREL(0,0.128*(560+n),'压力-------------------------------------------------------------------------------'),ColorFFFF00,linethick2;
DRAWTEXTREL(0,0.880*(560+n),'支撑-------------------------------------------------------------------------------'),ColorFFFF00,linethick2;
{分时图中引用5日、10日均线}
MA5:="MAB.MA5#day";
MA10:="MAB.MA10#day";
{计算均线在分时图中占位}
MA5P:=(MA5-DYNAINFO(3))/DYNAINFO(3)*100;
MA10P:=(MA10-DYNAINFO(3))/DYNAINFO(3)*100;
{设置是否显示标志}
zt:=1.1*DYNAINFO(3);
dt:=0.9*DYNAINFO(3);
MA5S:=MA5>dt and MA5<zt;
MA10S:=MA10>dt and MA10<zt;
{显示日线值及参数注解}
DRAWTEXTREL( 800,10,' 5日线: '+NUMTOSTRN(MA5,2)+'元 '+NUMTOSTRN(MA5P,1)+'%'),colorwhite;
DRAWTEXTREL( 800,50 ,'10日线: '+NUMTOSTRN(MA10,2)+'元 '+NUMTOSTRN(MA10P,1)+'%'),Color00FFFF;
gd16959