飞狐追涨杀跌主图指标公式

[复制链接]
查看126 | 回复0 | 2021-8-21 12:43:24 | 显示全部楼层 |阅读模式

DRAWGBK(1, COLORRGB(100,100,100),COLORRGB(50,50,50),0);
{-----------------------☆功能开关------------------------}
x1:=((H+L+C)/3-MA((H+L+C)/3,14))*100/(1.5*avedev((H+L+C)/3,14));
CCIK:=SMA(x1,3,1);
CCID:=SMA(CCIK,3,1);
CCIJ:=3*CCIK-2*CCID;
x2:=(REF(O,1)-MA(REF(O,1),14))*100/(1.5*avedev(REF(O,1),14));
x3:=(REF(C,1)-MA(REF(C,1),14))*100/(1.5*avedev(REF(C,1),14));
x4:=(REF(H,1)-MA(REF(H,1),14))*100/(1.5*avedev(REF(H,1),14));
x5:=(REF(L,1)-MA(REF(L,1),14))*100/(1.5*avedev(REF(L,1),14));
TYP := (H + L + C)/3;
CCI:(TYP-MA(TYP,13))/(0.015*AVEDEV(TYP,13)),LINETHICK,PRECISION2,COLORGREEN;
CCIMA: SMA(CCI,3,1),LINETHICK,PRECISION2,Color0089FF;
XX:HHV(CCI,55),LINETHICK,PRECISION2,COLORWHITE;
YY:HHV(CCI,55)*0.68,LINETHICK,PRECISION2,COLORYELLOW;
{www.gupang.com 股旁网_飞狐股票指标公式}
CC:LLV(CCI,55)*0.68,LINETHICK,PRECISION2,ColorFF89FF;
DD:LLV(CCI,55),LINETHICK,PRECISION2,ColorFF9700;
{-----------------【图解模板】---------------------}
FILLRGN(XX AND YY,XX,YY),COLORBROWN;//压力带
FILLRGN(DD AND CC,DD,CC),Color006000;//支撑带
PARTLINE(C,XX),COLORWHITE;
PARTLINE(C,YY),COLORYELLOW;
PARTLINE(C,CC),ColorFF89FF;
PARTLINE(C,DD),ColorFF9700;
STICKLINE(x3>x2,x2,x5,0.5,0),ColorA900B0;
STICKLINE(x3>x2,x4,x3,0.5,0),ColorA900B0;
STICKLINE(x3>x2,x3,x2,5,0),ColorA900B0;
STICKLINE(x3<x2,x4,x2,0.5,0),ColorFF8900;
STICKLINE(x3<x2,x5,x3,0.5,0),ColorFF8900;
STICKLINE(x3<x2,x3,x2,5,0),ColorFF8900;
PARTLINE(C,CCIMA),Color0089FF;
PARTLINE(C,CCI),COLORGREEN;

202108211208.jpg

202108211208.jpg

 

回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则