趋势强弱:MA(100*(C-LLV(C,34))/(HHV(H,34)-LLV(L,34)),5)-20,COLORSTICK;
个股趋势:3*SMA((C-LLV(L,34))/(HHV(H,34)-LLV(L,34))*100,20,1)
-2*SMA(SMA((C-LLV(L,34))/(HHV(H,34)-LLV(L,34))*100,20,1),15,1),COLOR00DDDD;
大盘趋势:3*SMA((INDEXC-LLV(INDEXL,34))/(HHV(INDEXH,34)-LLV(INDEXL,34))*100,20,1)
-2*SMA(SMA((INDEXC-LLV(INDEXL,34))/(HHV(INDEXH,34)-LLV(INDEXL,34))*100,20,1),15,1),COLORDD22DD;
大盘危险:大盘趋势>80,COLOR00FF00,NODRAW;
STICKLINE(大盘趋势>80,大盘趋势,80,3,0),COLOR00FF00;
个股危险:个股趋势>80,COLOR888888,NODRAW;
DRAWBAND(个股趋势,RGB(80,80,80),80,RGB(0,0,0));
IF(1,大盘趋势,大盘趋势),COLORDD22DD;
IF(1,个股趋势,个股趋势),COLOR00DDDD;
持币:IF(个股趋势<REF(个股趋势,1),个股趋势,DRAWNULL),LINETHICK2,COLORFFFF00;
持股:IF(个股趋势>REF(个股趋势,1) AND 大盘趋势>REF(大盘趋势,1),个股趋势,DRAWNULL),LINETHICK2,COLORRED;
预警:crOSS(大盘趋势,个股趋势) AND 个股趋势<3 OR LONGCROSS(个股趋势,0,3),COLORFF55FF,NODRAW;
STICKLINE(CROSS(大盘趋势,个股趋势)AND 个股趋势<3 OR LONGCROSS(个股趋势,0,3),0,20,1,0),COLORFF55FF;
地板价:IF(COUNT(个股趋势<0,3)=3 AND 个股趋势>REF(个股趋势,1),10,0),COLORFF6000,LINETHICK2;