九毛八公式指标
要求:如果下面指标出现标示★的能够跳出预警,谢谢各位班长帮忙! 能把ST去掉和除权还权的问题加进去,出来的股基本是没还权的股 TYP := (HIGH + LOW + CLOSE)/3; CCI:=(TYP-MA(TYP,14))/(0.015*AVEDEV(TYP,14)); 买入线:=IF(CROSS(CCI,-160),100,0); DRAWTEXT(买入线,L,'←CCI底'),COLOR0099FF ; 买出线:=IF(CROSS(CCI,200),100,0); DRAWTEXT(买出线,H,'←CCI顶'),coloryellow ; Var3:=LLV(LOW,5)=LLV(LOW,45) AND CLOSE>=OPEN*1.04; Var4:=CLOSE>(REF(HIGH,1)+REF(LOW,1))/2; Var5:=Var3 AND Var4; DRAWTEXT(Var5,LOW,'★ '),coloryellow ; 极品底:IF((MA(C,5)-C)/C>0.04 AND (MA(C,10)-MA(C,5))/MA(C,5)>0.04,50,0),colorwhite,LINETHICK0; DRAWTEXT(极品底=50,LOW,'★ ');
公式模块:
Var3:=LLV(LOW,5)=LLV(LOW,45) AND CLOSE>=OPEN*1.04;
Var4:=CLOSE>(REF(HIGH,1)+REF(LOW,1))/2; Var5:=Var3 AND Var4; 极品底:IF((MA(C,5)-C)/C>0.04 AND (MA(C,10)-MA(C,5))/MA(C,5)>0.04,50,0); XG:Var5 OR 极品底=50;