LOWV:=LLV(LOW,18);
HIGHV:=HHV(HIGH,18);
RSVM:=EMA((CLOSE-LOWV)/(HIGHV-LOWV)*100,7);
KMM:EMA(RSVM,5),COLORWHITE;DMM:MA(KMM,9),COLORYELLOW;
DRAWBAND(KMM,RGB(150,140,140),DMM,RGB(0,40,170));
PMM:=(C-MA(C,5))*100/MA(C,5);
超买:IF(KMM>=80,KMM,90),COLOR4080FF;
危险:IF(KMM>=85,KMM,90),COLORMAGENTA;
超卖:IF(KMM<10,KMM,3),COLORCYAN,LINETHICK2;
VAR21:=(HIGH+LOW+CLOSE)/3; VAR22:=(VAR21-MA(VAR21,14))/(0.015*AVEDEV(VAR21,14));
VAR23:=(VAR21-MA(VAR21,70))/(0.015*AVEDEV(VAR21,70)); VAR24:=IF(VAR22>=160 AND VAR22<210 AND VAR23>=160 AND VAR23<210,10,0);
VAR25:=IF(VAR22<=-160 AND VAR22>-210 AND VAR23<=-160 AND VAR23>-200,-10,VAR24);
上下:IF(VAR23<=-210 AND VAR22<=-160,-30,VAR25)+50,COLORGREEN,LINETHICK2;
DRAWTEXT(FILTER(KMM<13 AND 上下=20 AND REF(C<O,1) AND C<REF(C,1)*1.04,5),KMM+8,'闹龙宫'),COLORYELLOW;