var4:=((hhv(high,9) - close)/(hhv(high,9) - llv(low,9)))*(100) - 70;
var5:=((close - llv(low,60))/(hhv(high,60) - llv(low,60)))*(100);
var7:=sma(((close - llv(low,9))/(hhv(high,9) - llv(low,9)))*(100),3,1);
var8:=llv(low,34);
varc:=ema(((((2)*(close) + high + low)/(4) - var8)/(hhv(high,34) - var8))*(100),8);
vard:=ema(varc,5);
vare:=((hhv(high,9) - close)/(hhv(high,9) - llv(low,9)))*(100) - 70;
var11:=sma(((close - llv(low,9))/(hhv(high,9) - llv(low,9)))*(100),3,1);
var12:=sma(var11,3,1) + 100;
var13:=var12 - sma(vare,9,1) + 100;
var14:=zig(3,13);
建仓:=if((varc 17) and (varc 59) and (varc - vard = 0),10,(-10));
猎豹:=if((ref(var14,2) ref(var14,1)) and (var14 ref(var14,1)),10,45);
丰收:=if((varc 70) and (varc - vard = 0),77,82);
牛:=if((var13 100),var13 - 100,0);
顶:=if((ref(var14,2) ref(var14,1)) and (var14 ref(var14,1)),95,55);
风:=if((varc - vard 0),varc,vard);
stickline((ref(var14,2) ref(var14,1)) and (var14 ref(var14,1)),close,open,5,0),color66ff00;
stickline((ref(var14,2) ref(var14,1)) and (var14 ref(var14,1)),close,open,5,0),coloryellow;
drawline((ref(var14,2) ref(var14,1)) and (var14 ref(var14,1)),low - (low)*(0.08),(ref(var14,2) ref(var14,1)) and (var14 ref(var14,1)),low - (low)*(0.05),0),linethick5,color070084;
drawline((ref(var14,2) ref(var14,1)) and (var14 ref(var14,1)),low - (low)*(0.08),(ref(var14,2) ref(var14,1)) and (var14 ref(var14,1)),low - (low)*(0.05),0),linethick4,color0000a3;
drawline((ref(var14,2) ref(var14,1)) and (var14 ref(var14,1)),low - (low)*(0.08),(ref(var14,2) ref(var14,1)) and (var14 ref(var14,1)),low - (low)*(0.05),0),linethick3,color0000b7;
drawline((ref(var14,2) ref(var14,1)) and (var14 ref(var14,1)),low - (low)*(0.08),(ref(var14,2) ref(var14,1)) and (var14 ref(var14,1)),low - (low)*(0.05),0),linethick2,color0000cd;
drawline((ref(var14,2) ref(var14,1)) and (var14 ref(var14,1)),low - (low)*(0.08),(ref(var14,2) ref(var14,1)) and (var14 ref(var14,1)),low - (low)*(0.05),0),linethick1,color077bf3;
stickline((open = close),close,open,5,0),colorff5b00;
stickline((open = close),close,open,4.5,0),colorff6c00;
stickline((open = close),close,open,4,0),colorff7b00;
stickline((open = close),close,open,3.5,0),colorff9c00;
stickline((open = close),close,open,2,0),colorffbe00;
stickline((open = close),close,open,1,0),colorffcc00;
stickline((open = close),close,open,0.5,0),colorcccccc;
stickline((close = open),close,open,5,0),color070084;
stickline((close = open),close,open,4.5,0),color0000a3;
stickline((close = open),close,open,4,0),color0000b7;
stickline((close = open),close,open,3.5,0),color0000cd;
stickline((close = open),close,open,2,0),color0000e9;
stickline((close = open),close,open,1,0),color0754e9;
stickline((close = open),close,open,1,0),color076ef3;
stickline((close = open),close,open,0.5,0),color077bf3;
stickline((close open),open,low,0.5,0),color0726ca;
stickline((close open),close,high,0.5,0),color0726ca;
stickline((open close),close,low,0.5,0),colorde9100;
stickline((open close),open,high,0.5,0),colorde9100;
买:drawtext((ref(var14,2) ref(var14,1)) and (var14 ref(var14,1)),low - (low)*(0.05),'买'),colorred;
卖:drawtext((ref(var14,2) ref(var14,1)) and (var14 ref(var14,1)),low - (low)*(0.03),'卖'),color66ff00;
stickline((ref(var14,2) ref(var14,1)) and (var14 ref(var14,1)),close,open,5,0),color66ff00;
stickline((ref(var14,2) ref(var14,1)) and (var14 ref(var14,1)),close,open,5,0),coloryellow;