当前位置:→ 公式网 > 飞狐公式 > 正文 ℃ 公式解密、改选股等业务 联系点击查看详情...
以下是大盘副图指标-大盘周日K线(无源码的请下载附件导入)
先建引用指标:HZ辅助
C1:INDEXC;H1:INDEXH;L1:INDEXL;O1:INDEXO;
然后建大盘周日K线指标:
大盘周日K线
C/C++ www.gszb.com 股票公式指标网提供 Code复制内容到剪贴板
- n1=7,1,888 n2=10,1,888 n3=20,1,888;n4=30,1,888;
- {大盘周K线}
- DRAWGBK(CLOSE,COLORRGB(50,100,120),0,1);
- c1:="HZ辅助.c1#week";
- o1:="HZ辅助.o1#week";
- h1:="HZ辅助.h1#week";
- l1:="HZ辅助.l1#week";
- c2:="HZ辅助.c1#MONTH";
- o2:="HZ辅助.o1#MONTH";
- h2:="HZ辅助.h1#MONTH";
- l2:="HZ辅助.l1#MONTH";
- t1:=DAY=15 OR DAY=16 OR DAY=17 OR DAY=18 OR DAY=19
- OR DAY=20 OR DAY=21 OR DAY=22 OR DAY=23 OR DAY=24;
- t2:=FILTER(t1,10);
- var1:=if(WEEKDAY=3,h1,c1);
- var2:=if(WEEKDAY=3,l1,o1);
- STICKLINE(c1>=o1,o1,c1,10,0),COLORff66ff;
- 周K线阳:STICKLINE(c1>=o1,var1,var2,4,0),colorff66ff;
- STICKLINE(o1>c1,c1,o1,10,0),COLORFF8822;
- 周K线阴:STICKLINE(o1>c1,var1,var2,4,0),COLORFF8833;
- {日K线}
- AC:=INDEXC;AH:=INDEXH;AL:=INDEXL;AO:=INDEXO;HDO:=INDEXO;
- stickline(Ac>=Ao,Ac,Ao,8,0),COLOr000099;
- stickline(Ac>=Ao,Ac,Ao,6,0),COLOR0000cc;
- stickline(Ac>=Ao,Ac,Ao,4,0),COLOR0000ff;
- stickline(Ac>=Ao,AH,Al,0.1,0),COLOR0033ff;
- STICKLINE(AC<=AO,AC,AO,8,0),COLOR009900;
- STICKLINE(AC<=AO,AC,AO,6,0),COLOR00cc00;
- STICKLINE(AC<=AO,AC,AO,4,0),COLOR33ff00;
- STICKLINE(AC<AO,AH,AL,0.01,0),COLORGREEN;
- MA1:WMA(INDEXC,N1),linethick2;MA2:WMA(INDEXC,N2),COLORCYAN;
- MA3:WMA(INDEXC,N3),COLORFF00FF;MA4:WMA(INDEXC,N4),COLOR000022;
上一篇:传统行情资金净流入排序的非传统计算 下一篇:主力散户能量