XA_1:=30;
XA_2:=IF(CLOSE>REF(CLOSE,1),VOL,-VOL);
OBV:SUM(IF(CLOSE=REF(CLOSE,1),0,XA_2),0),COLORRED,LINETHICK4;
MAOBV:MA(OBV,XA_1),COLORGREEN;
DRAWBAND(OBV,RGB(255,0,255),MAOBV,RGB(127,255,0));
XA_3:=IF(OBV>=REF(OBV,1) AND OBV>=MAOBV,OBV,DRAWNULL);
DRAWBAND(XA_3,RGB(255,0,0),MAOBV,RGB(220,20,60));
XA_4:=5;{www.fxjgsw.com}
XA_5:=XA_4;
XA_6:=REF(OBV,XA_4)=HHV(OBV,2*XA_4+1);
XA_7:=BACKSET(XA_6,XA_4+1);
XA_8:=FILTER(XA_7,XA_4) AND OBV=HHV(OBV,XA_4+1);
XA_9:=BARSLAST(XA_8);
XA_10:=IF(XA_8,CURRBARSCOUNT,0);
XA_11:=IF(XA_9,REF(OBV,XA_9),OBV);
XA_12:=IF(XA_9,REF(XA_10,XA_9),XA_10);
XA_13:=REF(XA_11,XA_9+1);
XA_14:=CONST(XA_12);
XA_15:=REF(XA_12,XA_9+1);
XA_16:=CONST(XA_15);
XA_17:=REF(XA_13,XA_9+1);
XA_18:=IF(CURRBARSCOUNT>XA_16,0,1);
高点压力:DRAWLINE(CURRBARSCOUNT=XA_16,OBV,CURRBARSCOUNT=XA_14,OBV,1),DOTLINE,COLORGREEN;
XA_19:=REF(OBV,XA_5)=LLV(OBV,2*XA_5+1);
XA_20:=BACKSET(XA_19,XA_5+1);
XA_21:=FILTER(XA_20,XA_5) AND OBV=LLV(OBV,XA_5+1);
XA_22:=BARSLAST(XA_21);
XA_23:=IF(XA_21,CURRBARSCOUNT,0);
XA_24:=IF(XA_22,REF(OBV,XA_22),OBV);
XA_25:=IF(XA_22,REF(XA_23,XA_22),XA_23);
XA_26:=CONST(XA_25);
XA_27:=REF(XA_24,XA_22+1);
XA_28:=REF(XA_25,XA_22+1);
XA_29:=CONST(XA_28);
低点支撑:DRAWLINE(CURRBARSCOUNT=XA_29,OBV,CURRBARSCOUNT=XA_26,OBV,1),DOTLINE,COLORRED;
XA_30:=10;
XA_31:=SUM(IF(CLOSE=REF(CLOSE,1),0,XA_2),0);
XA_32:=REF(XA_31,XA_30)=HHV(XA_31,2*XA_30+1);
XA_33:=FILTER(XA_32,XA_30);
XA_34:=BACKSET(XA_33,XA_30+1);
XA_35:=FILTER(XA_34,XA_30);
T线:REF(OBV,BARSLAST(XA_35)),COLORMAGENTA,LINETHICK0;
STICKLINE(CLOSE>0,T线,T线,6,0),COLORFF6600;
XA_36:=CROSS(0.8,HIGH=HHV(HIGH,4));
XA_37:=BARSLAST(XA_36)+1;
XA_38:=REF(HIGH,XA_37);
XA_39:=CROSS(0.8,LOW=LLV(LOW,4));
XA_40:=BARSLAST(XA_39)+1;
XA_41:=REF(LOW,XA_40);
STICKLINE(CROSS(OBV,T线),T线,T线*1.03,1,0),COLORYELLOW;
|