N:=120;M:=172;
个股上线:=EMA(EMA(CLOSE,49),7);
大盘上线:=EMA(EMA(INDEXC,49),7);
行业上线:=EMA(EMA(HY_INDEXC,49),7);
个股趋势:CLOSE/个股上线*100,COLORYELLOW,LINETHICK1;
个股风险:=EMA(个股趋势,20),COLORRED;
大盘趋势:INDEXC/大盘上线*100,COLORFF00FF,LINETHICK1;
行业趋势:HY_INDEXC/行业上线*100,{COLORFF0080}COLORLIMAGENTA,LINETHICK1;
大盘风险:=EMA(大盘趋势,27),COLOR00FF00;
个股量线:=HHV(个股趋势,N),COLORRED;{172};
行业量线:HHV(行业趋势,M),COLORRED;{172};
等于:=个股量线=个股趋势,NODRAW;
DRAWICON(REF(等于,1)=0 AND 等于=1 AND 个股趋势>行业趋势,个股量线*1.03,11);