Var1:=3*SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1)-2*SMA(SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1),3,1);
趋势线: EMA(Var1,8);
趋势均线:MA(趋势线,7);
Var3:=(C+H+L+O)/4;
Var4:=LLV(L,34);
Var5:=HHV(H,34);
Var6:=EMA((Var3-Var4)/(Var5-Var4)*100,8);
Var7:=EMA(Var6,5);
STICKLINE((Var6-Var7)>0,Var6,Var7,8,1),colorBB11AA;
STICKLINE((Var6-Var7)<0,Var6,Var7,8,1),colorgreen;
卖:IF(CROSS(趋势均线,趋势线) AND 趋势线>80,50,100),colorgreen;
顶部区域:STICKLINE(Var7>80,100,105,10,1),colorFFFFDD;
底部区域:STICKLINE(Var7<20,-5,0,8,1),coloryellow;
趋势线:=SMA(EMA(((C+L)/2-LLV(L,21))/(HHV((H+C)/2,21)-LLV(L,21))*100,3),7,1)-(13);
判断:=(SMA(((C+L)/2-LLV(L,21))/(HHV((H+C)/2,21)-LLV(L,21))*100,2,1)-8);
买参考:IF(FILTER(CROSS(判断,趋势线)=1 OR 判断>REF(判断,1),10) AND 判断
<25 ,35,1),colorwhite,POINTDOT;
STICKLINE(FILTER(CROSS(判断,趋势线)=1 OR 判断>REF(判断,1),10) AND 判断
<25 ,35,0,2,1),colorwhite;
卖参考:IF(FILTER(判断
>65,5),80,70),colorred;
