通达信顶底结构副图副图指标公式源码
DEA : EMA(DIFF,9);
ZERO : 0;
STICKLINE(MACD>0 AND MACD>=REF(MACD,1),0,MACD,2,0),COLORRED;
STICKLINE(MACD< 0 AND MACD>=REF(MACD,1),0,MACD,2,0),COLORLIRED;
L4:=LLV(GJ,4);
GT:=DEA>REF(DEA,1) AND REF(DEA,1)< REF(DEA,2);
底部结构:=REF(L4,A1+1)>CLOSE AND DIFF>REF(DIFF,A1+1) AND GT;
DRAWLINE(底部结构,DEA,底部结构,REF(DEA,A1),0),COLORRED,LINETHICK2;
H4:=HHV(GJ,4);
A2:=BARSLAST(REF(GT2,1));
DRAWLINE(A2=0 ,DEA,顶部结构,REF(DEA,A2),0),COLORGREEN,LINETHICK2;
DRAWTEXT(顶部结构,REF(DEA,A2)*1.18,' 顶部结构'),COLORGREEN;
A11:=A0>REF(A0,1);
A4:=COUNT(DEA>0 AND DIFF >0,A3)=0;
A6:=BARSLAST(A5);
A8:=(DIFF+DEA)/2;
A10:=A5 AND A7< A3 AND A4 AND A8>REF(A8,A7) AND A9< REF(A9,A7) AND MACD>0;
来函数检测结果如下:
该公式没有未来函数
解密、编写股票、期货策略请联系QQ或微信同号:88652583
相关股票指标公式
原理解析:
DEA : DIFF的9日指数移动平均
ZERO : 0
STICKLINE(MACD>0 AND MACD>=1日前的MACD,0,MACD,2,0),画红色
STICKLINE(MACD< 0 AND MACD>=1日前的MACD,0,MACD,2,0),COLORLIRED
L4赋值:4日内GJ最低值
GT赋值:DEA>1日前的DEA AND 1日前的DEA< 2日前的DEA
底部结构赋值:A1+1日前的L4>收盘价 AND DIFF>A1+1日前的DIFF AND GT
DRAWLINE(底部结构,DEA,底部结构,A1日前的DEA,0),画红色, 线宽为2
H4赋值:4日内GJ最高值
A2赋值:上次1日前的GT2距今天数
DRAWLINE(A2=0 ,DEA,顶部结构,A2日前的DEA,0),画绿色, 线宽为2
DRAWTEXT(顶部结构,A2日前的DEA*1.18,' 顶部结构'),画绿色
A11赋值:A0>1日前的A0
A4赋值:统计A3日满足DEA>0 AND DIFF >0的天数=0
A6赋值:上次A5距今天数
A8赋值:(DIFF+DEA)/2
A10赋值:A5 AND A7< A3 AND A4 AND A8>A7日前的A8 AND A9< A7日前的A9 AND MACD>0
- QQ:88652583
- 邮箱:88652583@qq.com
- 工作时间:8:30-23:00
- 微信:88652583或扫描如下二维码
sitemap站点地图