一、指标源码
{牛魔王原版主图}
ZBXQ0:=(HY_INDEXC-REF(HY_INDEXC,1))/REF(HY_INDEXC,1)*100;
NS1:=STRSPACE(VAR2STR(ZBXQ0,2));
ZBXQ1:=(REF(HY_INDEXC,1)-REF(HY_INDEXC,2))/REF(HY_INDEXC,2)*100;
NS2:=STRSPACE(VAR2STR(ZBXQ1,2));
ZBXQ2:=(REF(HY_INDEXC,2)-REF(HY_INDEXC,3))/REF(HY_INDEXC,3)*100;
NS3:=STRSPACE(VAR2STR(ZBXQ2,2));
ZBXQ3:=(REF(HY_INDEXC,3)-REF(HY_INDEXC,4))/REF(HY_INDEXC,4)*100;
NS4:=STRSPACE(VAR2STR(ZBXQ3,2));
ZBXQ4:=(REF(HY_INDEXC,4)-REF(HY_INDEXC,5))/REF(HY_INDEXC,5)*100;
NS5:=STRSPACE(VAR2STR(ZBXQ4,2));
NS6:=VARCAT(NS5,NS4);
NS7:=VARCAT(NS3,NS2);
NSA:=VARCAT(NS6,NS7);
NSA0:=VARCAT(NSA,NS1);
ZBXQ买线:=EMA(C,2);
ZBXQ卖线:=EMA(SLOPE(C,21)*20+C,42);
买:=CROSS(ZBXQ买线,ZBXQ卖线);
卖:=CROSS(ZBXQ卖线,ZBXQ买线);
STICKLINE(ZBXQ买线>=ZBXQ卖线,L,H,0.0,1),COLORRED;
STICKLINE(ZBXQ买线>=ZBXQ卖线,C,O,3,1),COLORRED;
STICKLINE(ZBXQ买线>=ZBXQ卖线 AND C<O,C,O,3,0),COLORRED;
STICKLINE(ZBXQ买线<ZBXQ卖线,L,H,0.0,1),COLOR228822;
STICKLINE(ZBXQ买线<ZBXQ卖线,C,O,3,1),COLOR228822;
STICKLINE(ZBXQ买线<ZBXQ卖线 AND C<O,C,O,3,0),COLOR228822;
J:=(L+H+C)/3;N:=EMA(J,10);S:=REF(N,1);
STICKLINE(N>S ,N ,S ,-1 ,0 ),COLOR00AAFF;
STICKLINE(N<S ,S ,N ,-1 ,0 ),COLORBLUE;
DRAWTEXT(N>S AND C>O AND C>REF(C,1) AND NOT(REF(N>S,1)),S*0.98,'买入'),COLORWHITE;
MA5:=MA(C,5);
DR2:=ABS(C-REF(C,30));
VR2:=SUM(ABS(C-REF(C,1)),30);
ER2:=DR2/VR2;
WX2:=ER2*(0.8-2/24)+2/24;
WU2:=WX2*WX2;
WS2:=ABS(((3.48*C+H+L)/4-EMA(C,20))/EMA(C,20));
WS3:=DMA(((2.15*C+L+H)/4),WS2);
STICKLINE(C/REF(C,1)>1.095,C,O,2,0),COLORYELLOW;
{牛魔王原版副图}
ZBXQ0:=(HY_INDEXC-REF(HY_INDEXC,1))/REF(HY_INDEXC,1)*100;
NS1:=STRSPACE(VAR2STR(ZBXQ0,2));
ZBXQ1:=(REF(HY_INDEXC,1)-REF(HY_INDEXC,2))/REF(HY_INDEXC,2)*100;
NS2:=STRSPACE(VAR2STR(ZBXQ1,2));
ZBXQ2:=(REF(HY_INDEXC,2)-REF(HY_INDEXC,3))/REF(HY_INDEXC,3)*100;
NS3:=STRSPACE(VAR2STR(ZBXQ2,2));
ZBXQ3:=(REF(HY_INDEXC,3)-REF(HY_INDEXC,4))/REF(HY_INDEXC,4)*100;
NS4:=STRSPACE(VAR2STR(ZBXQ3,2));
ZBXQ4:=(REF(HY_INDEXC,4)-REF(HY_INDEXC,5))/REF(HY_INDEXC,5)*100;
NS5:=STRSPACE(VAR2STR(ZBXQ4,2));
NS6:=VARCAT(NS5,NS4);
NS7:=VARCAT(NS3,NS2);
NSA:=VARCAT(NS6,NS7);
NSA0:=VARCAT(NSA,NS1);
ZBXQ买线:=EMA(C,2);
ZBXQ卖线:=EMA(SLOPE(C,21)*20+C,42);
买:=CROSS(ZBXQ买线,ZBXQ卖线);
卖:=CROSS(ZBXQ卖线,ZBXQ买线);
J:=(L+H+C)/3;N:=EMA(J,10);S:=REF(N,1);
XH:=N>S AND C>O AND C>REF(C,1) AND NOT(REF(N>S,1));
STICKLINE(XH,0,0.6,2,0),COLORYELLOW;
{牛魔王原版选股}
ZBXQ0:=(HY_INDEXC-REF(HY_INDEXC,1))/REF(HY_INDEXC,1)*100;
NS1:=STRSPACE(VAR2STR(ZBXQ0,2));
ZBXQ1:=(REF(HY_INDEXC,1)-REF(HY_INDEXC,2))/REF(HY_INDEXC,2)*100;
NS2:=STRSPACE(VAR2STR(ZBXQ1,2));
ZBXQ2:=(REF(HY_INDEXC,2)-REF(HY_INDEXC,3))/REF(HY_INDEXC,3)*100;
NS3:=STRSPACE(VAR2STR(ZBXQ2,2));
ZBXQ3:=(REF(HY_INDEXC,3)-REF(HY_INDEXC,4))/REF(HY_INDEXC,4)*100;
NS4:=STRSPACE(VAR2STR(ZBXQ3,2));
ZBXQ4:=(REF(HY_INDEXC,4)-REF(HY_INDEXC,5))/REF(HY_INDEXC,5)*100;
NS5:=STRSPACE(VAR2STR(ZBXQ4,2));
NS6:=VARCAT(NS5,NS4);
NS7:=VARCAT(NS3,NS2);
NSA:=VARCAT(NS6,NS7);
NSA0:=VARCAT(NSA,NS1);
ZBXQ买线:=EMA(C,2);
ZBXQ卖线:=EMA(SLOPE(C,21)*20+C,42);
买:=CROSS(ZBXQ买线,ZBXQ卖线);
卖:=CROSS(ZBXQ卖线,ZBXQ买线);
J:=(L+H+C)/3;N:=EMA(J,10);S:=REF(N,1);
XH:N>S AND C>O AND C>REF(C,1) AND NOT(REF(N>S,1));
{牛魔王优化版副图}
ZBXQ0:=(HY_INDEXC-REF(HY_INDEXC,1))/REF(HY_INDEXC,1)*100;
NS1:=STRSPACE(VAR2STR(ZBXQ0,2));
ZBXQ1:=(REF(HY_INDEXC,1)-REF(HY_INDEXC,2))/REF(HY_INDEXC,2)*100;
NS2:=STRSPACE(VAR2STR(ZBXQ1,2));
ZBXQ2:=(REF(HY_INDEXC,2)-REF(HY_INDEXC,3))/REF(HY_INDEXC,3)*100;
NS3:=STRSPACE(VAR2STR(ZBXQ2,2));
ZBXQ3:=(REF(HY_INDEXC,3)-REF(HY_INDEXC,4))/REF(HY_INDEXC,4)*100;
NS4:=STRSPACE(VAR2STR(ZBXQ3,2));
ZBXQ4:=(REF(HY_INDEXC,4)-REF(HY_INDEXC,5))/REF(HY_INDEXC,5)*100;
NS5:=STRSPACE(VAR2STR(ZBXQ4,2));
NS6:=VARCAT(NS5,NS4);
NS7:=VARCAT(NS3,NS2);
NSA:=VARCAT(NS6,NS7);
NSA0:=VARCAT(NSA,NS1);
ZBXQ买线:=EMA(C,2);
ZBXQ卖线:=EMA(SLOPE(C,21)*20+C,42);
买:=CROSS(ZBXQ买线,ZBXQ卖线);
卖:=CROSS(ZBXQ卖线,ZBXQ买线);
J:=(L+H+C)/3;N:=EMA(J,10);S:=REF(N,1);
DIF:=EMA(CLOSE,12)-EMA(CLOSE,26);
DEA:=EMA(DIF,9);
MACD:=(DIF-DEA)*2;
X1:=DIF>0;{MACD在0轴上方}
X12:=MACD>0;
SSG:=X1 AND X12;
XH:=N>S AND C>O AND C>REF(C,1) AND SSG AND NOT(REF(N>S,1));
STICKLINE(XH,0,0.6,2,0),COLORMAGENTA;
{牛魔王优化版选股}
ZBXQ0:=(HY_INDEXC-REF(HY_INDEXC,1))/REF(HY_INDEXC,1)*100;
NS1:=STRSPACE(VAR2STR(ZBXQ0,2));
ZBXQ1:=(REF(HY_INDEXC,1)-REF(HY_INDEXC,2))/REF(HY_INDEXC,2)*100;
NS2:=STRSPACE(VAR2STR(ZBXQ1,2));
ZBXQ2:=(REF(HY_INDEXC,2)-REF(HY_INDEXC,3))/REF(HY_INDEXC,3)*100;
NS3:=STRSPACE(VAR2STR(ZBXQ2,2));
ZBXQ3:=(REF(HY_INDEXC,3)-REF(HY_INDEXC,4))/REF(HY_INDEXC,4)*100;
NS4:=STRSPACE(VAR2STR(ZBXQ3,2));
ZBXQ4:=(REF(HY_INDEXC,4)-REF(HY_INDEXC,5))/REF(HY_INDEXC,5)*100;
NS5:=STRSPACE(VAR2STR(ZBXQ4,2));
NS6:=VARCAT(NS5,NS4);
NS7:=VARCAT(NS3,NS2);
NSA:=VARCAT(NS6,NS7);
NSA0:=VARCAT(NSA,NS1);
ZBXQ买线:=EMA(C,2);
ZBXQ卖线:=EMA(SLOPE(C,21)*20+C,42);
买:=CROSS(ZBXQ买线,ZBXQ卖线);
卖:=CROSS(ZBXQ卖线,ZBXQ买线);
J:=(L+H+C)/3;N:=EMA(J,10);S:=REF(N,1);
DIF:=EMA(CLOSE,12)-EMA(CLOSE,26);
DEA:=EMA(DIF,9);
MACD:=(DIF-DEA)*2;
X1:=DIF>0;{MACD在0轴上方}
X12:=MACD>0;
SSG:=X1 AND X12;
XH:N>S AND C>O AND C>REF(C,1) AND SSG AND NOT(REF(N>S,1));
二、指标简介
某平台高价指标【牛魔王指标】,每年5位数的使用费,其中主图黄蓝趋势线是多空航标,黄色柱是多头趋势,蓝色柱是空头趋势,主图K线标注,红色K线是多头机会,绿色K线是空头机会。此套指标已经更新了,两个副图指标和两个选股指标。原版选股信号较多,优化版信号较少,可以结合别的指标一起参考使用。
三、指标图示