stickline(c>=o,l,h,0.1,1),color5251ff;
stickline(c>=o,o,c,7,1),color5251ff;
stickline(c<o,l,h,0.1,0),color32e12e;
stickline(c<o,c,o,7,0),color32e12e;
ma5:ma(c,5),colorwhite,LINEDOT;
PARTLINE(MA5>ref(MA5,1),MA5),colorwhite,LINETHICK2;
MA10:MA(CLOSE,10),Color00FFFF,linethicK1;
var1:="chzhshch@kxian";
var2:="chzhshch@bi";
if DATAPERIOD<=1 then
begin var2:="chzhshch@duan";
end;
pre:=2;
if STKTYPE=0 then pre:=1;
if STKTYPE=11 then pre:=3;
a1:=barslast(var2<>0);
a2:=ref(var2,a1);
aa1:=ref(a1+1,1);
aa2:=ref(a2,1);
a3:=if (aa2>0,l-ref(h,aa1),h-ref(l,aa1)),linethick0;
a4:=if (aa2>0,(l-ref(h,aa1))/ref(h,aa1)*100,(h-ref(l,aa1))/ref(l,aa1)*100),linethick0;
drawnumber(var2=1,h,h,pre),pxup45,color3300ff,align0;
drawtext(var2=1,h,'高: '),pxup45,color3300ff,align2;
drawnumber(var2=-1,l,l,pre),pxdn30,colorffff00,align0;
drawtext(var2=-1,l,'低: '),pxdn30,colorffff00,align2;
drawtext(var2=1,h,'+'),colorFF00FF,pxup80,align2;
drawtext(var2=1,h,'幅: '),colorFFFFFF,pxup80,align2;
drawtext(var2=1,h,' %'),colorFFFFFF,pxup80,align1;
drawnumber(var2=1,h,a4,pre),colorff00ff,pxup80;
drawnumber(var2=-1,l,a4,pre),colorgreen,pxdn80,align0;
drawtext(var2=-1,l,' %'),colorwhite,pxdn80,align1;
drawtext(var2=-1,l,'幅: '),colorwhite,pxdn80,align2;
drawtext(var2=1,h,'天: '),pxup65,coloryellow,align2;
drawnumber(var2=1,h,aa1,0),coloryellow,pxup65,align2;
drawtext(var2=-1,l,'天: '),pxdn50,coloryellow,align2;
drawnumber(var2=-1,l,aa1,0),coloryellow,pxdn50,align2;
{www.gUPaNg.com 股旁网_最新股票指标公式}
aa9:=hhv(h,a1);
aa11:=llv(l,a1);
drawnumber( islastbar and a2=-1,aa9,aa9,pre),align2,color3300ff;
drawtext(islastbar and a2=-1,aa9,'高: '),colorwhite,pxdn0,align2;
drawnumber( islastbar and a2=1,aa11,aa11,pre),align2,colorffff00;
drawtext(islastbar and a2=1,aa11,'低: '),colorwhite,pxdn0,align2;
drawtext( islastbar and a2=-1, aa9,'%'),align1,colorffffff,pxdn20;
drawtext( islastbar and a2=-1, aa9,'幅: '),colorwhite,pxdn20,align2;
drawnumber( islastbar and a2=-1, aa9,a4,pre),align2,colorffffff,pxdn20;
drawnumber( islastbar and a2=1, aa11,a4,pre),align2,colorffffff,pxup20;
drawtext( islastbar and a2=1, aa11,'幅: '),align2,colorffffff,pxup20;
drawtext( islastbar and a2=1, aa11,'%'),align1,colorffffff,pxup20;
drawtext( islastbar and a2=-1, aa9,'天: '),coloryellow,align2,pxdn40;
drawnumber(islastbar and a2=-1, aa9,aa1,0),coloryellow,align2,pxdn40;
drawtext( islastbar and a2=1, aa11,'天: '),coloryellow,align2,pxup40;
drawnumber(islastbar and a2=1, aa11,aa1,0),coloryellow,align2,pxup40;
202108211215.jpg
|