vara=(ma(close,13) + ma(close,17)) / 2;varb=(std(close,13) + std(close,17)) / 2;varc=ifelse((close > refBefore(close,1)),88,0);vard=vara + 0.72 * varb;varf=ifelse(((close) / (refBefore(close,1)) > 1.05) && high / close < 1.01 && varc > 0,91,0);vare=ifelse(varb > 1.88,ma(vard,3),vard);varg=ema(ema(close,9),9);con=(varg - refBefore(varg,1)) / refBefore(varg,1) * 1000;hcon=100 * winner(close * 0.95);var1=ema(ema(ema(close,5),5),5);var2=var1 - refBefore(var1,1) + var1;var3=isCrossUp(var2,ma(var2,26));var4=isCrossUp(ma(close,13),ma(close,21));var5=(close - lowest(low,9)) / (highest(high,9) - lowest(low,9)) * 100;var6=3 * sma((close - lowest(low,27)) / (highest(high,27) - lowest(low,27)) * 100,5,1) - 2 * sma(sma((close - lowest(low,27)) / (highest(high,27) - lowest(low,27)) * 100,5,1),3,1);var7=ifelse(var6 <= 10,30,0);varj=sma(var5,3,1);vark=sma(varj,3,1);varl=ema(sma((close - lowest(low,19)) / (highest(high,19) - lowest(low,19)) * 100,8,1),3);varm=sma(max(close - refBefore(close,1),0),6,1) / sma(abs(close - refBefore(close,1)),6,1) * 100;var8=(varl > 20 && varl < 80);var9=((varl - refBefore(varl,1)) > 3 && var8);var10=ema(((close - lowest(low,22)) / (highest(high,22) - lowest(low,22))) * 100,5);var11=ema(((close - lowest(low,22)) / (highest(high,22) - lowest(low,22))) * 50,13);姝㈣耽=vare * 1.1;鍘嬪姏=vare * 1.05;draw(鍘嬪姏,color="blue");鏀拺=vare * 0.95;draw(鏀拺,color="#18ff18");鍙嶈浆=vare * 0.9;骞宠 =vare;drawText(isLast(close),鍘嬪姏,"鍘嬪姏",color="blue");drawText(isLast(close),鏀拺,"鏀拺",color="#18ff18");drawText(forwardSet((varf > 90),34),low,"鈼",y=10,color="red");drawHistogramBetweenIf(hcon > 50 && cost(85) < close && con > 0,open,close,color="#ff00ff",fill=true,linewidth=1.8);drawText(var3 && var4,low ,"鍦嗗簳",y=15,color="yellow");dif=ema(close,12)-ema(close,26);dea=ema(dif,9);drawCandleIf(isCrossUp(varj,vark) && isCrossUp(dif,dea), open, high, low, close,color="yellow",fill=true,linewidth=1);drawText(var7 < refBefore(var7,1),low ,"鎶",y=10,color="yellow");drawText(forwardSet(var9,5),low ,"鍔",y=10,color="#ff00ff");drawText(isCrossDown(varm,76),high,"猬",y=-10,color="white");閲嶅績=amt / vol / 100;draw(閲嶅績,color="yellow");drawCandleIf(isCrossUp(var10,var11), open, high, low, close,color="pink",fill=false);drawText(forwardSet(isCrossUp(close,鍙嶈浆) || isCrossUp(close,鏀拺) || isCrossUp(close,骞宠 ) || isCrossUp(close,鍘嬪姏),3),low ,"涔",y=10,color="red");drawText(forwardSet(isCrossUp(鍙嶈浆,close) || isCrossUp(鏀拺,close) || isCrossUp(骞宠 ,close) || isCrossUp(鍘嬪姏,close),3),high ,"鍗",y=-10,color="green");