VAR1:=(CLOSE-LLV(LOW,20))/(HHV(HIGH,20)-LLV(LOW,20))*100;
VAR2:=SMA(SMA(VAR1,3,1),3,1)/28.57;
VAR3:=EMA(VAR2,5);
VAR4:=3*VAR2-2*VAR3;
VAR5:=crOSS(VAR4,VAR2) AND VAR2<2.1 AND CLOSE>OPEN;
VAR6:=CROSS(VAR4,VAR2) AND VAR2<2.1 AND CLOSE>OPEN;
VAR7:=(2*CLOSE+HIGH+LOW)/4;
VAR8:=LLV(LOW,13);
VAR9:=HHV(HIGH,13);
VAR10:=EMA((VAR7-VAR8)/(VAR9-VAR8)*100,13);
VAR11:=EMA(0.667*REF(VAR10,1)+0.333*VAR10,2);
VAR12:=VAR10;
VA1:=EMA(H,25),COLORGREEN;
VA2:=EMA(L,25),COLORGREEN;
ABC111:=PLOYLINE(C>VA1,VA1);
A222:=IF(C>VA1,ABC111,DRAWNULL),COLORRED;
B111:=PLOYLINE(C>VA2,VA2);
B222:=IF(C>VA2,B111,DRAWNULL),COLORRED;
启动:=EMA(0.382*REF(VAR10,2)+0.618*VAR10,6),COLORRED;
NOTEXT2:=IF(启动>REF(启动,1),启动,DRAWNULL),COLORRED,LINETHICK4;
共振:=BARSLASTCOUNT(VAR10>VAR11 AND NOTEXT2)=1;
XG:共振 AND B222;