通达信等量3K线副图指标公式源码
TAKE:A10,COLORGRAY,LINETHICK1,NODRAW;
UP:REF(HHV(A10,1),1),COLORGRAY,LINETHICK1,NODRAW;
STICKLINE(CROSS(TAKE,UP) AND SIT>UP,TAKE,UP,2,0),COLORRED;
STICKLINE(UP>TAKE,TAKE,UP,2,0),COLORLIBLUE;
STICKLINE(REF(CROSS(UP,TAKE),1) AND UP>TAKE,REF(UP,1),UP,2,0),COLORGREEN;
浅蓝后大红建仓:0,COLORRED,NODRAW;
浅红持仓:0,COLORLIRED,NODRAW;
绿色逐步减仓:0,COLORGREEN,NODRAW;
REF(HHV(SUM(TAKE,2)/2,15),3),COLORGRAY,LINETHICK1,DOTLINE;
IF(TAKE< REF(LLV(SUM(TAKE,2)/2,15),3),REF(LLV(SUM(TAKE,2)/2,15),3),DRAWNULL),COLORGREEN,LINETHICK3;
选股公式如下:
SIT:=LLV(SUM(TAKE,2)/2,3);
CROSS(TAKE,UP) AND SIT>UP AND REF(UP,1)>REF(TAKE,1);
来函数检测结果如下:
该公式没有未来函数
解密、编写股票、期货策略请联系QQ或微信同号:88652583
相关股票指标公式
原理解析:
输出TAKE:A10,COLORGRAY,LINETHICK1,NODRAW
输出UP:REF(1日内A10最高值,1),COLORGRAY,LINETHICK1,NODRAW
STICKLINE(TAKE上穿UP AND SIT>UP,TAKE,UP,2,0),画红色
当满足条件UP>TAKE时,在TAKE和UP之间画柱状线
STICKLINE(1日前的UP上穿TAKE AND UP>TAKE,1日前的UP,UP,2,0),画绿色
输出浅蓝后大红建仓:0,画红色,NODRAW
输出浅红持仓:0,COLORLIRED,NODRAW
输出绿色逐步减仓:0,画绿色,NODRAW
REF(HHV(2的TAKE日累和/2,15),3),COLORGRAY,LINETHICK1,DOTLINE
IF(TAKE< REF(LLV(2的TAKE日累和/2,15),3),REF(LLV(2的TAKE日累和/2,15),3),DRAWNULL),画绿色, 线宽为3
选股公式如下:
SIT赋值:LLV(2的TAKE日累和/2,3)
TAKE上穿UP AND SIT>UP AND 1日前的UP>1日前的TAKE