VAR0:=(H+L+C)/3;
VAR1:=EMA((VAR0-MA(VAR0,30))/(0.024*AVEDEV(VAR0,30)),3);
VAR2:=SUM(IF(VAR0>REF(VAR0,1),VAR0*VOL,0),15)/SUM(IF(VAR0<REF(VAR0,1),VAR0*VOL,0),15);
VAR3:=3.6*(50-(100/(1+VAR2)));
快线:IF(VAR1>105,105,IF(VAR1<-105,-105,VAR1));
慢线:IF(VAR3>105,105,IF(VAR3<-105,-105,VAR3));