var2=refBefore(low,1);
var3=sma(abs(low - var2),3,1) / sma(max(low - var2,0),3,1) * 100;
var4=ema(ifelse(close * 1.2,var3 * 10,var3 / 10),3);
var5=lowest(low,38);
var6=highest(var4,38);
var7=ifelse(lowest(low,90),1,0);
var8=ema(ifelse(low <= var5,(var4 + var6 * 2) / 2,0),3) / 618 * var7;
dd=var8 > 5;
买入=ifelse((count(dd,2) == 2),-20,0);
var1s=refBefore((low + open + close + high) / 4,1);
var2s=sma(abs(low - var1s),13,1) / sma(max(low - var1s,0),10,1);
var3s=ema(var2s,10);
var4s=lowest(low,33);
var5s=ema(ifelse(low <= var4s,var3s,0),3);
主力进场=ifelse(var5s > refBefore(var5s,1),var5s,0) * 1.1;
drawStickBetweenIf(var5s > refBefore(var5s,1),0,var5s,color="red",fill=false,linewidth=4);
洗盘=ifelse(var5s < refBefore(var5s,1),var5s,0);
低买="";
drawIf((isCrossUp(洗盘,主力进场) && 买入 == -20),100,0,color="#ff9150");