N:=13;M:=19;M1:=3;A:=5;
VAR1:=(CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100;
VAR2:=SMA(VAR1,M1,1);
主力: SMA(VAR2,M1,1);
VAR3:=(HHV(HIGH,M)-CLOSE)/(HHV(HIGH,M)-LLV(LOW,M))*100;
VAR4:=SMA(VAR3,M1,1);
VAR5:=SMA(VAR4,M1,1);
空方: SMA(VAR5,M1,1);
多方: SMA(主力,M1,1);
高线:85;
底线:9;
DRAWTEXT(空方>76.5 AND CROSS(主力,多方),多方*1.15,'进');
DRAWTEXT(空方>56 AND 空方<=76 AND CROSS(主力,多方),主力,'留意');
DRAWTEXT(空方<45 AND 主力>78 AND 多方>78 AND CROSS(多方,主力),多方,'跑'),COLORGREEN ;
DRAWTEXT(CROSS(空方,78.5),空方,'关注'),COLORRED ;
DRAWTEXT(CROSS(空方,85),空方,'重点关注'),COLORWHITE ;
趋势:=SMA(((CLOSE-LLV(LOW,28))/(HHV(HIGH,28)-LLV(LOW,28))*100),3,1);
判断:=SMA(趋势,3,1);
DRAWICON(CROSS(趋势,判断),判断,1);
DRAWICON(CROSS(趋势,90),90,2);
VAR11:=REF((LOW+OPEN+CLOSE+HIGH)/4,1);
VAR21:=SMA(ABS(LOW-VAR11),13,1)/SMA(MAX(LOW-VAR11,0),10,1);
VAR31:=EMA(VAR21,10);
VAR41:=LLV(LOW,33);
VAR51:=EMA(IF(LOW<=VAR41,VAR31,0),3);
主力进场:IF(VAR51>REF(VAR51,1),VAR51,0),COLORRED,NODRAW;
STICKLINE(VAR51>REF(VAR51,1),0,VAR51,3,0 ),COLORRED;