超赢王之庄家决策通达信指标 副图 源码 测试图
X_1:=EMA(SLOPE(CLOSE,4)*20+CLOSE,42);
X_2:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
X_3:=SMA(X_2,3,1);
X_4:=SMA(X_3,3,1);
X_5:=3*X_3-2*X_4;
X_6:=100*((EMA((HIGH+LOW)/2,3)-LLV(EMA((HIGH+LOW)/2,5),30)-(EMA(HIGH,20)-EMA(LOW,20)))/(LLV(EMA((HIGH+LOW)/2,5),30)-(EMA(HIGH,20)-EMA(LOW,20))));
X_7:=IF(EMA(CLOSE,2)>X_1 AND X_6>0,EMA(CLOSE,3),LLV(EMA((HIGH+LOW)/2,5),30));
X_8:=IF(EMA(CLOSE,2)>X_1 AND X_6>0,LLV(EMA((HIGH+LOW)/2,5),30),EMA(CLOSE,5));
回归斜率带:DRAWBAND(X_1,RGB(235,0,230),REF(X_1,2),RGB(0,104,154));
X_9:=SMA(CLOSE,6.5,1);
一号支撑线:SMA(CLOSE,14.5,1);
X_10:=SMA(CLOSE,3,1);
X_11:=SMA(CLOSE,8,1);
X_12:=SMA(CLOSE,3.5,1);
{DRAWTEXT(CROSS(X_11,X_10),HIGH*1.08,36),COLORGREEN;}
X_13:=(MA(CLOSE,3)+MA(CLOSE,6)+MA(CLOSE,12)+MA(CLOSE,25))/4;
X_14:=X_13+3*STD(X_13,13);
X_15:=X_13-3*STD(X_13,13);
X_16:=MA(CLOSE,55);
X_17:=REF(CLOSE,1);
X_18:=SMA(MAX(CLOSE-X_17,0),6,1)/SMA(ABS(CLOSE-X_17),6,1)*100;
{DRAWTEXT(CROSS(82,X_18) AND CLOSE<X_10,HIGH*1.04,37),COLORFF9966,LINETHICK2;}
X_19:=(2*CLOSE+HIGH+LOW)/4;
操作:MA(X_19,5),COLORBLUE,LINETHICK2;
X_20:=MA(X_19,5)*1.03;
X_21:=MA(X_19,5)*0.97;
{DRAWTEXT(CROSS(X_10,X_9) AND X_10>操作,LOW*0.92,38),COLORYELLOW;}
VAR1:LLV(X_19,21);
VAR2:HHV(X_19,30);
{DRAWTEXT(CROSS(X_10,操作) AND X_10<一号支撑线 AND X_10<X_11 AND X_10<X_9 AND CLOSE>VAR1,LOW*0.98,39),COLORYELLOW;}
X_22:=操作>=REF(操作,1);
X_23:=MAX(MAX(X_9,X_11),一号支撑线);
X_24:=MIN(MIN(X_9,X_11),一号支撑线);
{DRAWTEXT(CROSS(X_10,X_11) AND X_10>操作,LOW*0.98,40),COLORYELLOW;}
X_25:=EMA((X_19-VAR1)/(VAR2-VAR1)*100,7);
X_26:=EMA(0.667*REF(X_25,1)+0.333*X_25,5);
X_27:=1000*操作/一号支撑线<=1015 AND 1000*操作/一号支撑线>=975;
X_28:=1000*X_11/一号支撑线<=1020 AND X_11/一号支撑线>=980;
X_29:=1000*X_9/一号支撑线<=1015 AND X_9/一号支撑线>=985;
{DRAWTEXT(IF(COUNT(CLOSE<REF(CLOSE,1),13)/13>6/10 AND COUNT(X_25>X_26,6) AND REF(LOW,5)=LLV(LOW,120) AND REF(CLOSE>=OPEN,4) AND REF(CLOSE>OPEN,3) AND REF(CLOSE>OPEN,2) AND REF(OPEN>CLOSE,1) AND OPEN>REF(CLOSE,1),1,0),LOW*0.94,38),COLORYELLOW;}
X_30:=MA(CLOSE,89)-MA(CLOSE,10)/3;
{DRAWTEXT(IF(CLOSE<X_30 AND VOL/240>MA(VOL,5)/240 AND CLOSE>REF(CLOSE,1)*1.08 AND CLOSE<MA(CLOSE,13)*1.3,1,0),LOW*0.88,20),COLORBROWN;}
X_31:=(CLOSE-LLV(LOW,25))/(HHV(HIGH,25)-LLV(LOW,25))*100;
X_32:=SMA(X_31,3,1);
X_33:=SMA(X_32,3,1);
X_34:=3*X_32-2*X_33;
X_35:=(2*CLOSE+HIGH+LOW)/3;
X_36:=EMA(EMA(EMA(X_35,4),4),4);
X_37:=(X_36-REF(X_36,1))/REF(X_36,1)*100;
X_38:=MA(X_37,3)+0.03;
X_39:=MA(X_37,1);
DRAWICON(CROSS(X_38,X_39) AND X_34>65,HIGH*1.02,15),COLORGREEN;
DRAWICON(CROSS(X_39,X_38),LOW*0.9,9),COLORYELLOW;
{DRAWTEXT(CLOSE>OPEN AND X_23<CLOSE AND OPEN<X_24 AND X_22 AND CROSS(X_10,操作) AND LOW>VAR1 AND X_10>一号支撑线 AND X_34<90,LOW*0.9,41),COLORRED;}
{DRAWTEXT(CROSS(X_10,操作) AND X_27 AND X_28 AND X_29,LOW*0.94,38),COLORYELLOW;}
{DRAWTEXT(CLOSE>OPEN AND X_9>X_11 AND X_11>一号支撑线 AND CLOSE>MA(CLOSE,一号支撑线) AND 操作>=REF(CLOSE,操作) AND CROSS(X_10,操作) AND LOW>VAR1 AND X_34<90,LOW*0.9,41),COLORRED;}
{DRAWTEXT(CLOSE>OPEN AND 操作>X_9 AND X_9>X_11 AND X_11>一号支撑线 AND CROSS(X_10,操作) AND LOW>VAR1 AND X_34<90,LOW*0.86,42),COLORRED;}
{DRAWTEXT(CLOSE>OPEN AND CROSS(X_9,一号支撑线) AND LOW>VAR1 AND X_34<90,LOW*0.86,42),COLORRED;}
STICKLINE(CLOSE>REF(CLOSE,1),HIGH,LOW,0,0),COLORRED;
STICKLINE(CLOSE<OPEN AND CLOSE>REF(CLOSE,1),CLOSE,OPEN,3,0),COLORFFCC00;
STICKLINE(CLOSE>REF(CLOSE,1) AND CLOSE>OPEN,OPEN,CLOSE,3,0),COLOR000055;
STICKLINE(CLOSE>REF(CLOSE,1) AND CLOSE>OPEN,OPEN,CLOSE,2.7,0),COLOR000077;
STICKLINE(CLOSE>REF(CLOSE,1) AND CLOSE>OPEN,OPEN,CLOSE,2.1,0),COLOR000099;
STICKLINE(CLOSE>REF(CLOSE,1),OPEN,CLOSE,1.5,0),COLOR0000BB;
STICKLINE(CLOSE>REF(CLOSE,1),OPEN,CLOSE,0.9,0),COLOR0000DD;
STICKLINE(CLOSE>REF(CLOSE,1),OPEN,CLOSE,0.3,0),COLORRED;
STICKLINE(CLOSE=REF(CLOSE,1),HIGH,LOW,3,1),COLOR999999;
STICKLINE(CLOSE=REF(CLOSE,1),HIGH,LOW,0,0),COLORWHITE;
STICKLINE(CLOSE=REF(CLOSE,1),OPEN,CLOSE,3,0),COLOR555555;
STICKLINE(CLOSE=REF(CLOSE,1),OPEN,CLOSE,2.7,0),COLOR777777;
STICKLINE(CLOSE=REF(CLOSE,1),OPEN,CLOSE,2.1,0),COLOR999999;
STICKLINE(CLOSE=REF(CLOSE,1),OPEN,CLOSE,1.5,0),COLORBBBBBB;
STICKLINE(CLOSE=REF(CLOSE,1),OPEN,CLOSE,0.9,0),COLORDDDDDD;
STICKLINE(CLOSE=REF(CLOSE,1),OPEN,CLOSE,0.3,0),COLORWHITE;
STICKLINE(CLOSE<REF(CLOSE,1),HIGH,LOW,0,1),COLORCYAN;
STICKLINE(CLOSE<REF(CLOSE,1) AND CLOSE>OPEN,CLOSE,OPEN,3,0),COLORFFCC00;
STICKLINE(CLOSE<REF(CLOSE,1) AND CLOSE<OPEN,OPEN,CLOSE,3,0),COLOR990000;
STICKLINE(CLOSE<REF(CLOSE,1) AND CLOSE<OPEN,OPEN,CLOSE,2.7,0),COLORCC0000;
STICKLINE(CLOSE<REF(CLOSE,1),OPEN,CLOSE,2.1,0),COLORFF4400;
STICKLINE(CLOSE<REF(CLOSE,1),OPEN,CLOSE,1.5,0),COLORFF8800;
STICKLINE(CLOSE<REF(CLOSE,1),OPEN,CLOSE,0.9,0),COLORFFCC00;
STICKLINE(CROSS(X_34,X_33) AND X_34<70,CLOSE,OPEN,3.2,0),COLORBB00FF;
STICKLINE(CROSS(X_34,X_33) AND X_34<70,CLOSE,OPEN,2.7,0),COLORFF33FF;
STICKLINE(CROSS(X_34,X_33) AND X_34<70,CLOSE,OPEN,2.1,0),COLORFF66FF;
STICKLINE(CROSS(X_34,X_33) AND X_34<70,CLOSE,OPEN,1.5,0),COLORFF99FF;
STICKLINE(CROSS(X_34,X_33) AND X_34<70,CLOSE,OPEN,0.9,0),COLORFFBBFF;
STICKLINE(CROSS(X_34,X_33) AND X_34<70,CLOSE,OPEN,0.3,0),COLORFFDDFF;
来函数检测结果如下:
该公式没有未来函数
解密、编写股票、期货策略请联系QQ或微信同号:88652583
相关股票指标公式
原理解析:
X_1赋值:EMA(SLOPE(收盘价,4)*20+收盘价,42)
X_2赋值:(收盘价-9日内最低价最低值)/(9日内最高价最高值-9日内最低价最低值)*100
X_2的3日[1日权重]移动平均
X_3的3日[1日权重]移动平均
X_5赋值:3*X_3-2*X_4
X_6赋值:100*((EMA((最高价+最低价)/2,3)-LLV(EMA((最高价+最低价)/2,5),30)-(EMA(最高价,20)-EMA(最低价,20)))/(LLV(EMA((最高价+最低价)/2,5),30)-(EMA(最高价,20)-EMA(最低价,20))))
X_7赋值:IF(收盘价的2日指数移动平均>X_1 AND X_6>0,收盘价的3日指数移动平均,LLV(EMA((最高价+最低价)/2,5),30))
X_8赋值:IF(收盘价的2日指数移动平均>X_1 AND X_6>0,LLV(EMA((最高价+最低价)/2,5),30),EMA(收盘价,5))
输出回归斜率带:DRAWBAND(X_1,RGB(235,0,230),2日前的X_1,RGB(0,104,154))
收盘价的6.5日[1日权重]移动平均
收盘价的14.5日[1日权重]移动平均
收盘价的3日[1日权重]移动平均
收盘价的8日[1日权重]移动平均
收盘价的3.5日[1日权重]移动平均
{DRAWTEXT(X_11上穿X_10,最高价*1.08,36),画绿色
}
X_13:=(收盘价的3日简单移动平均+收盘价的6日简单移动平均+收盘价的12日简单移动平均+收盘价的25日简单移动平均)/4
X_14:=X_13+3*X_13的13估算标准差
X_15:=X_13-3*X_13的13估算标准差
X_16:=收盘价的55日简单移动平均
X_17:=1日前的收盘价
X_18:=SMA(收盘价-X_17和0较大值,6,1)/SMA(收盘价-X_17的绝对值,6,1)*100
{DRAWTEXT(82上穿X_18 AND 收盘价}
X_19:=(2*收盘价+最高价+最低价)/4
输出操作:X_19的5日简单移动平均, 画蓝色, 线宽为2
X_20:=X_19的5日简单移动平均*1.03
X_21:=X_19的5日简单移动平均*0.97
{DRAWTEXT(X_10上穿X_9 AND X_10>操作,最低价*0.92,38),画黄色
输出}
VAR1:21日内X_19最低值
输出VAR2:30日内X_19最高值
{DRAWTEXT(X_10上穿操作 AND X_10<一号支撑线 AND X_10VAR1,最低价*0.98,39),画黄色
}
X_22:=操作>=1日前的操作
X_23:=X_9和X_11较大值,一号支撑线)
X_24:=X_9和X_11的较小值,一号支撑线)
{DRAWTEXT(X_10上穿X_11 AND X_10>操作,最低价*0.98,40),画黄色
}
X_25:=EMA((X_19-VAR1)/(VAR2-VAR1)*100,7)
X_26:=E0.667*1日前的X_25+0.333*X_25的5日简单移动平均
X_27:=1000*操作/一号支撑线<=1015 AND 1000*操作/一号支撑线>=975
X_28:=1000*X_11/一号支撑线<=1020 AND X_11/一号支撑线>=980
X_29:=1000*X_9/一号支撑线<=1015 AND X_9/一号支撑线>=985
{DRAWTEXT(IF(COUNT(收盘价<1日前的收盘价,13)/13>6/10 AND COUNT(X_25>X_26,6) AND 5日前的最低价=120日内最低价最低值 AND 4日前的收盘价>=开盘价 AND 3日前的收盘价>开盘价 AND 2日前的收盘价>开盘价 AND 1日前的开盘价>收盘价 AND 开盘价>1日前的收盘价,1,0),最低价*0.94,38),画黄色
}
X_30:=收盘价的89日简单移动平均-收盘价的10日简单移动平均/3
{DRAWTEXT(IF(收盘价成交量的5日简单移动平均/240 AND 收盘价>1日前的收盘价*1.08 AND 收盘价<收盘价的13日简单移动平均*1.3,1,0),最低价*0.88,20),COLORBROWN
}
X_31:=(收盘价-25日内最低价最低值)/(25日内最高价最高值-25日内最低价最低值)*100
X_31的3日[1日权重]移动平均
X_32的3日[1日权重]移动平均
X_34:=3*X_32-2*X_33
X_35:=(2*收盘价+最高价+最低价)/3
X_36:=X_35的4日指数移动平均,4),4)
X_37:=(X_36-1日前的X_36)/1日前的X_36*100
X_38:=X_37的3日简单移动平均+0.03
X_39:=X_37的1日简单移动平均
DRAWICON(X_38上穿X_39 AND X_34>65,最高价*1.02,15),画绿色
DRAWICON(X_39上穿X_38,最低价*0.9,9),画黄色
{DRAWTEXT(收盘价>开盘价 AND X_23<收盘价 AND 开盘价VAR1 AND X_10>一号支撑线 AND X_34<90,最低价*0.9,41),画红色
}
{DRAWTEXT(X_10上穿操作 AND X_27 AND X_28 AND X_29,最低价*0.94,38),画黄色
}
{DRAWTEXT(收盘价>开盘价 AND X_9>X_11 AND X_11>一号支撑线 AND 收盘价>收盘价的一号支撑线日简单移动平均 AND 操作>=操作日前的收盘价 AND X_10上穿操作 AND 最低价>VAR1 AND X_34<90,最低价*0.9,41),画红色
}
{DRAWTEXT(收盘价>开盘价 AND 操作>X_9 AND X_9>X_11 AND X_11>一号支撑线 AND X_10上穿操作 AND 最低价>VAR1 AND X_34<90,最低价*0.86,42),画红色
}
{DRAWTEXT(收盘价>开盘价 AND X_9上穿一号支撑线 AND 最低价>VAR1 AND X_34<90,最低价*0.86,42),画红色
}
STICKLINE(收盘价>1日前的收盘价,最高价,最低价,0,0),画红色
STICKLINE(收盘价<开盘价 AND 收盘价>1日前的收盘价,收盘价,开盘价,3,0),COLORFFCC00
STICKLINE(收盘价>1日前的收盘价 AND 收盘价>开盘价,开盘价,收盘价,3,0),COLOR000055
STICKLINE(收盘价>1日前的收盘价 AND 收盘价>开盘价,开盘价,收盘价,2.7,0),COLOR000077
STICKLINE(收盘价>1日前的收盘价 AND 收盘价>开盘价,开盘价,收盘价,2.1,0),COLOR000099
STICKLINE(收盘价>1日前的收盘价,开盘价,收盘价,1.5,0),COLOR0000BB
STICKLINE(收盘价>1日前的收盘价,开盘价,收盘价,0.9,0),COLOR0000DD
STICKLINE(收盘价>1日前的收盘价,开盘价,收盘价,0.3,0),画红色
STICKLINE(收盘价=1日前的收盘价,最高价,最低价,3,1),COLOR999999
STICKLINE(收盘价=1日前的收盘价,最高价,最低价,0,0),画白色
STICKLINE(收盘价=1日前的收盘价,开盘价,收盘价,3,0),COLOR555555
STICKLINE(收盘价=1日前的收盘价,开盘价,收盘价,2.7,0),COLOR777777
STICKLINE(收盘价=1日前的收盘价,开盘价,收盘价,2.1,0),COLOR999999
STICKLINE(收盘价=1日前的收盘价,开盘价,收盘价,1.5,0),COLORBBBBBB
STICKLINE(收盘价=1日前的收盘价,开盘价,收盘价,0.9,0),COLORDDDDDD
STICKLINE(收盘价=1日前的收盘价,开盘价,收盘价,0.3,0),画白色
STICKLINE(收盘价<1日前的收盘价,最高价,最低价,0,1),画青色
STICKLINE(收盘价<1日前的收盘价 AND 收盘价>开盘价,收盘价,开盘价,3,0),COLORFFCC00
STICKLINE(收盘价<1日前的收盘价 AND 收盘价<开盘价,开盘价,收盘价,3,0),COLOR990000
STICKLINE(收盘价<1日前的收盘价 AND 收盘价<开盘价,开盘价,收盘价,2.7,0),COLORCC0000
STICKLINE(收盘价<1日前的收盘价,开盘价,收盘价,2.1,0),COLORFF4400
STICKLINE(收盘价<1日前的收盘价,开盘价,收盘价,1.5,0),COLORFF8800
STICKLINE(收盘价<1日前的收盘价,开盘价,收盘价,0.9,0),COLORFFCC00
STICKLINE(X_34上穿X_33 AND X_34<70,收盘价,开盘价,3.2,0),COLORBB00FF
STICKLINE(X_34上穿X_33 AND X_34<70,收盘价,开盘价,2.7,0),COLORFF33FF
STICKLINE(X_34上穿X_33 AND X_34<70,收盘价,开盘价,2.1,0),COLORFF66FF
STICKLINE(X_34上穿X_33 AND X_34<70,收盘价,开盘价,1.5,0),COLORFF99FF
STICKLINE(X_34上穿X_33 AND X_34<70,收盘价,开盘价,0.9,0),COLORFFBBFF
STICKLINE(X_34上穿X_33 AND X_34<70,收盘价,开盘价,0.3,0),COLORFFDDFF