九毛八公式指标
VAR1:=(CLOSE - LLV(LOW,8))/(HHV(HIGH,8) - LLV(LOW,8)) * 100; VAR2:=(EMA(VAR1,3) - 50) * 2; VAR3:=MA(VOL,120); VAR5:=SMA(MAX(CLOSE - REF(CLOSE,1),0),5,1)/SMA(ABS(CLOSE - REF(CLOSE,1)),5,1) * 1000; VAR6:=VAR5 - LLV(VAR5,12); VAR7:=(MA(VAR6,2) * 3 + VAR6 * 13)/16; VAR8:=LAST(CLOSE <= REF(CLOSE,1) AND CLOSE <= OPEN) >= 2 OR (LOW - REF(CLOSE,1))/REF(CLOSE,1) < -0.2; 阴线买点:IF(VAR7=0 AND VAR8,68,0); DRAWTEXT(阴线买点,78,'买'),ALIGN1,COLORRED; DRAWTEXT(阴线买点,63,'点'),ALIGN1,COLORRED;
公式模块:
VAR1:=(CLOSE - LLV(LOW,8))/(HHV(HIGH,8) - LLV(LOW,8)) * 100;
VAR2:=(EMA(VAR1,3) - 50) * 2; VAR3:=MA(vol,120); VAR5:=SMA(MAX(CLOSE - REF(CLOSE,1),0),5,1)/SMA(ABS(CLOSE - REF(CLOSE,1)),5,1) * 1000; VAR6:=VAR5 - LLV(VAR5,12); VAR7:=(MA(VAR6,2) * 3 + VAR6 * 13)/16; VAR8:=LAST(CLOSE <= REF(CLOSE,1) AND CLOSE <= OPEN) >= 2 OR (LOW - REF(CLOSE,1))/REF(CLOSE,1) < -0.2; 阴线买点:IF(VAR7=0 AND VAR8,68,0); DRAWTEXT(阴线买点,78,'买'),ALIGN1,COLORRED; DRAWTEXT(阴线买点,63,'点'),ALIGN1,COLORRED; VAR9:=VAR5 + HHV(VAR5,12); VAR10:=(MA(VAR9,2) * 3 + VAR9 * 13)/16; VAR11:=LAST(CLOSE >= REF(CLOSE,1) AND CLOSE >= OPEN)>=5 OR (H-REF(CLOSE,1))/REF(CLOSE,1)>0.9; 阳线卖点:IF(VAR11,68,0); DRAWTEXT(阳线卖点,78,'卖'),ALIGN1,COLORFFFFFF; DRAWTEXT(阳线卖点,63,'点'),ALIGN1,COLORFFFFFF;