猴王出世
Var1:=MA(CLOSE,5);
Var2:=(HHV(HIGH,36)-CLOSE)/(HHV(HIGH,36)-LLV(LOW,36))*100;
Var3:=SMA(Var2,5,1);
Var4:=REF(CLOSE,1);
Var5:=SMA(MAX(CLOSE-Var4,0),8,1)/SMA(ABS(CLOSE-Var4),8,1)*100;
Var6:=SMA(MAX(CLOSE-Var4,0),21,1)/SMA(ABS(CLOSE-Var4),21,1)*100;
山脚: STICKLINE(100-Var3<50,30,Var3-15,1,0), , COLORYELLOW;
山腰: STICKLINE(100-Var3<50,Var3-15,Var3,1,0), , COLORGREEN;
山顶: STICKLINE(100-Var3<30,Var3,Var3+5,1,0), , COLORRED;
水帘洞: STICKLINE(Var5<40 AND Var6<50 AND Var3>70,100-Var3,30,10,0);
花果山: STICKLINE(100-Var3<20 AND Var6<25,Var3+15,Var3+5,10,0), , COLORRED;
猴王: 100-Var3, , COLORRED;
猴王出世1: CROSS(Var5,10) AND CROSS(Var6,20)*125, , COLORRED;
猴王出世2: CROSS(猴王,10)*125, , COLORRED;
DRAWICON(猴王出世1=125,130,1)