钻石涨停通达信副图指标公式

电脑版效果展示:

手机版效果展示:

指标源码:

XA_1:=COST(100-5);

XA_2:=COST(100-10);

XA_3:=COST(100-15);

XA_4:=COST(100-20);

XA_5:=COST(100-25);

XA_6:=COST(100-30);

XA_7:=COST(100-35);

XA_8:=COST(100-40);

XA_9:=COST(100-45);

XA_10:=MAX(XA_1,MAX(XA_2,MAX(XA_3,MAX(XA_4,MAX(XA_5,MAX(XA_6,MAX(XA_7,MAX(XA_8,XA_9))))))));

XA_11:=MIN(XA_1,MIN(XA_2,MIN(XA_3,MIN(XA_4,MIN(XA_5,MIN(XA_6,MIN(XA_7,MIN(XA_8,XA_9))))))));

XA_12:=(XA_1+XA_2+XA_3+XA_4+XA_5+XA_6+XA_7+XA_8+XA_9)/9;

XA_13:=EMA(((XA_12+2*XA_10)/3+(XA_11+5*XA_10)/6)/2,1);

XA_14:=COST(100-55);

XA_15:=COST(100-60);

XA_16:=COST(100-65);

XA_17:=COST(100-70);

XA_18:=COST(100-75);

XA_19:=COST(100-80);

XA_20:=COST(100-85);

XA_21:=COST(100-90);

XA_22:=COST(100-95);

XA_23:=MAX(XA_14,MAX(XA_15,MIN(XA_16,MIN(XA_17,MIN(XA_18,MIN(XA_19,MIN(XA_20,MIN(XA_21,XA_22))))))));

XA_24:=MIN(XA_14,MIN(XA_15,MIN(XA_16,MIN(XA_17,MIN(XA_18,MIN(XA_19,MIN(XA_20,MIN(XA_21,XA_22))))))));

XA_25:=(XA_14+XA_15+XA_16+XA_17+XA_18+XA_19+XA_20+XA_21+XA_22)/9;

XA_26:=EMA(((XA_25+2*XA_24)/3+(XA_23+5*XA_24)/6)/2,1);

XA_27:=(XA_13+XA_26)/2;

XA_28:=HHV(MA(CLOSE,1),150)*0.93;

XA_29:=EMA(CLOSE,6);

XA_30:=DYNAINFO(8)>0;

XA_31:=VOL=HHV(VOL,100) AND XA_30;

XA_32:=XA_30 AND XA_31;

钻石涨停:FILTER(COUNT(CROSS(XA_29,XA_27),3)>=1 OR CROSS(XA_28,XA_29) AND CLOSE/REF(CLOSE,1)>=1.095 OR (REF(CLOSE/REF(CLOSE,1)>=1.05,1) AND CLOSE/REF(CLOSE,1)>=1.095 AND CLOSE>XA_27) AND COUNT(REF(CLOSE/REF(CLOSE,1)>=1.095,1),30)<=1 AND NOT(REF(CROSS(XA_28,XA_29),1) OR XA_32),20);

STICKLINE(钻石涨停, 0,20, 0.2, 0),COLORWHITE;

DRAWICON(钻石涨停,22,25);

(0)

相关推荐