通达信弘历背离王副图指标 指标说明用法详解 源码附图
A1:=FORCAST(EMA(CLOSE,5),6);
A2:=FORCAST(EMA(CLOSE,8),6);
A3:=FORCAST(EMA(CLOSE,11),6);
A4:=FORCAST(EMA(CLOSE,14),6);
A5:=FORCAST(EMA(CLOSE,17),6);
B:=A1+A2+A3+A4-4*A5;
TOWERC:=EMA(B,2);
FORCAST(EMA(B,3),3),POINTDOT,COLORGREEN;
FORCAST(EMA(B,4),3),POINTDOT,COLORGREEN;
FORCAST(EMA(B,5),3),POINTDOT,COLORGREEN;
FORCAST(EMA(B,6),3),POINTDOT,COLORGREEN;
FORCAST(EMA(B,7),3),POINTDOT,COLORGREEN;
FORCAST(EMA(B,8),3),POINTDOT,COLORGREEN;
FORCAST(EMA(B,9),3),POINTDOT,COLORGREEN;
FORCAST(EMA(B,10),3),POINTDOT,COLORGREEN;
FORCAST(EMA(B,11),3),POINTDOT,COLORGREEN;
FORCAST(EMA(B,12),3),POINTDOT,COLORGREEN;
FORCAST(EMA(B,13),3),POINTDOT,COLORGREEN;
FORCAST(EMA(B,14),3),POINTDOT,COLORGREEN;
FORCAST(EMA(B,15),3),POINTDOT,COLORGREEN;
FORCAST(EMA(B,16),3),POINTDOT,COLORGREEN;
FORCAST(EMA(B,17),3),POINTDOT,COLORGREEN;
STICKLINE(TOWERC>=REF(TOWERC,1),TOWERC,REF(TOWERC,1),2,0),COLORRED;
STICKLINE(TOWERC<REF(TOWERC,1),TOWERC,REF(TOWERC,1),2,0),COLORGREEN;
STICKLINE(TOWERC>=REF(TOWERC,1),TOWERC,REF(TOWERC,1),3,0),COLORRED;
STICKLINE(TOWERC>=REF(TOWERC,1),TOWERC,REF(TOWERC,1),2,0),COLORRED;
STICKLINE(TOWERC>=REF(TOWERC,1),TOWERC,REF(TOWERC,1),0,0),COLORRED;
STICKLINE(TOWERC<REF(TOWERC,1),TOWERC,REF(TOWERC,1),2,0),COLORGREEN;
STICKLINE(TOWERC<REF(TOWERC,1),TOWERC,REF(TOWERC,1),3,0),COLORGREEN;
STICKLINE(TOWERC<REF(TOWERC,1),TOWERC,REF(TOWERC,1),2,0),COLORGREEN;
STICKLINE(TOWERC<REF(TOWERC,1),TOWERC,REF(TOWERC,1),0,0),COLORGREEN;
来函数检测结果如下:
该公式没有未来函数
解密、编写股票、期货策略请联系QQ或微信同号:88652583
相关股票指标公式
原理解析:
A1赋值:FORCAST(收盘价的5日指数移动平均,6)
A2赋值:FORCAST(收盘价的8日指数移动平均,6)
A3赋值:FORCAST(收盘价的11日指数移动平均,6)
A4赋值:FORCAST(收盘价的14日指数移动平均,6)
A5赋值:FORCAST(收盘价的17日指数移动平均,6)
B赋值:A1+A2+A3+A4-4*A5
TOWERC赋值:B的2日指数移动平均
FORCAST(B的3日指数移动平均,3),POINTDOT,画绿色
FORCAST(B的4日指数移动平均,3),POINTDOT,画绿色
FORCAST(B的5日指数移动平均,3),POINTDOT,画绿色
FORCAST(B的6日指数移动平均,3),POINTDOT,画绿色
FORCAST(B的7日指数移动平均,3),POINTDOT,画绿色
FORCAST(B的8日指数移动平均,3),POINTDOT,画绿色
FORCAST(B的9日指数移动平均,3),POINTDOT,画绿色
FORCAST(B的10日指数移动平均,3),POINTDOT,画绿色
FORCAST(B的11日指数移动平均,3),POINTDOT,画绿色
FORCAST(B的12日指数移动平均,3),POINTDOT,画绿色
FORCAST(B的13日指数移动平均,3),POINTDOT,画绿色
FORCAST(B的14日指数移动平均,3),POINTDOT,画绿色
FORCAST(B的15日指数移动平均,3),POINTDOT,画绿色
FORCAST(B的16日指数移动平均,3),POINTDOT,画绿色
FORCAST(B的17日指数移动平均,3),POINTDOT,画绿色
STICKLINE(TOWERC>=1日前的TOWERC,TOWERC,1日前的TOWERC,2,0),画红色
STICKLINE(TOWERC<1日前的TOWERC,TOWERC,1日前的TOWERC,2,0),画绿色
STICKLINE(TOWERC>=1日前的TOWERC,TOWERC,1日前的TOWERC,3,0),画红色
STICKLINE(TOWERC>=1日前的TOWERC,TOWERC,1日前的TOWERC,2,0),画红色
STICKLINE(TOWERC>=1日前的TOWERC,TOWERC,1日前的TOWERC,0,0),画红色
STICKLINE(TOWERC<1日前的TOWERC,TOWERC,1日前的TOWERC,2,0),画绿色
STICKLINE(TOWERC<1日前的TOWERC,TOWERC,1日前的TOWERC,3,0),画绿色
STICKLINE(TOWERC<1日前的TOWERC,TOWERC,1日前的TOWERC,2,0),画绿色
STICKLINE(TOWERC<1日前的TOWERC,TOWERC,1日前的TOWERC,0,0),画绿色