同花顺OBV压力支撑副图指标
源码
obvg:SUM(IF(CLOSE REF(CLOSE,1),VOL,IF(CLOSE压力:HHV(MA(obvg,3),13),colorgreen; 中轴:MA(obvg,13),; 支撑:LLV(MA(obvg,3),13),coloryellow;
AA:=REF(obvg,N1)=HHV(obvg,2*N1+1); BB:=BACKSET(AA,N1+1); CC:=FILTER(BB,N1) AND obvg=HHV(obvg,N1+1); A1:=BARSLAST(REF(CC,1)); 顶背离:=REF(H,A1+1)obvg AND CC; DRAWTEXT(顶背离,obvg*1.2,'顶背离'),; STICKLINE(FILTER(顶背离 0,5),支撑,obvg,10,0),; DRAWLINE(CC,obvg,FILTER(顶背离 0,5),obvg,0),colorwhite; DRAWICON(顶背离,obvg*1.1,2);
AA2:=REF(obvg,N1)=LLV(obvg,2*N1+1); BB2:=BACKSET(AA2,N1+1); CC2:=FILTER(BB2,N1) AND obvg=LLV(obvg,N1+1); A2:=BARSLAST(REF(CC2,1)); 底背离:=REF(L,A2+1) L AND REF(obvg,A2+1) DRAWTEXT(底背离,obvg*1.2,'底背离'),; STICKLINE(FILTER(底背离 0,5),压力,obvg,10,0),; DRAWLINE(CC2,obvg,FILTER(底背离 0,5),obvg,0),colorwhite; DRAWICON(底背离,obvg*0.98,1);