var2=(close - lowest(low,20)) / (highest(high,20) - lowest(low,20)) * 100;
var3=sma(sma(var2,3,1),3,1) / 28.57;
var4=ema(var3,5);
var5=3 * var3 - 2 * var4;
aa=isCrossUp(var5,var3) && var3 < 2.1 && close > open;
var6=(2 * close + high + low) / 4;
var7=lowest(low,13);
var8=highest(high,13);
var9=ema((var6 - var7) / (var8 - var7) * 100,13);
vara=ema(0.667 * refBefore(var9,1) + 0.333 * var9,2);
多=var9;
draw(多,color="red");
空=ema(0.382 * refBefore(var9,2) + 0.618 * var9,12);
draw(空,color="#00ff00");
drawStickBetweenIf(var9 > vara,var9,vara,color="white",fill=true,linewidth=6);
drawStickBetweenIf(var9 <= vara,var9,vara,color="#ffcc66",fill=true,linewidth=6);
drawStickBetweenIf(aa,0,30,color="yellow",fill=false,linewidth=40);
drawStickBetweenIf(aa,16,29,color="green",fill=true,linewidth=38);
drawStickBetweenIf(aa,1,14,color="green",fill=true,linewidth=38);
drawStickBetweenIf(aa,15,15,color="yellow",fill=false,linewidth=40);
drawStickBetweenIf(aa,30,50,color="yellow",fill=true,linewidth=10);
drawStickBetweenIf(aa,53,55,color="red",fill=false,linewidth=10);
drawStickBetweenIf(aa,57,59,color="red",fill=false,linewidth=10);
drawStickBetweenIf(aa,61,63,color="red",fill=false,linewidth=10);
drawStickBetweenIf(aa,65,67,color="red",fill=false,linewidth=10);
drawStickBetweenIf(aa,69,75,color="#ffcccc",fill=true,linewidth=12);
drawText(aa,85,"干杯",color="yellow");