通达信【别有洞天】加速暴涨不含糊副图+选股指标用法详解
别有洞天:EMA(EMA(C,5)-EMA(C,13),1),LINETHICK2,COLORYELLOW;
HV:HHV(别有洞天,2),COLOR66FF00;
VAR1:=(HHV(EMA(EMA(C,5)-EMA(C,13),1),3)+ABS(LLV(EMA(EMA(C,5)-EMA(C,13),1),3)))/2;
A1:VAR1/4*4,COLOR0000FF;
A2:VAR1/4*3,COLORAAAA00;
A3:VAR1/4*2,COLOR00AA00;
A4:VAR1/4*1,COLOR00AAAA;
A5:-VAR1/4*1,COLOR00AAAA;
A6:-VAR1/4*2,COLOR00AA00;
A7:-VAR1/4*3,COLORAAAA00;
A8:-VAR1/4*4,COLOR0000FF;
VAR2:=(HHV(EMA(EMA(C,5)-EMA(C,13),1),100)+ABS(LLV(EMA(EMA(C,5)-EMA(C,13),1),100)))/2;
A9:VAR2/4*4,COLOR0000AA;
A10:VAR2/4*3,COLORAAAA00;
A11:VAR2/4*2,POINTDOT,COLOR00AA00;
A12:VAR2/4*1,POINTDOT,COLOR00AAAA;
A13:-VAR2/4*1,POINTDOT,COLOR00AAAA;
A14:-VAR2/4*2,POINTDOT,COLOR00AA00;
A15:-VAR2/4*3,COLORAAAA00;
A16:-VAR2/4*4,COLOR0000AA;
XG:CROSS(别有洞天,A2) AND CROSS(别有洞天,A3) AND CROSS(别有洞天,A4) AND CROSS(别有洞天,A5) AND CROSS(别有洞天,A6) AND CROSS(别有洞天,A7) AND CROSS(别有洞天,A8),COLORWHITE,NODRAW;
DRAWICON(XG,别有洞天,9);
来函数检测结果如下:
该公式没有未来函数
解密、编写股票、期货策略请联系QQ或微信同号:88652583
相关股票指标公式
原理解析:
输出别有洞天:C的5日指数移动平均-C的13日指数移动平均,1), 线宽为2,画黄色
输出HV:2日内别有洞天最高值,COLOR66FF00
VAR1赋值:(1日内C的5日指数移动平均-C的13日指数移动平均最高值,3)+1日内C的5日指数移动平均-C的13日指数移动平均最低值,3的绝对值))/2
输出A1:VAR1/4*4,COLOR0000FF
输出A2:VAR1/4*3,COLORAAAA00
输出A3:VAR1/4*2,COLOR00AA00
输出A4:VAR1/4*1,COLOR00AAAA
输出A5:-VAR1/4*1,COLOR00AAAA
输出A6:-VAR1/4*2,COLOR00AA00
输出A7:-VAR1/4*3,COLORAAAA00
输出A8:-VAR1/4*4,COLOR0000FF
VAR2赋值:(1日内C的5日指数移动平均-C的13日指数移动平均最高值,100)+1日内C的5日指数移动平均-C的13日指数移动平均最低值,100的绝对值))/2
输出A9:VAR2/4*4,COLOR0000AA
A10:VAR2/4*3,COLORAAAA00
A11:VAR2/4*2,POINTDOT,COLOR00AA00
A12:VAR2/4*1,POINTDOT,COLOR00AAAA
A13:-VAR2/4*1,POINTDOT,COLOR00AAAA
A14:-VAR2/4*2,POINTDOT,COLOR00AA00
A15:-VAR2/4*3,COLORAAAA00
A16:-VAR2/4*4,COLOR0000AA
输出XG:别有洞天上穿A2 AND 别有洞天上穿A3 AND 别有洞天上穿A4 AND 别有洞天上穿A5 AND 别有洞天上穿A6 AND 别有洞天上穿A7 AND 别有洞天上穿A8,画白色,NODRAW
当满足条件XG时,在别有洞天和9之间画图标