var1=(close - lowest(low,36)) / (highest(high,36) - lowest(low,36)) * 100;
var2=sma(var1,3,1);
var3=sma(var2,3,1);
var4=sma(var3,3,1);
波=var3;
draw(波,color="white");
段=var4;
draw(段,color="white");
var6=isCrossUp(var3,var4) && var3 < 20;
drawText(forwardSet(var6,10) == 1,40,"抄底",color="white");
drawStickBetweenIf(forwardSet(var6,10) == 1,0,30,color="green",fill=true,linewidth=10);
var7=isCrossUp(var4,var3) && var3 > 80;
drawStickBetweenIf(forwardSet(var7,5) == 1,80,100,color="yellow",fill=true,linewidth=10);
drawText(forwardSet(var7,5) == 1,70,"逃顶",color="yellow");
var8=isCrossUp(var2,var3) && var3 > 80 && var3 > var4;
drawStickBetweenIf(var8,85,100,color="white",fill=true,linewidth=10);