当前位置:→ 公式网 > 飞狐公式 > 正文 ℃ 公式解密、改选股等业务 联系点击查看详情...
以下是涨幅量尺(主图 源码 帖图)(无源码的请下载附件导入)
p; 控制:=BARSLAST(Y_4)+1;
低价:=REF(L,BARSLAST(最低=0));
DRAWLINE(最低=0 and DF>0,L,ISLASTBAR,低价,0),Color999999;
DRAWLINE(最低=0 and df>0,L*1.03,ISLASTBAR,低价*1.03,0),Color999999;
DRAWLINE(最低=0 and df>0,L*1.05,ISLASTBAR,低价*1.05,0),Color999999;
DRAWLINE(最低=0 and df>0,L*1.08,ISLASTBAR,低价*1.08,0),Color999999;
DRAWLINE(最低=0 and df>=2,L*1.13,ISLASTBAR,低价*1.13,0),Color999999;
DRAWLINE(最低=0 and df>=2,L*1.18,ISLASTBAR,低价*1.18,0),Color999999;
DRAWLINE(最低=0 and df>=2,L*1.25,ISLASTBAR,低价*1.25,0),Color999999;
DRAWTEXT(控制=1 and df>0,低价,NUMTOSTR(低价,2)+'[ 0%]'),ALIGN2,PXUP8,COLORWHITE;
DRAWTEXT(控制=1 and df>0,低价*1.03,'3% ['+NUMTOSTR(低价*1.03,2)+']'),ALIGN2,PXUP8,COLORWHITE;
DRAWTEXT(控制=1 and df>0,低价*1.05,'5% ['+NUMTOSTR(低价*1.05,2)+']'),ALIGN2,PXUP8,COLORWHITE;
DRAWTEXT(控制=1 and df>0,低价*1.08,'8% ['+NUMTOSTR(低价*1.08,2)+']'),ALIGN2,PXUP8,COLORWHITE;
DRAWTEXT(控制=1 and df>=2,低价*1.13,'13% ['+NUMTOSTR(低价*1.13,2)+']'),ALIGN2,PXUP8,COLORWHITE;
DRAWTEXT(控制=1 and df>=2,低价*1.18,'18% ['+NUMTOSTR(低价*1.18,2)+']'),ALIGN2,PXUP8,COLORWHITE;
DRAWTEXT(控制=1 and df>=2,低价*1.25,'25% ['+NUMTOSTR(低价*1.25,2)+']'),ALIGN2,PXUP8,COLORWHITE;
FU:=C-低价;
到当前幅度%:=FU/低价*100;
GDFT:=GGH-低价;
GDFDB:=GDFT/GGH*100;
DRAWTEXTEX(TTt,0,3,15,'【'+NUMTOSTR(低价,2)+'--到当前幅度 C:'+NUMTOSTR(到当前幅度%[SYSPARAM(1)],2)+'% 涨跌:'+NUMTOSTR(FU[SYSPARAM(1)],2)+'】'),ColorFFFF00;
DRAWTEXT(H=GGH AND 高H,Ggh,'▼'),ALIGN0,color9F9f00,pxup18;
DRAWTEXT(h=ggh AND 高H,Ggh,' '+NUMTOSTR(ggh,2)),ALIGN1,color9F9F00,pxup18;
DRAWTEXTEX(TTt AND 高H,0,5,105,'▼高-至-◇低幅度\n('+NUMTOSTR(GGH,2)+')-至-('+NUMTOSTR(低价,2)+')\('+NUMTOSTR(GDFDB,2)+'% '+NUMTOSTR(GDF1,2)+'\n▼'+'当前/-L('+NUMTOSTR(GDF2,2)+'% -'
+NUMTOSTR(GDF1,2)+':/-C('+NUMTOSTR(GDF4,2)+'% -'+NUMTOSTR(GDF3,2)+'\n [5%----8%----13%:]'+'\n '+NUMTOSTR(MHI,2)+'--'
+NUMTOSTR(MHII,2)+'--'+NUMTOSTR(MHIII,2)+'\n [15%---20%---25%:]'+'\n '+NUMTOSTR(MHRI,2)+'--'+NUMTOSTR(MHRII,2)+'--'+NUMTOSTR(MHRIII,2)),Color9F9f00;
{添加到参数精灵中
--------显示光标涨跌幅度--------
XS=1 Param#1 光标涨幅幅度;
--------显示成本均价线--------
CY1=5 Param#2 五日成本均价线;
P计算 Param#3 任意均价线;
--------显示近期涨跌幅度--------
找近期低点 Param#4 显示涨幅幅度
--------显示布林线--------
调节BOL Param#5 20--26为外轨
FA=1--3 Param#6 显示分位价及均价;
高H显示 Param#7 ▲高-至-▼低-下跌幅度;}