等量3K线通达信指标 副图 源码附图
K0:=V;
K1:=REF(V,15);
A10:=SUM(IF(K0>K1,K0,0-K1),0)/100/100/100;
TAKE:A10,COLORGRAY,LINETHICK1,NODRAW;
SIT:LLV(SUM(TAKE,2)/2,3),COLORGRAY,LINETHICK1,NODRAW;
UP:REF(HHV(A10,1),1),COLORGRAY,LINETHICK1,NODRAW;
DRAWTEXT_FIX(C>O,0.01,0.9,0,'微信公众号:水鸭的投资日记'),COLORRED;
STICKLINE(CROSS(TAKE,UP) AND SIT>UP,TAKE,UP,2,0),COLORRED;
STICKLINE(TAKE>UP AND SIT< UP,TAKE,UP,2,0),COLORLIRED;
STICKLINE(UP>TAKE,TAKE,UP,2,0),COLORLIBLUE;
STICKLINE(CROSS(UP,TAKE),TAKE,UP,2,0),COLORBLUE;
STICKLINE(REF(CROSS(UP,TAKE),1) AND UP>TAKE,REF(UP,1),UP,2,0),COLORGREEN;
STICKLINE(REF(CROSS(TAKE,UP),1) AND UP< TAKE,REF(UP,1),UP,2,0),COLORYELLOW;
浅蓝后大红建仓:0,COLORRED,NODRAW;
黄色逐步加仓:0,COLORYELLOW,NODRAW;
浅红持仓:0,COLORLIRED,NODRAW;
蓝震后大红减仓:0,COLORBLUE,NODRAW;
绿色逐步减仓:0,COLORGREEN,NODRAW;
REF(LLV(SUM(TAKE,2)/2,15),3),COLORGRAY,LINETHICK1,DOTLINE;
REF(HHV(SUM(TAKE,2)/2,15),3),COLORGRAY,LINETHICK1,DOTLINE;
IF(TAKE>REF(HHV(SUM(TAKE,2)/2,15),3),REF(HHV(SUM(TAKE,2)/2,15),3),DRAWNULL),COLORRED,LINETHICK3;
IF(TAKE< REF(LLV(SUM(TAKE,2)/2,15),3),REF(LLV(SUM(TAKE,2)/2,15),3),DRAWNULL),COLORGREEN,LINETHICK3;
来函数检测结果如下:
该公式没有未来函数
解密、编写股票、期货策略请联系QQ或微信同号:88652583
相关股票指标公式
原理解析:
K0赋值:V
K1赋值:15日前的V
如果K0>K1返回K0否则返回0-K1
输出TAKE:A10,COLORGRAY,LINETHICK1,NODRAW
输出SIT:LLV(2的TAKE日累和/2,3),COLORGRAY,LINETHICK1,NODRAW
输出UP:REF(1日内A10最高值,1),COLORGRAY,LINETHICK1,NODRAW
当满足条件C>O时,在横轴0.01纵轴0.9位置书写文字
STICKLINE(TAKE上穿UP AND SIT>UP,TAKE,UP,2,0),画红色
当满足条件TAKE>UP AND SIT< UP时,在TAKE和UP之间画柱状线
当满足条件UP>TAKE时,在TAKE和UP之间画柱状线
STICKLINE(UP上穿TAKE,TAKE,UP,2,0), 画蓝色
STICKLINE(1日前的UP上穿TAKE AND UP>TAKE,1日前的UP,UP,2,0),画绿色
STICKLINE(1日前的TAKE上穿UP AND UP< TAKE,1日前的UP,UP,2,0),画黄色
输出浅蓝后大红建仓:0,画红色,NODRAW
输出黄色逐步加仓:0,画黄色,NODRAW
输出浅红持仓:0,COLORLIRED,NODRAW
输出蓝震后大红减仓:0, 画蓝色,NODRAW
输出绿色逐步减仓:0,画绿色,NODRAW
REF(LLV(2的TAKE日累和/2,15),3),COLORGRAY,LINETHICK1,DOTLINE
REF(HHV(2的TAKE日累和/2,15),3),COLORGRAY,LINETHICK1,DOTLINE
IF(TAKE>REF(HHV(2的TAKE日累和/2,15),3),REF(HHV(2的TAKE日累和/2,15),3),DRAWNULL),画红色, 线宽为3
IF(TAKE< REF(LLV(2的TAKE日累和/2,15),3),REF(LLV(2的TAKE日累和/2,15),3),DRAWNULL),画绿色, 线宽为3