2014年1月2日 星期四

趨勢盤中簡單的反彈與回檔交易策略

EasyTrader ArtNo 090
回檔 在多頭市場,由於股價持續上漲而呈暫時性的回跌,以調整價位,清理籌碼的現象。
反彈 空頭市場中,由於股價連續下跌,而有調整價位,造成暫時性的回升,為大跌小漲的走勢。

在一個長期趨勢確立的價格走勢中,常會出現的兩種現象,很多技術派理論會在重要的價位關卡操作進出場的點位修正,這包含了波浪理論,費波那西黃金分割率,各種不同的樞軸點計算,此外,根據反彈或回檔的幅度大小,可區分成三種

強勢反彈與回檔:反彈幅度超過跌幅的2/3,稱強勢反彈,回檔稱強勢回檔、
中度反彈或回檔:幅度只達1/2、
弱勢反彈與回檔:幅度只有1/3。


這是一般技術面分析對強、中、弱的判定標準。

在本篇中我們也作個簡單的測試,看看從交易的心理層面而言反彈或回檔幾天後進場作單最好?
測試程式碼
input:Type(1),FastLen(5),TrendLen(50),SHB(1),SLB(1),TradeProfit(0.05),TradeStopLoss(0.03),NBarL(2),NBarS(2) ;
vars: IsBalanceDay(False),MP(0),PF(0),PL(0);

MP = MarketPosition ;

if DAYofMonth(Date) > 14 and DAYofMonth(Date) < 22 and DAYofWeek(Date)= 3
then isBalanceDay = True else isBalanceDay =False ;

PF = AvgPrice*TradeProfit ;
PL = AvgPrice*TradeStopLoss ;

if Xaverage(Close,FastLen) > Xaverage(Close,TrendLen)
and Close = Lowest(Close,SLB) and MP <= 0 then begin
Buy this bar at Close ;
end;

if Xaverage(Close,FastLen) < Xaverage(Close,TrendLen)
and Close = Highest(Close,SHB) and MP >= 0 then begin
Sell this bar at Close ;
end;

SetStopLoss(PL * BigPointValue) ;

if Type = 1 then setProfitTarget(PF * BigPointValue) ;

if Type = 2 then Begin
   if MP > 0 and BarsSinceEntry = NBarL then sell {ExitLong} next bar at Market ;
   if MP < 0 and BarsSinceEntry = NBarS then Buy {ExitShort} next bar at Market ;
end;

if Type = 3 then Begin
   setProfitTarget(PF * BigPointValue) ;
   if MP > 0 and BarsSinceEntry = NBarL then ExitLong next bar at Market ;
   if MP < 0 and BarsSinceEntry = NBarS then ExitShort next bar at Market ;
end;

if IsBalanceDay then setExitonClose ;

基本設定 台指期 日K 留倉 回測週期 2001/1~ 2013/10/31 交易成本 1200





結論:從測試報告來看在上漲趨勢盤中,出現五日收盤最低價或是下跌趨勢中出現七日收盤最高價時都是不錯的回檔逢低買進,反彈逢高賣出的轉折點
MagicQS034

沒有留言:

張貼留言