趋势强弱: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);
大盘趋势: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);
大盘危险:FILLRGN(大盘趋势>80,大盘趋势,80);
个股危险:FILLRGN(个股趋势>80,个股趋势,80);
持币:PARTLINE(个股趋势
持股:PARTLINE(个股趋势>ref(个股趋势,1)and 大盘趋势>ref(大盘趋势,1),个股趋势),LINETHICK2,colorred;
预警:STICKLINE(CROSS(大盘趋势,个股趋势)and 个股趋势<3 or LONGCROSS(个股趋势,0,3),0,20,6,0),COLORRED;
地板价:IF(COUNT(个股趋势<0,3)=3 AND 个股趋势>ref(个股趋势,1),10,0),COLORFF0000,LINETHICK2;