通达信【2023战神王者】副图预警指标 龙头妖股王者三合一 源码分享!附图
X_1:=MACD.DIF#MONTH;
X_2:=MACD.DEA#MONTH;
X_3:=MACD.DIF#WEEK;
X_4:=MACD.DEA#WEEK;
X_5:=MACD.DIF;
X_6:=MACD.DEA;
X_7:=CROSS(X_5,X_6);
X_8:=CROSS(X_3,X_4);
X_9:=CROSS(X_1,X_2);
X_10:=IF(CROSS(X_3,X_4),MACD.DIF+0.1,0);
X_11:=IF(X_5>X_6 AND X_3>X_4 AND X_9 OR (X_3>X_4 AND X_1>X_2 AND X_7) AND CLOSE/REF(CLOSE,1)>1.08 OR (X_1>X_2 AND X_5>X_6 AND X_8) OR (X_7 AND X_8 AND X_9),MACD.DIF+0.2,0);
STICKLINE(X_10 AND CLOSE/REF(CLOSE,1)>1.05,0,100,3.2,0),COLOR0077FF;
STICKLINE(X_10 AND CLOSE/REF(CLOSE,1)>1.05,0,100,2.5,0),COLOR0099FF;
STICKLINE(X_10 AND CLOSE/REF(CLOSE,1)>1.05,0,100,1.9,0),COLOR00BBFF;
STICKLINE(X_10 AND CLOSE/REF(CLOSE,1)>1.05,0,100,1.2,0),COLOR00DDFF;
STICKLINE(X_10 AND CLOSE/REF(CLOSE,1)>1.05,0,100,0.3,0),COLORYELLOW;
STICKLINE(X_11 AND CLOSE/REF(CLOSE,1)>1.08,0,100,3,0),COLOR000099;
STICKLINE(X_11 AND CLOSE/REF(CLOSE,1)>1.08,0,100,2.2,0),COLOR0000CC;
STICKLINE(X_11 AND CLOSE/REF(CLOSE,1)>1.08,0,100,1.5,0),COLORRED;
STICKLINE(X_11 AND CLOSE/REF(CLOSE,1)>1.08,0,100,0.5,0),COLORCC66FF;
STICKLINE(X_11 AND CLOSE/REF(CLOSE,1)>1.08,0,100,0.5,0),COLORYELLOW;
DRAWTEXT(X_11 AND CLOSE/REF(CLOSE,1)>1.08,80,'★战神妖股'),COLORYELLOW;
DRAWTEXT(X_10 AND CLOSE/REF(CLOSE,1)>1.05,60,'★战神龙头'),COLORRED;
DRAWTEXT(X_11 AND X_10 AND CLOSE/REF(CLOSE,1)>1.05,40,'★战神王者'),COLORMAGENTA;
未来函数检测结果如下:
该公式包含未来函数:#MONTH
该公式包含未来函数:#WEEK
解密、定制、编写股票指标请联系QQ或微信同号:88652583
相关股票指标公式
原理解析:
X_1赋值:MACD.DIF#MONTH
X_2赋值:MACD.DEA#MONTH
X_3赋值:MACD.DIF#WEEK
X_4赋值:MACD.DEA#WEEK
X_5赋值:MACD.DIF
X_6赋值:MACD.DEA
X_7赋值:X_5上穿X_6
X_8赋值:X_3上穿X_4
X_9赋值:X_1上穿X_2
X_10:=IF(X_3上穿X_4,MACD.DIF+0.1,0)
X_11:=IF(X_5>X_6 AND X_3>X_4 AND X_9 OR (X_3>X_4 AND X_1>X_2 AND X_7) AND 收盘价/1日前的收盘价>1.08 OR (X_1>X_2 AND X_5>X_6 AND X_8) OR (X_7 AND X_8 AND X_9),MACD.DIF+0.2,0)
STICKLINE(X_10 AND 收盘价/1日前的收盘价>1.05,0,100,3.2,0),COLOR0077FF
STICKLINE(X_10 AND 收盘价/1日前的收盘价>1.05,0,100,2.5,0),COLOR0099FF
STICKLINE(X_10 AND 收盘价/1日前的收盘价>1.05,0,100,1.9,0),COLOR00BBFF
STICKLINE(X_10 AND 收盘价/1日前的收盘价>1.05,0,100,1.2,0),COLOR00DDFF
STICKLINE(X_10 AND 收盘价/1日前的收盘价>1.05,0,100,0.3,0),画黄色
STICKLINE(X_11 AND 收盘价/1日前的收盘价>1.08,0,100,3,0),COLOR000099
STICKLINE(X_11 AND 收盘价/1日前的收盘价>1.08,0,100,2.2,0),COLOR0000CC
STICKLINE(X_11 AND 收盘价/1日前的收盘价>1.08,0,100,1.5,0),画红色
STICKLINE(X_11 AND 收盘价/1日前的收盘价>1.08,0,100,0.5,0),COLORCC66FF
STICKLINE(X_11 AND 收盘价/1日前的收盘价>1.08,0,100,0.5,0),画黄色
DRAWTEXT(X_11 AND 收盘价/1日前的收盘价>1.08,80,'★战神妖股'),画黄色
DRAWTEXT(X_10 AND 收盘价/1日前的收盘价>1.05,60,'★战神龙头'),画红色
DRAWTEXT(X_11 AND X_10 AND 收盘价/1日前的收盘价>1.05,40,'★战神王者'),画洋红色