MA5:MA(CLOSE,5);
MA13:MA(CLOSE,13);
MA21:MA(CLOSE,21);
MA60:MA(CLOSE,60);
MA144:MA(CLOSE,144);
var1:=EMA(100*(CLOSE-LLV(LOW,34))/(HHV(HIGH,35)-LLV(LOW,34)),3);
var2:=OPEN<MA5 OR OPEN<MA13 OR OPEN<MA21;
var3:=CLOSE>MAX(MA5,MAX(MA13,MAX(MA21,MA60)));
var4:=VOL/MA(VOL,30)>1.2;
var5:=CLOSE/REF(CLOSE,1)>1.049;
var8:=var2 AND var3 AND var4 AND var5;
var9:=var8 AND (REF(BARSLAST(var8),1)>60 OR BARSSINCE(var8)=0);
DRAWICON(var9,LOW*0.98,1);
DRAWTEXT_FIX(C>O,0,0.07,0,'公式平台,公式源码 http://www.gspt.com'),COLOR333333;
STICKLINE(var1>60,HIGH,LOW,0,8),COLORRED;
STICKLINE(var1>60,OPEN,CLOSE,2,1),COLORRED;
STICKLINE(var1<60,HIGH,LOW,0,1),COLORGREEN;
STICKLINE(var1<60,OPEN,CLOSE,2,1),COLORGREEN;
STICKLINE(var9,HIGH,LOW,0,1),COLORYELLOW;
STICKLINE(var9,OPEN,CLOSE,2,1),COLORYELLOW;