仿天狼50资金流量指标(提供大智慧飞狐版)
2016-10-22 16:53:00来源:本站整理浏览:281
仿天狼50资金流量指标(提供大智慧飞狐版)
仅是日线测算,不是L2数据,别被名称迷惑!
源码
{Z资金流量-大智慧飞狐版}
ZD:=LN(C/REF(C,1))/LN(1.1);
ZDV:=IF(ZD>=1.2,0,ABS(ZD*AMOUNT/10000)*5);
BV:=SMA(IF(ZD>0,ZDV,0),5,1);
SV:=EMA(SMA(IF(ZD<=0,ZDV,0),5,1),2);
VM:=SMA(BV,20,1)/SMA(SV,20,1);
XS:=IF(VM>=1,1,VM);
MF:(BV*XS-SV)/10000,COLORYELLOW,LINETHICK0;
STICKLINE(MF>0,MF,0,8,0),COLORRED;
STICKLINE(MF<=0,MF,0,8,0),ColorFFFF00;
{Z资金流量-通达信版}
ZD:=LN(C/REF(C,1))/LN(1.1);
ZDV:=IF(ZD>=1.2,0,ABS(ZD*AMOUNT/10000)*5);
BV:=SMA(IF(ZD>0,ZDV,0),5,1);
SV:=EMA(SMA(IF(ZD<=0,ZDV,0),5,1),2);
VM:=SMA(BV,20,1)/SMA(SV,20,1);
XS:=IF(VM>=1,1,VM);
MF:(BV*XS-SV)/10000,COLORYELLOW,NODRAW;
STICKLINE(MF>0,MF,0,2,0),COLORRED;
STICKLINE(MF<=0,MF,0,2,0),COLORFFFF00;
- 上一篇公式:通达信自用修改的成交量 副图指标
- 下一篇公式:红牛珍藏版指标,精准买卖点,赚钱利器!