通达信主力动向副图指标 主力大幅度拉升前清晰可见 源码 附图
X_1:=5;
X_2:=4;
X_3:=CLOSE-REF(CLOSE,1);
主力轨迹:100*EMA(EMA(X_3,X_1),X_1)/EMA(EMA(ABS(X_3),X_1),X_1),COLORMAGENTA;
MAZL:MA(主力轨迹,X_2),COLORYELLOW;
X_4:=REF((LOW+OPEN+CLOSE+HIGH)/4,1);
X_5:=SMA(ABS(LOW-X_4),13,1)/SMA(MAX(LOW-X_4,0),10,1);
X_6:=EMA(X_5,10);
X_7:=LLV(LOW,33);
X_8:=EMA(IF(LOW<=X_7,X_6,0),3);
Z:0,COLORBLACK;
主力进场:IF(X_8>REF(X_8,1),X_8,0),NODRAW,COLORRED;
洗盘:IF(X_8<REF(X_8,1),X_8,0),NODRAW,COLORGREEN;
STICKLINE(X_8<REF(X_8,1),0,X_8,3,0),COLORGREEN;
STICKLINE(X_8>REF(X_8,1),0,X_8,3,0),COLOR000055;
STICKLINE(X_8>REF(X_8,1),0,X_8,2.6,0),COLOR000077;
STICKLINE(X_8>REF(X_8,1),0,X_8,2.1,0),COLOR000099;
STICKLINE(X_8>REF(X_8,1),0,X_8,1.5,0),COLOR0000BB;
STICKLINE(X_8>REF(X_8,1),0,X_8,0.9,0),COLOR0000DD;
STICKLINE(X_8>REF(X_8,1),0,X_8,0.3,0),COLORRED;
STICKLINE(X_8<REF(X_8,1),0,X_8,3,0),COLOR005500;
STICKLINE(X_8<REF(X_8,1),0,X_8,2.6,0),COLOR007700;
STICKLINE(X_8<REF(X_8,1),0,X_8,2.1,0),COLOR009900;
STICKLINE(X_8<REF(X_8,1),0,X_8,1.5,0),COLOR00BB00;
STICKLINE(X_8<REF(X_8,1),0,X_8,0.9,0),COLOR00DD00;
STICKLINE(X_8<REF(X_8,1),0,X_8,0.3,0),COLORGREEN;
X_9:=SMA(ABS(HIGH-X_4),13,1)/SMA(MIN(HIGH-X_4,0),10,1);
X_10:=EMA(X_9,10);
X_11:=HHV(HIGH,33);
X_12:=EMA(IF(HIGH>=X_11,X_10,0),3);
主力拉高:IF(X_12<REF(X_12,1),X_12,0),NODRAW,COLORYELLOW;
STICKLINE(X_12<REF(X_12,1),0,X_12,2,0),COLORYELLOW;
出货:IF(X_12>REF(X_12,1),X_12,0),NODRAW,COLORCYAN;
STICKLINE(X_12>REF(X_12,1),0,X_12,2,0),COLORCYAN;
来函数检测结果如下:
该公式没有未来函数
解密、定制、编写股票指标请联系QQ或微信同号:88652583
相关股票指标公式
原理解析:
X_1赋值:5
X_2赋值:4
X_3赋值:收盘价-1日前的收盘价
输出主力轨迹:100*X_3的X_1日指数移动平均,X_1)/EMA(EMA(X_3的绝对值,X_1),X_1),画洋红色
输出MAZL:主力轨迹的X_2日简单移动平均,画黄色
X_4赋值:REF((最低价+开盘价+收盘价+最高价)/4,1)
X_5赋值:SMA(最低价-X_4的绝对值,13,1)/SMA(最低价-X_4和0较大值,10,1)
X_6赋值:X_5的10日指数移动平均
X_7赋值:33日内最低价最低值
如果最低价<=X_7返回X_6否则返回0
输出Z:0,COLORBLACK
输出主力进场:IF(X_8>1日前的X_8,X_8,0),NODRAW,画红色
输出洗盘:IF(X_8<1日前的X_8,X_8,0),NODRAW,画绿色
STICKLINE(X_8<1日前的X_8,0,X_8,3,0),画绿色
STICKLINE(X_8>1日前的X_8,0,X_8,3,0),COLOR000055
STICKLINE(X_8>1日前的X_8,0,X_8,2.6,0),COLOR000077
STICKLINE(X_8>1日前的X_8,0,X_8,2.1,0),COLOR000099
STICKLINE(X_8>1日前的X_8,0,X_8,1.5,0),COLOR0000BB
STICKLINE(X_8>1日前的X_8,0,X_8,0.9,0),COLOR0000DD
STICKLINE(X_8>1日前的X_8,0,X_8,0.3,0),画红色
STICKLINE(X_8<1日前的X_8,0,X_8,3,0),COLOR005500
STICKLINE(X_8<1日前的X_8,0,X_8,2.6,0),COLOR007700
STICKLINE(X_8<1日前的X_8,0,X_8,2.1,0),COLOR009900
STICKLINE(X_8<1日前的X_8,0,X_8,1.5,0),COLOR00BB00
STICKLINE(X_8<1日前的X_8,0,X_8,0.9,0),COLOR00DD00
STICKLINE(X_8<1日前的X_8,0,X_8,0.3,0),画绿色
X_9赋值:SMA(最高价-X_4的绝对值,13,1)/SMA(最高价-X_4和0的较小值,10,1)
X_10:=X_9的10日指数移动平均
X_11:=33日内最高价最高值
如果最高价>=X_11返回X_10否则返回0
输出主力拉高:IF(X_12<1日前的X_12,X_12,0),NODRAW,画黄色
STICKLINE(X_12<1日前的X_12,0,X_12,2,0),画黄色
输出出货:IF(X_12>1日前的X_12,X_12,0),NODRAW,画青色
STICKLINE(X_12>1日前的X_12,0,X_12,2,0),画青色