牛股突破主图指标源码XA

牛股突破主图指标源码
XA_1:=IF(CAPITAL>20000000,CAPITAL*33/100,IF(CAPITAL>12000000,CAPITAL*27/100,CAPITAL*22/100));
XA_2:=(COST(85)+COST(15))/2;
XA_3:=(COST(75)+COST(25))/2;
XA_4:=(COST(65)+COST(35))/2;
XA_5:=(COST(55)+COST(45))/2;
XA_6:=(COST(95)+COST(5))/2;
XA_7:=(XA_2+XA_3+XA_4+XA_5+XA_6)/5;
XA_8:=(COST(90)+COST(10))/2;
XA_9:=(COST(80)+COST(20))/2;
XA_10:=(COST(70)+COST(30))/2;
XA_11:=(COST(60)+COST(40))/2;
XA_12:=COST(50);
XA_13:=(XA_8+XA_9+XA_10+XA_11+XA_12)/5;
中锋:(XA_7+XA_13)/2,COLORWHITE;
XA_14:=(COST(75)-COST(25))/(COST(75)+COST(25))*100;
后卫:COST(XA_14),COLORGREEN;
XA_15:=100-XA_14;
前锋:COST(XA_15),COLORRED;
XA_16:=前锋/后卫;
XA_17:=XA_16>REF(XA_16,1) AND 前锋>REF(前锋,1);
周期:BARSLASTCOUNT(XA_17=1),NODRAW;
XA_18:=IF(XA_17,前锋-后卫,DRAWNULL);
XA_19:=REF(XA_16,1)>XA_16 AND 前锋>REF(前锋,1);
XA_20:=XA_16<=0.25;
XA_21:=(COST(95)-COST(5))/(COST(95)+COST(5))*100;
XA_22:=COST(XA_21);
XA_23:=100-XA_21;
XA_24:=COST(XA_23);
XA_25:=(XA_21+XA_23)/2;
XA_26:=COST(XA_25);
DRAWKLINE(HIGH,OPEN,LOW,CLOSE);
STICKLINE(XA_17,CLOSE,OPEN,2.8,0),COLOR000055;
STICKLINE(XA_17,CLOSE,OPEN,2,0),COLOR000088;
STICKLINE(XA_17,CLOSE,OPEN,1.5,0),COLOR0000AA;
STICKLINE(XA_17,CLOSE,OPEN,1,0),COLOR0000CC;
STICKLINE(XA_17,CLOSE,OPEN,0.5,0),COLOR0000EE;
STICKLINE(XA_17,CLOSE,OPEN,0,0),COLORWHITE;
XA_27:=REF(XA_16,2)<REF(XA_16,1) AND XA_16<REF(XA_16,1) AND XA_26<REF(XA_26,1);
STICKLINE(XA_27,CLOSE,OPEN,0,0),COLORGREEN;
STICKLINE(XA_27,CLOSE,OPEN,2.8,0),COLOR009900;
STICKLINE(XA_27,CLOSE,OPEN,2,0),COLOR00BB00;
STICKLINE(XA_27,CLOSE,OPEN,1.5,0),COLOR00DD00;
STICKLINE(XA_27,CLOSE,OPEN,0.5,0),COLORGREEN;
XA_28:=REF(XA_16,2)<REF(XA_16,1) AND XA_16<REF(XA_16,1) AND XA_26>REF(XA_26,1);
STICKLINE(XA_28,CLOSE,OPEN,2,0),COLORYELLOW;

(0)

相关推荐