飞狐波段幅度主图指标公式

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;
{ _最新股票指标公式}
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;



来函数检测结果如下:
该公式没有未来函数

解密、编写股票、期货策略请联系QQ或微信同号:88652583
相关股票指标公式

联系我们  |  股票指标网  |  指标网   |  指标公式  |   加入收藏   |  设为主页

@2005-2023 粤ICP备2023063687号-2 股票指标网别名指标网仅为互联网文章,所有股票指标公式及文章仅供学习研究,并不构成投资建议,请勿以此为依据进行股票交易,由此引起的投资亏损与本站无关。股票指标网均来源互联网收集整理,如不慎侵犯了你的权益,请联系我们告知,我们将做删除处理
QQ:88652583 微信 88652583
sitemap站点地图