周K线叠及周量叠指标详解 公式、源码[其他软件公式]
相关标签: 周K线叠及周量叠指标详解, 周K线叠加周MACD源码, K线叠及周量叠源码
用了一些变量和函数来获取股票的日线和周线数据,然后用不同的颜色和形状来画出K线图和量能柱状图。K线图可以显示股票在一段时间内的价格波动,量能柱状图可以显示股票在一段时间内的交易活跃程度。这样可以帮助投资者分析股票的走势和趋势。
{辅助公式}
C1:CLOSE;
O1:OPEN;
H1:HIGH;
L1:LOW;
VVLA:VOL;
{日周K线叠加}
ccc1:="辅助公式.c1#week";
ooo1:="辅助公式.o1#week";
hhh1:="辅助公式.h1#week";
lll1:="辅助公式.l1#week";
vvar1:=if(WEEKDAY=3,hhh1,ccc1);
vvar2:=if(WEEKDAY=3,lll1,ooo1);
STICKLINE(ccc1>=ooo1,ooo1,ccc1,10,0),Color613076,LINEDOT;
STICKLINE(ccc1>=ooo1,vvar1,vvar2,3,0),Color613076;
STICKLINE(ooo1>ccc1,ccc1,ooo1,10,0),ColorFA7D32,LINEDOT;
STICKLINE(ooo1>ccc1,vvar1,vvar2,3,0),ColorFA7D32;
STICKLINE(C>=O,C,O,8,0),COLOR0000BB;
STICKLINE(C>=O,H,L,0,0),COLOR0000BB;
STICKLINE(C<=O,C,O,8,0),COLORFFFF00;
STICKLINE(C<=O,H,L,0,0),COLORffff00;
{周量叠加}
ccc1:="辅助公式.c1#week";
ooo1:="辅助公式.o1#week";
ZZL:="辅助公式.VVLA#week";
周量:ZZL,ColorFFff00,LINETHICK0;
STICKLINE(ccc1>ooo1 ,0,周量*0.45,10,0),Color613076,LINEDOT;
STICKLINE(ccc1<=ooo1 ,0,周量*0.45,10,0),ColorFA7D32,LINEDOT;
量:VOL,VOLSTICK;
MA1:MA(VOL,5);
MA2:MA(VOL,13);
MA3:MA(VOL,90);
大智慧用
{辅助001}
C1:CLOSE;
O1:OPEN;
H1:HIGH;
L1:LOW;
VVLA:VOL;
{日周K线叠加}
ccc1:="辅助001.c1#week";
ooo1:="辅助001.o1#week";
hhh1:="辅助001.h1#week";
lll1:="辅助001.l1#week";
vvar1:=if(WEEKDAY=3,hhh1,ccc1);
vvar2:=if(WEEKDAY=3,lll1,ooo1);
STICKLINE(ccc1>=ooo1,ooo1,ccc1,10,0),Color613076;
STICKLINE(ccc1>=ooo1,vvar1,vvar2,4,0),Color613076;
STICKLINE(ooo1>ccc1,ccc1,ooo1,10,0),ColorFA7D32;
STICKLINE(ooo1>ccc1,vvar1,vvar2,4,0),ColorFA7D32;
STICKLINE(C>=O,C,O,8,0),COLOR0000BB;
STICKLINE(C>=O,H,L,0,0),COLOR0000BB;
STICKLINE(C<=O,C,O,8,0),COLORFFFF00;
STICKLINE(C<=O,H,L,0,0),COLORffff00;
{周量叠加}
ccc1:="辅助001.c1#week";
ooo1:="辅助001.o1#week";
ZZL:="辅助001.VVLA#week";
周量:ZZL,ColorFFff00,LINETHICK0;
STICKLINE(ccc1>ooo1 ,0,周量*0.45,10,0),Color613076;
STICKLINE(ccc1<=ooo1 ,0,周量*0.45,10,0),ColorFA7D32;
量:VOL,VOLSTICK;
STICKLINE(C>=O,量,0,8,1),COLOR0000BB;
STICKLINE(C<=O,量,0,8,0),COLORFFFF00;
通达信用
{引用}
XA:=BARSLAST(WEEKDAY=1)+1;
BZ:=WEEKDAY=2;
O1:REF(O,BZ);
C1:C;
H1:HHV(H,XA);
L1:LLV(L,XA);
周量:SUM(V,XA)*0.4,COLORFF0000,LINETHICK0
{叠加周K线}
WO:="引用.O1#WEEK",LINETHICK1;
WC:="引用.C1#WEEK",LINETHICK1;
WH:="引用.H1#WEEK",LINETHICK1;
WL:="引用.L1#WEEK",LINETHICK1;
VVAH:=IF(WEEKDAY=3,WH,WC);
VVAL:=IF(WEEKDAY=3,WL,WO);
AD:=WC>=WO;
AF:=WO>=WC;
STICKLINE(AD ,WO,WC,4,0),COLOR73599D;
STICKLINE(AD ,VVAH,VVAL,1.5,0),COLOR73599D;
STICKLINE(AF ,WC,WO,4,0),COLOR8A8E31;
STICKLINE(AF ,VVAH,VVAL,1.5,0),COLOR8A8E31;
DRAWKLINE(HIGH,OPEN,LOW,CLOSE);
{叠加周量}
Z周:="引用.周量#WEEK",LINETHICK0;
WO:="引用.O1#WEEK",LINETHICK0;
WC:="引用.C1#WEEK",LINETHICK0;
AD:=WC>WO;
AF:=WC<=WO;
STICKLINE(AD,Z周,0,4,0),COLOR73599D;
STICKLINE(AF,Z周,0,4,0),COLOR8A8E31;
量:VOL,LINETHICK0,VOLSTICK;
MA1:MA(VOL,5);
MA2:MA(VOL,13);
MA3:MA(VOL,90);
公式导入教程: 【通达信公式源码导入方法教程】 【同花顺公式源码导入方法教程】 【大智慧新一代公式源码导入方法教程】
有思路,想编写各种指标公式,交易模型,选股公式,还原公式的朋友
可联系技术人员 QQ: 262069696 或微信:cxhjy888 进行 有偿收费 编写!(注:由于人数限制,QQ或微信请选择方便的一个联系我们就行,加好友时请简单备注下您的需求,否则无法通过。谢谢您!)
(注:由于人数限制,QQ或微信请选择方便的一个联系我们就行,加好友时请简单备注下您的需求,否则无法通过。谢谢您!)
相关文章
-
没有相关内容