九毛八公式指标
趋势强弱: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(个股趋势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; 请 老师 帮忙 做出 个股趋势 线 是 红色 的 选股公式
公式模块:
个股趋势:=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); 持股:个股趋势>ref(个股趋势,1)and 大盘趋势>ref(大盘趋势,1);
3>