牛熊线 主图指标 此指标名为牛熊线。试着...

牛熊线 主图指标

此指标名为牛熊线。试着验证一下,发现建仓位似乎平平无奇;主要意义在于其介出位。对于短线的介出时机有一定借鉴意义。最后源码放出,祝大家节后快乐
#感谢头条我要上热门##我要上微头条##财经头条##股票##A股#

XA_1:=EXPMEMA(MAX(MAX(HIGH-LOW,ABS(HIGH-REF(CLOSE,1))),ABS(REF(CLOSE,1)-LOW)),12);
XA_2:=HIGH-REF(HIGH,1);
XA_3:=REF(LOW,1)-LOW;
XA_4:=EXPMEMA(IF(XA_2>0 AND XA_2>XA_3,XA_2,0),12)*100/XA_1;
XA_5:=EXPMEMA(IF(XA_3>0 AND XA_3>XA_2,XA_3,0),12)*100/XA_1;
XA_6:=XA_4>65 AND XA_4>REF(XA_4,1);
XA_7:=LLV(XA_4,0);
XA_8:=BARSLAST(XA_7=XA_4);
XA_9:=(0-REF(XA_5,4))/(XA_7-REF(XA_5,XA_8))>2;
XA_10:=XA_4>REF(XA_4,1);
XA_11:=VOL>2*MA(VOL,30);
XA_12:=EXPMEMA(ABS(XA_5-XA_4)/(XA_5+XA_4)*100,6);
XA_13:=EXPMEMA(XA_6,6);
XA_14:=CLOSE>MA(CLOSE,30) AND CLOSE<MA(CLOSE,30)*1.04;
XA_15:=MA(CLOSE,30)>REF(MA(CLOSE,30),1);
XA_16:=BARSLAST(CROSS(MA(CLOSE,5),MA(CLOSE,10)))<BARSLAST(CROSS(MA(CLOSE,10),MA(CLOSE,5)));
XA_17:=0-(EMA(CLOSE,7)-EMA(CLOSE,21));
XA_18:=TROUGHBARS(3,15,1)<4;
XA_19:=EMA(CLOSE,30)>REF(EMA(CLOSE,30),2);
XA_20:=IF(XA_18=1,50,0);
XA_21:=CROSS(XA_5,XA_4) AND CROSS(XA_13,XA_12);
XA_22:=CROSS(XA_5,XA_4) AND CROSS(XA_12,XA_13);
XA_23:=XA_14 AND XA_15 AND XA_16 AND XA_19 AND XA_9 AND XA_10 AND XA_11*50;
XA_24:=BARSLAST(CROSS(XA_5,XA_4)=1);
XA_25:=BARSLAST(CROSS(XA_4,XA_5)=1);
XA_26:=HHV(XA_4,XA_25);
XA_27:=BARSLAST(XA_4=XA_26);
多空:EMA((CLOSE-MA((2*CLOSE+HIGH+LOW)/4,30))/MA((2*CLOSE+HIGH+LOW)/4,30)*100,3),COLORWHITE;
STICKLINE(0=0,0,0,1500,1),COLORRED;
STICKLINE(FILTER(XA_18=1,5) AND 多空<(-10),50,0,10,0),COLORF00FF0;
STICKLINE(FILTER(XA_18=1,5),50,0,5,0),COLORYELLOW;
XA_28:=XA_6 OR XA_21 OR XA_22*100;
XA_29:=XA_22*100;
DRAWTEXT(FILTER(XA_18=1,3),25,1),COLORRED;
STICKLINE(多空<(-10),0,多空,0.85,0),COLORYELLOW;
STICKLINE(多空>10,0,多空,0.95,0),COLORRED;

(0)

相关推荐