九毛八公式指标
VarE1:=1; VarE2:=(2*CLOSE+HIGH+LOW)/4; VarE3:=IF(YEAR>=2099 AND MONTH>2,0,1); VarE4:=LLV(LOW,5); VarE5:=HHV(HIGH,4); 快: EMA((VarE2-VarE4)/(VarE5-VarE4)*100,4)*VarE3*VarE1,PRECIS1,Colorwhite, linethick1; 中: EMA(0.667*REF(快,1)+0.333*快,2)*VarE3*VarE1,PRECIS1,Coloryellow, linethick1; VarE6:=(HHV(HIGH,4)-VarE2)/(HHV(HIGH,4)-LLV(LOW,4))*100-72; VarE7:=(VarE2-LLV(LOW,4))/(HHV(HIGH,4)-LLV(LOW,4))*100; VarE8:=SMA(VarE7,2,1); 慢: SMA(VarE8,2,1)*VarE1,PRECIS1,Colorred, linethick1; DRAWTEXT(CROSS(快,中) AND 快<50 and 29<快,30,'短进'),color00ff00; drawtext(cross(中,快) 快>40 AND 71>快,70,'短出'),COLOR00FFFF; DRAWTEXT(CROSS(快,中) AND 快<30,23,'逢低吸'),COLORRED; DRAWTEXT(CROSS(中,快) AND 快>70,75,'逢高减'),COLORFFFF33;
公式模块:
VarE1:=1;
VarE2:=(2*CLOSE+HIGH+LOW)/4; VarE3:=IF(YEAR>=2099 AND MONTH>2,0,1); VarE4:=LLV(LOW,5); VarE5:=HHV(HIGH,4); 快:=EMA((VarE2-VarE4)/(VarE5-VarE4)*100,4)*VarE3*VarE1; 中:=EMA(0.667*REF(快,1)+0.333*快,2)*VarE3*VarE1; crOSS(快,中) AND 快<50 AND 29<快;
50>