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

 找回密码
 注册昵称

QQ登录

只需一步,快速开始

搜索
上一主题 下一主题

[飞狐] 周量叠加及月周K线叠加 (主图源码)


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

以下是周量叠加及月周K线叠加 (主图源码)

先做个引入公式
{辅助001}
C1:CLOSE;
O1:OPEN;
H1:HIGH;
L1:LOW;
VVLA:VOL;


{叠加月周K线}
INPUT:Z(0,0,1),Y(1,0,1);
ccc1:="辅助001.c1#week";
ooo1:="辅助001.o1#week";
hhh1:="辅助001.h1#week";
lll1:="辅助001.l1#week";
cc1:="辅助001.c1#MONTH";
oo1:="辅助001.o1#MONTH";
hh1:="辅助001.h1#MONTH";
ll1:="辅助001.l1#MONTH";
var1:=if(DAY=17ORDAY=14ORDAY=15ORDAY=16,hh1,cc1);
var2:=if(DAY=17ORDAY=14ORDAY=15ORDAY=16,ll1,oo1);
STICKLINE(cc1>oo1ANDZ=1,oo1,cc1,10,0),COLOReeaaEE,POINTDOT;
STICKLINE(cc1>oo1ANDZ=1,var1,var2,10,0),COLOReeaaEE,POINTDOT;
STICKLINE(oo1>=cc1ANDZ=1,cc1,oo1,10,0),Color6AA932,LINEDOT;
STICKLINE(oo1>=cc1ANDZ=1,var1,var2,10,0),Color6AA932,LINEDOT;
vvar1:=if(WEEKDAY=3,hhh1,ccc1);
vvar2:=if(WEEKDAY=3,lll1,ooo1);
STICKLINE(ccc1>=ooo1ANDY=1,ooo1,ccc1,10,0),Color613076,LINEDOT;
STICKLINE(ccc1>=ooo1ANDY=1,vvar1,vvar2,3,0),Color613076;
STICKLINE(ooo1>ccc1ANDY=1,ccc1,ooo1,10,0),ColorFA7D32,LINEDOT;
STICKLINE(ooo1>ccc1ANDY=1,vvar1,vvar2,3,0),ColorFA7D32;
STICKLINE(C>=O,C,O,8,0),COLOR0000AA;
STICKLINE(C>=O,C,O,6,0),COLOR0000bb;
STICKLINE(C>=O,C,O,4,0),COLOR0000cc;
STICKLINE(C>=O,C,O,2,0),COLOR0000ee;
STICKLINE(C>=O,H,L,0,0),COLOR0000ff;
STICKLINE(C<=O,C,O,8,0),Color7B7b00;
STICKLINE(C<=O,C,O,6,0),Color909000;
STICKLINE(C<=O,C,O,4,0),ColorA8a800;
STICKLINE(C<=O,C,O,2,0),COLORcece00;
STICKLINE(C<=O,H,L,0,0),COLORffff00;
{-------调整月周--------
周Param#1调节Z显示月线;
月Param#2调节Y显示周线;}


{附图另一形式周量叠加}
INPUT:周(1,0,1);
ccc1:="辅助001.c1#week";
ooo1:="辅助001.o1#week";
ZZL:="辅助001.VVLA#week";
周量:ZZL,ColorFFff00,LINETHICK0;
STICKLINE(ccc1>ooo1AND周,0,周量*0.45,10,0),Color613076,LINEDOT;
STICKLINE(ccc1<=ooo1AND周,0,周量*0.45,10,0),ColorFA7D32,LINEDOT;
量:VOL,linethick0;
HSL:=VOL/CAPITAL*100;
地量0_1:STICKLINE(HSL<1,0,量,0.1,0),coloreeeeee;
STICKLINE(HSL<1,0,量,5,0),colordddddd;
STICKLINE(HSL<1,0,量,3,0),coloreeeeee;
STICKLINE(HSL<1,0,量,1,0),colorffffff;
低靡1_2:STICKLINE(HSL>=1andHSL<2,0,量,0.1,0),colordddd00;
STICKLINE(HSL>=1andHSL<2,0,量,5,0),coloraaaa00;
STICKLINE(HSL>=1andHSL<2,0,量,3,0),colorcccc00;
STICKLINE(HSL>=1andHSL<2,0,量,1,0),colordddd00;
温和2_3:STICKLINE(HSL>=2andHSL<3,0,量,0.1,0),Color0080cc;
STICKLINE(HSL>=2andHSL<3,0,量,5,0),Color0040cc;
STICKLINE(HSL>=2andHSL<3,0,量,3,0),Color0060dd;
STICKLINE(HSL>=2andHSL<3,0,量,1,0),Color0080ee;
活跃3_5:STICKLINE(HSL>=3andHSL<5,0,量,0.1,0),color00dddd;
STICKLINE(HSL>=3andHSL<5,0,量,5,0),color00aaaa;
STICKLINE(HSL>=3andHSL<5,0,量,3,0),color00cccc;
STICKLINE(HSL>=3andHSL<5,0,量,1,0),color00dddd;
带量5_8:STICKLINE(HSL>=5andHSL<8,0,量,0.1,0),colordd00dd;
STICKLINE(HSL>=5andHSL<8,0,量,5,0),coloraa00aa;
STICKLINE(HSL>=5andHSL<8,0,量,3,0),colorcc00cc;
STICKLINE(HSL>=5andHSL<8,0,量,1,0),colordd00dd;
放量5_15:STICKLINE(HSL>=8andHSL<15,0,量,0.1,0),Color0000dd;
STICKLINE(HSL>=8andHSL<15,0,量,5,0),Color0000aa;
sTICKLINE(HSL>=8andHSL<15,0,量,3,0),Color0000cc;
sTICKLINE(HSL>=8andHSL<15,0,量,1,0),Color0000dd;
巨量15_25:STICKLINE(HSL>=15andHSL<25,0,量,0.01,0),ColorF46C39;
STICKLINE(HSL>=15andHSL<25,0,量,5,0),colorbb0000;
STICKLINE(HSL>=15andHSL<25,0,量,3,0),colordd0000;
STICKLINE(HSL>=15andHSL<25,0,量,1,0),coloree0000;
怪异25_:STICKLINE(HSL>=25,0,量,0.1,0),color00dd00;
MA3:MA(量,5),COLORFFffff,linethick1;
MAd:MA(量,13),COLOR00ffff,linethick1;
MA90:MA(量,135),color00ff00;
{添加到参数精灵
-------调整叠加周量--------
周Param#1调节周显示周量;
-------调整均价量--------
NParam#2调节任意均价量;
NAParam#3调节任意均价量;
NBParam#4调节任意均价量;}
 






回复

举报

QQ|

GMT+8, 2024-11-15 02:03

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