飞狐动态大盘月K线源码

飞狐动态大盘月K线

IF DATATYPE<>6 then exit;
p:=SYSPARAM(1);
u:=IF(p<BARPOS,0,1);
w:=BARSLAST(DAY<REF(DAY,1))*u LINETHICK;
zr:=w=0;
wx:=0*INDEXC;
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(INDEXC,w)LINETHICK;
高:=REFX(HHV(INDEXh,w+1),rw)LINETHICK;
低:=REFX(LLV(INDEXl,w+1),rw)LINETHICK;
收:=REFX(INDEXC,rw)LINETHICK;
f:=收>开 or (收=开 and 收>REF(收,1));
uu:=CROSS(w,rw);
STICKLINE(uu and f and u,高,低,8,0),color8482ff;
STICKLINE(uu and NOT(f) and u,高,低,8,0),colorff9694;
STICKLINE(p=BARPOS and w=0 and f and u,HIGH,LOW,8,0),color8482ff;
STICKLINE(p=BARPOS and w=0 and NOT(f) and u,HIGH,LOW,8,0),colorff9694;
STICKLINE(f and u,收,开,10,0),color8482ff;
STICKLINE(NOT(f) and u,收,开,10,0),colorff9694;

;
 

AC:=对应大盘收盘价;AH:=对应大盘最高价;AL:=对应大盘最低价;AO:=对应大盘开盘价;HDO:=对应大盘开盘价;
画柱线(Ac>=Ao,Ac,Ao,8,0),COLOr000099;
画柱线(Ac>=Ao,Ac,Ao,6,0),COLOR0000cc;
画柱线(Ac>=Ao,Ac,Ao,4,0),COLOR0000ff;
画柱线(Ac>=Ao,AH,Al,0.1,0),COLOR0033ff;
画柱线(AC<=AO,AC,AO,8,0),COLOR009900;
画柱线(AC<=AO,AC,AO,6,0),COLOR00cc00;
画柱线(AC<=AO,AC,AO,4,0),COLOR33ff00;
画柱线(AC<AO,AH,AL,0.01,0),COLORGREEN;

M5:MA(INDEXC,5),COLORWHITE,LINETHICK0;

M20:MA(INDEXC,20),COLORWHITE,LINETHICK0;




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

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

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