VAR1:=XMA(REF((L+OPEN+CLOSE+HIGH)/4,1),2);
VAR2:=SMA(ABS(LOW-VAR1),11,1)/SMA(MAX(LOW-VAR1,0),11,1);
VAR3:=EMA(VAR2,3);
VAR4:=LLV(LOW,11);
VAR5:=EMA(IF(LOW<=VAR4,VAR3,0),5.5);
博弈:=IF(VAR5>REF(VAR5,1),VAR5,0),COLORMAGENTA,NODRAW;
网1:=IF(VAR5<REF(VAR5,1),VAR5,0),COLORGREEN,NODRAW;
差:EXPMEMA(博弈+网1,1),COLORRED,NODRAW;
网:=EXPMEMA(博弈-网1,1);
机构:=EXPMEMA(差*网,1);
STICKLINE(机构>REF(机构,1)AND 机构>0,0,机构,3,0),COLORMAGENTA;
STICKLINE(机构>REF(机构,1)AND 机构>0,0,机构,2,0),COLORMAGENTA;
STICKLINE(机构>REF(机构,1)AND 机构>0,0,机构,1.5,0),COLORMAGENTA;
STICKLINE(机构>REF(机构,1)AND 机构>0,0,机构,0.5,0),COLORLIMAGENTA;
STICKLINE(机构>REF(机构,1)AND 机构<0,0,机构,2,0)COLORLIMAGENTA;
STICKLINE(机构<REF(机构,1)AND 机构<0,0,机构,3,0),COLORYELLOW;
STICKLINE(机构<REF(机构,1)AND 机构<0,0,机构,3,0),COLORYELLOW;
STICKLINE(机构<REF(机构,1)AND 机构<0,0,机构,2,0),COLORWHITE;
STICKLINE(机构<REF(机构,1)AND 机构<0,0,机构,1,0),COLORCC00FF;
DRAWTEXT(CROSS(机构,0),20,'机构介入'),COLORGREEN;
DRAWTEXT(CROSS(0,机构),机构,'买底'),COLORYELLOW;