MA2:MA(C,10);
MA3:MA(C,20);
MA4:MA(C,30);
N:=13;
VAR111:=HHV(HIGH,N);
VAR222:=LLV(LOW,N);
阻力线:=EMA((CLOSE-VAR222)/(VAR111-VAR222),21)-0.5,NODRAW;
操作线:=EMA((CLOSE-VAR222)/(VAR111-VAR222),5)-0.5,NODRAW;
DRAWTEXT(CROSS(操作线,阻力线) AND 阻力线<0.1,L,'--突'),COLORRED;
DRAWTEXT(CROSS(阻力线,操作线) AND 阻力线>0.25,H,'-破位'),COLORGREEN;