趋势强弱: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);
{ _最新股票指标公式}
大盘危险:大盘趋势>80;
FILLRGN(大盘趋势,80,大盘趋势>80);
个股危险:个股趋势>80;
FILLRGN(个股趋势,80,个股趋势>80);
持股:个股趋势>ref(个股趋势,1)and 大盘趋势>ref(大盘趋势,1),colorred;
持币:个股趋势<ref(个股趋势,1),color00ff00;
PARTLINE(个股趋势,个股趋势>ref(个股趋势,1)and 大盘趋势>ref(大盘趋势,1),RGB(250,0,0),个股趋势<ref(个股趋势,1),RGB(0,250,0)),LINETHICK2;
预警: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;