VAR1:=HHV(HIGH,21);
VAR2:=LLV(LOW,21);
阻力线:=EMA((CLOSE-VAR2)/(VAR1-VAR2),21)*100,COLORF0F000,LINETHICK2;
操作线:=EMA((CLOSE-VAR2)/(VAR1-VAR2),5)*100,COLORMAGENTA,LINETHICK2;
红箭头:crOSS(操作线,阻力线);
VAR1:=HHV(HIGH,21);
VAR2:=LLV(LOW,21);
阻力线:=EMA((CLOSE-VAR2)/(VAR1-VAR2),21)*100,COLORF0F000,LINETHICK2;
操作线:=EMA((CLOSE-VAR2)/(VAR1-VAR2),5)*100,COLORMAGENTA,LINETHICK2;
红箭头:crOSS(操作线,阻力线);