股资源-股票学习站-学炒股-股票课程-炒股教程-分析选股指标-入门基础知识

 找回密码
 注册昵称

QQ登录

只需一步,快速开始

搜索
上一主题 下一主题

[飞狐] 大盘副图指标-大盘周日K线


    [-----复制链接-----]
楼主
 通达信源码安装路径:1,工具栏点击公式选项。2,弹出公式窗口点击新建。3,把源码复制到指标编辑器保存。4,回到K线图界面安装建立好的公式 || 2023-10-25 14:44:55

以下是大盘副图指标-大盘周日K线

先建引用指标:HZ辅助
C1:INDEXC;H1:INDEXH;L1:INDEXL;O1:INDEXO;


然后建大盘周日K线指标:
大盘周日K线

n1=7,1,888n2=10,1,888n3=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=15ORDAY=16ORDAY=17ORDAY=18ORDAY=19
ORDAY=20ORDAY=21ORDAY=22ORDAY=23ORDAY=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;




回复

举报

QQ|

GMT+8, 2024-11-16 10:06

快速回复 返回顶部 返回列表