VAR1:=(C+H+O+L)/4;AQWE:=XMA(VAR1,20)*(1+80/1000);SQWE:=XMA(VAR1,32)*(1-100/1000);AA1:=AQWE;BB1:=SQWE;上轨:AA1,COLORYELLOW,LINETHICK2;通道下轨:BB1,COLORRED,LINETHICK2;:=100*(L-BB1)/BB1,NODRAW;:=100*(AA1-BB1)/BB1,NODRAW;STICKLINE(AA1>LOW AND AA1
LOW AND AA1LOW AND BB1MIN(C,O) AND BB1HIGH,OPEN,CLOSE,2,0),COLORRED;STICKLINE(BB1>HIGH,HIGH,LOW,0,0),COLORRED;VAR2:=LLV(LOW,10);VAR3:=HHV(HIGH,25);:=100*EMA((CLOSE-VAR2)/(VAR3-VAR2),4);DRAWTEXT(OSS(动能线,70)AND C>通道上轨,HIGH*1.02,'↖卖'),COLORYEL