飞狐动态周K线源码

if DATATYPE<>6 then exit;
p:=SYSPARAM(1);
u:=if(p<barpos,0,1);
w:=barslast(weekday<ref(weekday,1))*u LINETHICK;
zr:=w=0;
wx:=0*c;
for i=datacount-1 downto lbound(zr) do
if zr then
wx:=0;
else
wx:=wx[i+1]+1;
ri:=BACKSET(ISLASTBAR,w+1)-ISLASTBAR;
rw:=refx(wx,1)+ri;

开:=ref(o,w)LINETHICK;
高:=refx(hhv(h,w+1),rw)LINETHICK;
低:=refx(LLv(L,w+1),rw)LINETHICK;
收:=refx(c,rw)LINETHICK;
f:=收>开 or (收=开 and 收>ref(收,1));
uu:=cross(w,rw);
STICKLINE(uu and f and u,高,低,1,0),color8482ff;
STICKLINE(uu and not(f) and u,高,低,1,0),colorff9694;
STICKLINE(p=barpos and w=0 and f and u,h,L,1,0),color8482ff;
STICKLINE(p=barpos and w=0 and not(f) and u,h,L,1,0),colorff9694;
STICKLINE(f and u,收,开,10,0),color8482ff;
STICKLINE(not(f) and u,收,开,10,0),colorff9694;

;

M20:MA(CLOSE,20),COLORWHITE;;
M97:MA(CLOSE,97),COLORYELLOW;



未来函数检测结果如下:
该公式包含未来函数:BACKSET
解密、编写股票、期货策略请联系QQ或微信同号:88652583
相关股票指标公式

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

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