M:=66;M1:=21;
Var1:=(HHV(HIGH,M)-CLOSE)/(HHV(HIGH,M)-LLV(LOW,M))*100;
机构做空能量线:=SMA(Var1,3,1),colorgreen;
Var2:=(CLOSE-LLV(LOW,M1))/(HHV(HIGH,M1)-LLV(LOW,M1))*100;
机构做多能量线:=SMA(Var2,5,1)-8,colorred;
LH: 77,POINTDOT;
LH1: 13,POINTDOT;
D:机构做空能量线;
S:机构做多能量线;
D涨1:DRAWTEXT(S>REF(S,1),S,'2'),COLOR0000FF;
D涨2:DRAWTEXT(D<REF(D,1) AND S<D,D,'2'),COLOR0000FF;
D涨3:DRAWTEXT(D<REF(D,1) AND S>D,D,'2'),COLOR0000FF;
S跌1:DRAWTEXT(S<REF(S,1),S,'1'),COLORFFFF00;
S跌2:DRAWTEXT(D>REF(D,1) AND S>D,D,'1'),COLORFFFF00;
S跌3:DRAWTEXT(D>REF(D,1) AND D>S,D,'1'),COLORFFFF00;
{ _最新股票指标公式}
//DRAWTEXT(cross(机构做多能量线,LH) ,LH+10,'风险加大');
//DRAWTEXT(cross(LH1,机构做多能量线) ,LH1+10,'机遇来临');
DRAWICON( FILTER(cross(机构做多能量线,LH1),30),机构做多能量线,1 );
DRAWICON( FILTER( cross(LH,机构做多能量线),30),机构做多能量线 ,2 );