DIF:=EMA(CLOSE,12)-EMA(CLOSE,26); DEA:=EMA(DIF,9); MACD:=(DIF-DEA)*2; 柱子量:=MACD>REF(MACD,1) AND REF(MACD,2)>REF(MACD,1); {柱子兩頭大,中間小} 成交量:=SUM(IF(C>REF(C,1) AND C>O,VOL,0),5)>SUM(IF(C<REF(C,1) OR C<O,VOL,0),5)*1.5; {累和陽量>累和陰量} 龍?zhí)ь^:=ATAN((MA(C,5)/REF(MA(C,5),1)-1)*100)*180/3.1416>40 AND CROSS(C,MA(C,20)); {5日均線角度>40度,收盤價金叉20日均線} VAR1:=REF((LOW+OPEN+CLOSE+HIGH)/4,1); VAR2:=SMA(ABS(LOW-VAR1),13,1)/SMA(MAX(LOW-VAR1,0),10,1); VAR3:=EMA(VAR2,10); VAR4:=LLV(LOW,33); VAR5:=EMA(IF(LOW<=VAR4,VAR3,0),3); 主力進場:=VAR5>REF(VAR5,1); {洗盤:IF(VAR5<REF(VAR5,1),VAR5,0),COLORGREEN;} 趨勢線:=3*SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1)-2*SMA(SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1),3,1); 趨勢:=EMA(EMA(趨勢線,3),1); 見底信號:=2; 買點準備:=IF(趨勢線<=10,50,0); 買入時間:=IF(CROSS(趨勢線,見底信號),100,0); 買入時間; {吸籌公式買入選股公式} |
|