通达信趋势王
X_1:=ABS((3.48*CLOSE+HIGH+LOW+OPEN)/5);
X_2:=DMA((2.15*CLOSE+LOW+HIGH+OPEN)/5,X_1);
X_3:=EMA(X_2,200)*1.118;
X_4:=CLOSE/X_3;
{股票指标网}
X_5:=X_4*((2*CLOSE+HIGH+LOW+OPEN)/5);
X_6:=(X_5-X_3)/X_3/3.14;
DRAWBAND(0.3,RGB(100,4,25),0,RGB(0,0,255));
DRAWBAND(0,RGB(2,85,25),(-0.2),RGB(0,0,255));
DRAWBAND((-0.3),RGB(55,4,25),(-0.2),RGB(0,0,255));
STICKLINE(X_6<=(-0.2),(-0.2),X_6,3,0),COLORRED;
STICKLINE(X_6>=0.3,0.3,X_6,3,1),COLOR797979;
趋势:X_6,COLORYELLOW,LINETHICK2;
来函数检测结果如下:
该公式没有未来函数
解密、编写股票、期货策略请联系QQ或微信同号:88652583
相关股票指标公式
原理解析:
X_1赋值:(3.48*收盘价+最高价+最低价+开盘价的绝对值/5)
X_2赋值:DMA((2.15*收盘价+最低价+最高价+开盘价)/5,X_1)
X_3赋值:X_2的200日指数移动平均*1.118
X_4赋值:收盘价/X_3
{股票指标网}
X_5赋值:X_4*((2*收盘价+最高价+最低价+开盘价)/5)
X_6赋值:(X_5-X_3)/X_3/3.14
DRAWBAND(0.3,RGB(100,4,25),0,RGB(0,0,255))
DRAWBAND(0,RGB(2,85,25),(-0.2),RGB(0,0,255))
DRAWBAND((-0.3),RGB(55,4,25),(-0.2),RGB(0,0,255))
STICKLINE(X_6<=(-0.2),(-0.2),X_6,3,0),画红色
当满足条件X_6>=0.3时,在0.3和X_6之间画柱状线
输出趋势:X_6,画黄色, 线宽为2