九毛八公式指标
请老师将副图主力潜伏做选股预警 要求 在有主力潜伏中CCI超越-50的当天选股预警 源码 短线机会:C>MA(C,5) AND MA(C,5)>REF(MA(C,5),1),NODRAW,COLORLIRED; STICKLINE(短线机会,0,50,2,0),COLORLIRED; -100,LINESTICK,COLORGRAY; 0,COLORGRAY; 100,COLORGRAY; N:=14; DIF:EMA(CLOSE,12) - EMA(CLOSE,26),NODRAW; DEA:EMA(DIF,9),NODRAW; MACD:(DIF-DEA)*2,NODRAW; TYP:=(HIGH+LOW+CLOSE)/3; CCI:(TYP-MA(TYP,N))/(0.015*AVEDEV(TYP,N)),COLORWHITE; 主力潜伏:COUNT(MACD<0,10)=10,COLORRED,NODRAW; STICKLINE(主力潜伏,0,MACD*200,8,0),COLORRED; MA20:=MA(C,20); MA20角度:ATAN((MA20/REF(MA20,1)-1)*100)*180/3.14159,COLORYELLOW; 主力持仓:=EMA(100*(CLOSE-LLV(LOW,34))/(HHV(HIGH,34)-LLV(LOW,34)),3); 指数趋势:=EMA(100*(INDEXC-LLV(INDEXL,34))/(HHV(INDEXH,34)-LLV(INDEXL,34)),3); 强弱分界:=80; 主力筹码集中度:=WINNER(C)*100; 散筹筹码集中度:=(WINNER(C*1.1)-WINNER(C*0.9))*100; QIANG:=(主力持仓-散筹筹码集中度)>20 AND (主力筹码集中度-散筹筹码集中度)>0 AND 主力持仓>50;
公式模块:
DIF:=EMA(CLOSE,12) - EMA(CLOSE,26);
DEA:=EMA(DIF,9); macd:(DIF-DEA)*2; TYP:=(HIGH+LOW+CLOSE)/3; cci:=(TYP-MA(TYP,14))/(0.015*AVEDEV(TYP,14)); 主力潜伏:COUNT(MacD<0,10)=10 AND crOSS(CCI,-50);