超级疯牛2 通达信公式 副图 源码附图
牛股出现预警:WINNER(CLOSE/1.2)*100,NODRAW,COLORYELLOW;
主力赢利25持仓:WINNER(CLOSE/1.25)*100,NODRAW,COLORMAGENTA;
主力赢利35锁仓:WINNER(CLOSE/1.35)*100,NODRAW,COLOR0089FF;
庄巨量控盘锁仓:WINNER(CLOSE/1.4)*100,NODRAW,COLORFF0080;
X_1:=55;
X_2:=65;
X_3:=(HIGH+OPEN+LOW+3*CLOSE)/6;
X_4:=EMA(100-100/(1+SUM(IF(X_3>REF(X_3,1),X_3*VOL,0),14)/SUM(IF(X_3<REF(X_3,1),X_3*VOL,0),14)),5);
X_5:=(CLOSE-MA(CLOSE,21))/MA(CLOSE,21)*100;
X_6:=(CLOSE-LLV(LOW,43))/(HHV(HIGH,43)-LLV(LOW,43))*100;
X_7:=SMA(X_6,2,1);
X_8:=SMA(X_7,2,1);
X_9:=VOL/CAPITAL*100;
X_10:=50;
X_11:=65;
X_12:=75;
X_13:=(HIGH+LOW+2*OPEN+3*CLOSE)/7;
X_14:=INTPART(276/POW(PERIOD-1.7,3.1)-1.1);
X_15:=INTPART(1.8*X_14);
X_16:=INTPART(0.5*X_14);
X_17:=INTPART(0.67*X_14);
X_18:=(CLOSE-REF(CLOSE,12))/REF(CLOSE,12)*100;
X_19:=MA(X_18,6);
X_20:=EMA(X_18,9);
STICKLINE(CROSS(牛股出现预警,X_1),0,120,2,0),COLORCYAN,LINETHICK2;
DRAWTEXT(CROSS(牛股出现预警,X_1),150,1),COLORCYAN;
STICKLINE(CROSS(主力赢利35锁仓,X_1) AND X_4>55,0,150,2,0),COLORFF937F,LINETHICK2;
DRAWTEXT(CROSS(主力赢利35锁仓,X_1) AND X_4>55,185,2),COLORMAGENTA;
STICKLINE(CROSS(主力赢利35锁仓,X_2) AND X_9<4 AND X_8>90 AND 主力赢利35锁仓>50 AND X_4>60,0,260,2,0),COLOR00FF0F,LINETHICK2;
DRAWTEXT(CROSS(主力赢利35锁仓,X_2) AND X_9<4 AND X_8>90 AND 主力赢利35锁仓>50 AND X_4>60,240,3),COLOR00FF0F;
STICKLINE(主力赢利25持仓>20,牛股出现预警,0,2,0),COLORYELLOW,LINETHICK2;
STICKLINE(X_8>60 AND 主力赢利25持仓>30 AND X_4>50,主力赢利25持仓,2,2,0),COLORMAGENTA,LINETHICK2;
STICKLINE(X_9<6 AND X_8>70 AND 主力赢利35锁仓>30 AND X_4>60,主力赢利35锁仓,0,2,0),COLOR0089FF,LINETHICK2;
STICKLINE(X_9<4 AND X_8>90 AND 主力赢利35锁仓>50 AND X_4>60,庄巨量控盘锁仓,0,2,0),COLORFF0080,LINETHICK2;
强势区:IF(X_8>60 AND 牛股出现预警>30 AND X_4>50,110,0),COLORWHITE,LINETHICK2;
未来函数检测结果如下:
该公式包含未来函数:WINNER
该公式包含未来函数:CAPITAL
解密、编写股票、期货策略请联系QQ或微信同号:88652583
相关股票指标公式
原理解析:
输出牛股出现预警:收盘价/1.2计算的获利盘比例*100,NODRAW,画黄色
输出主力赢利25持仓:收盘价/1.25计算的获利盘比例*100,NODRAW,画洋红色
输出主力赢利35锁仓:收盘价/1.35计算的获利盘比例*100,NODRAW,COLOR0089FF
输出庄巨量控盘锁仓:收盘价/1.4计算的获利盘比例*100,NODRAW,COLORFF0080
X_1赋值:55
X_2赋值:65
X_3赋值:(最高价+开盘价+最低价+3*收盘价)/6
X_4赋值:EMA(100-100/(1+SUM(IF(X_3>1日前的X_3,X_3*成交量,0),14)/SUM(IF(X_3<1日前的X_3,X_3*成交量,0),14)),5)
X_5赋值:(收盘价-收盘价的21日简单移动平均)/收盘价的21日简单移动平均*100
X_6赋值:(收盘价-43日内最低价最低值)/(43日内最高价最高值-43日内最低价最低值)*100
X_6的2日[1日权重]移动平均
X_7的2日[1日权重]移动平均
X_9赋值:成交量/当前流通股本*100
X_10:=50
X_11:=65
X_12:=75
X_13:=(最高价+最低价+2*开盘价+3*收盘价)/7
X_14:=INTPART(276/POW(PERIOD-1.7,3.1)-1.1)
X_15:=INTPART(1.8*X_14)
X_16:=INTPART(0.5*X_14)
X_17:=INTPART(0.67*X_14)
X_18:=(收盘价-12日前的收盘价)/12日前的收盘价*100
X_19:=X_18的6日简单移动平均
X_20:=X_18的9日指数移动平均
STICKLINE(牛股出现预警上穿X_1,0,120,2,0),画青色, 线宽为2
DRAWTEXT(牛股出现预警上穿X_1,150,1),画青色
STICKLINE(主力赢利35锁仓上穿X_1 AND X_4>55,0,150,2,0),COLORFF937F, 线宽为2
DRAWTEXT(主力赢利35锁仓上穿X_1 AND X_4>55,185,2),画洋红色
STICKLINE(主力赢利35锁仓上穿X_2 AND X_9<4 AND X_8>90 AND 主力赢利35锁仓>50 AND X_4>60,0,260,2,0),COLOR00FF0F, 线宽为2
DRAWTEXT(主力赢利35锁仓上穿X_2 AND X_9<4 AND X_8>90 AND 主力赢利35锁仓>50 AND X_4>60,240,3),COLOR00FF0F
当满足条件主力赢利25持仓>20时,在牛股出现预警和0之间画柱状线
当满足条件X_8>60 AND 主力赢利25持仓>30 AND X_4>50时,在主力赢利25持仓和2之间画柱状线
当满足条件X_9<6 AND X_8>70 AND 主力赢利35锁仓>30 AND X_4>60时,在主力赢利35锁仓和0之间画柱状线
当满足条件X_9<4 AND X_8>90 AND 主力赢利35锁仓>50 AND X_4>60时,在庄巨量控盘锁仓和0之间画柱状线
如果X_8>60 AND 牛股出现预警>30 AND X_4>50返回110否则返回0