通达信王者多空博弈主副图指标 多方获胜选股预警 源码
{多空博弈主图源码如下}
HGW1:=EMA(WINNER(CLOSE)*70,3);
HGW2:=EMA((WINNER(CLOSE*1.1)-WINNER(CLOSE*0.9))*80,3);
HGW3:=HGW2/(HGW1+HGW2)*100;
HGW4:=HGW1/(HGW1+HGW2)*100;
HGW5:=MA(HGW1+HGW2,13);
HGW6:=BARSLAST(HGW3< 90 AND REF(HGW3,1)>90);
HGW7:=EMA(HGW3,89);
HGW8:=EMA(HGW4,89);
HGW9:=INTPART(HGW4-HGW8);
操盘线:MA(CLOSE,5),COLORWHITE,LINETHICK1 DOTLINE;
生命线:MA(CLOSE,10)LINETHICK1 ;
空方博弈强度:=INTPART(HGW3),COLORYELLOW;
多方博弈强度:=INTPART(HGW4),COLORCYAN;
资金流入强度:=HGW9,LINETHICK2,COLORRED;
市场筹码总量:=INTPART(HGW5),COLORWHITE,NODRAW;
轴:=50,COLORGREEN,DOTLINE,LINETHICK1;
DRAWICON(CROSS(多方博弈强度,轴),L,9);
STICKLINE(CROSS(多方博弈强度,轴),OPEN,CLOSE,1,0),COLORYELLOW;
DRAWTEXT(CROSS(多方博弈强度,轴),L,'↖多方获胜'),COLORYELLOW;
{多空博弈副图源码如下}
HGW1:=EMA(WINNER(CLOSE)*70,3);
HGW2:=EMA((WINNER(CLOSE*1.1)-WINNER(CLOSE*0.9))*80,3);
HGW3:=HGW2/(HGW1+HGW2)*100;
HGW4:=HGW1/(HGW1+HGW2)*100;
HGW5:=MA(HGW1+HGW2,13);
HGW6:=BARSLAST(HGW3< 90 AND REF(HGW3,1)>90);
HGW7:=EMA(HGW3,89);
HGW8:=EMA(HGW4,89);
HGW9:=INTPART(HGW4-HGW8);
STICKLINE(C>0,HGW3,HGW4,0,0),COLOREEEEEE;
STICKLINE(HGW7>REF(HGW7,1),HGW3,HGW7,1,0),COLORAAAAAA;
STICKLINE(C>0,HGW4,0,0,0),COLORBLUE;
STICKLINE(HGW4>75,HGW4,0,2,0),COLORFFFFFF;
未来函数检测结果如下:
该公式包含未来函数:WINNER
解密、编写股票、期货策略请联系QQ或微信同号:88652583
相关股票指标公式
原理解析:
{多空博弈主图源码如下}HGW1赋值:EMA(收盘价计算的获利盘比例*70,3)
HGW2赋值:EMA((收盘价*1.1计算的获利盘比例-WINNER(收盘价*0.9))*80,3)
HGW3赋值:HGW2/(HGW1+HGW2)*100
HGW4赋值:HGW1/(HGW1+HGW2)*100
HGW5赋值:HGW1+HGW2的13日简单移动平均
HGW6赋值:上次HGW3< 90 AND 1日前的HGW3>90距今天数
HGW7赋值:HGW3的89日指数移动平均
HGW8赋值:HGW4的89日指数移动平均
HGW9赋值:INTPART(HGW4-HGW8)
输出操盘线:收盘价的5日简单移动平均,画白色,LINETHICK1 DOTLINE
输出生命线:收盘价的10日简单移动平均LINETHICK1
空方博弈强度赋值:INTPART(HGW3),画黄色
多方博弈强度赋值:INTPART(HGW4),画青色
资金流入强度赋值:HGW9, 线宽为2,画红色
市场筹码总量赋值:INTPART(HGW5),画白色,NODRAW
轴赋值:50,画绿色,DOTLINE,LINETHICK1
DRAWICON(多方博弈强度上穿轴,L,9)
STICKLINE(多方博弈强度上穿轴,开盘价,收盘价,1,0),画黄色
DRAWTEXT(多方博弈强度上穿轴,L,'↖多方获胜'),画黄色
{多空博弈副图源码如下}HGW1赋值:EMA(收盘价计算的获利盘比例*70,3)
HGW2赋值:EMA((收盘价*1.1计算的获利盘比例-WINNER(收盘价*0.9))*80,3)
HGW3赋值:HGW2/(HGW1+HGW2)*100
HGW4赋值:HGW1/(HGW1+HGW2)*100
HGW5赋值:HGW1+HGW2的13日简单移动平均
HGW6赋值:上次HGW3< 90 AND 1日前的HGW3>90距今天数
HGW7赋值:HGW3的89日指数移动平均
HGW8赋值:HGW4的89日指数移动平均
HGW9赋值:INTPART(HGW4-HGW8)
当满足条件C>0时,在HGW3和HGW4之间画柱状线
STICKLINE(HGW7>1日前的HGW7,HGW3,HGW7,1,0),COLORAAAAAA
当满足条件C>0时,在HGW4和0之间画柱状线
当满足条件HGW4>75时,在HGW4和0之间画柱状线