公式編寫要求: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; |
|