通达信波段红主图主图指标源码
A2:=FORCAST(EMA(CLOSE,5),6);
A4:=FORCAST(EMA(CLOSE,11),6);
B:=A1+A2+A3+A4-4*A5;
VAR1:=ABS(TOWERC)+ABS(REF(TOWERC,1));
A6:=FORCAST(EMA(VAR2,12),6);
S2:=STICKLINE(TOWERC< REF(TOWERC,1) AND A6>=REF(A6,1),0,VAR1,2,1);
S4:=STICKLINE(TOWERC>=REF(TOWERC,1) AND A6< REF(A6,1),0,VAR1,2,1);
TDXSTEP132:STICKLINE(TOWERC< REF(TOWERC,1) AND A6>=REF(A6,1),CLOSE,OPEN,3,0),COLORRED;
TDXSTEP134:STICKLINE(TOWERC< REF(TOWERC,1) AND A6>=REF(A6,1),HIGH,LOW,0,0.0009),COLORRED;
TDXSTEP136:STICKLINE(TOWERC>=REF(TOWERC,1) AND A6< REF(A6,1),CLOSE,OPEN,3,0),COLORFFFF54;
TDXSTEP138:STICKLINE(TOWERC>=REF(TOWERC,1) AND A6< REF(A6,1),HIGH,LOW,0,0.0009),COLORFFFF54;
A2:=FORCAST(EMA(CLOSE,5),6);
A4:=FORCAST(EMA(CLOSE,11),6);
B:=A1+A2+A3+A4-4*A5;
VAR1:=ABS(TOWERC)+ABS(REF(TOWERC,1));
A6:=FORCAST(EMA(VAR2,12),6);
TOWERC>=REF(TOWERC,1) AND A6>=REF(A6,1) AND REF(A6,1)< REF(A6,2);
来函数检测结果如下:
该公式没有未来函数
解密、编写股票、期货策略请联系QQ或微信同号:88652583
相关股票指标公式
原理解析:
A2赋值:FORCAST(收盘价的5日指数移动平均,6)
A4赋值:FORCAST(收盘价的11日指数移动平均,6)
B赋值:A1+A2+A3+A4-4*A5
VAR1赋值:TOWERC的绝对值+ABS(1日前的TOWERC)
A6赋值:FORCAST(VAR2的12日指数移动平均,6)
S2赋值:STICKLINE(TOWERC< 1日前的TOWERC AND A6>=1日前的A6,0,VAR1,2,1)
S4赋值:STICKLINE(TOWERC>=1日前的TOWERC AND A6< 1日前的A6,0,VAR1,2,1)
输出TDXSTEP132:STICKLINE(TOWERC< 1日前的TOWERC AND A6>=1日前的A6,收盘价,开盘价,3,0),画红色
输出TDXSTEP134:STICKLINE(TOWERC< 1日前的TOWERC AND A6>=1日前的A6,最高价,最低价,0,0.0009),画红色
输出TDXSTEP136:STICKLINE(TOWERC>=1日前的TOWERC AND A6< 1日前的A6,收盘价,开盘价,3,0),COLORFFFF54
输出TDXSTEP138:STICKLINE(TOWERC>=1日前的TOWERC AND A6< 1日前的A6,最高价,最低价,0,0.0009),COLORFFFF54
A2赋值:FORCAST(收盘价的5日指数移动平均,6)
A4赋值:FORCAST(收盘价的11日指数移动平均,6)
B赋值:A1+A2+A3+A4-4*A5
VAR1赋值:TOWERC的绝对值+ABS(1日前的TOWERC)
A6赋值:FORCAST(VAR2的12日指数移动平均,6)
TOWERC>=1日前的TOWERC AND A6>=1日前的A6 AND 1日前的A6< 2日前的A6