3rd Free Strategy!

The 3rd strategy is a mean reversion strategy backtested on semis.

Trading Rules

Trading Rules (Plain English) (Semiconductors – SMH)

  • Today is the third lower low in a row.
  • Today is the third lower high in a row.
  • If 1 and 2 are true, go long at the close.
  • Sell at the close if today’s close is higher than yesterday’s high.

Amibroker code

Buy= Low<Ref(Low,-1) AND High<Ref(High,-1) AND Ref(Low,-1)<Ref(Low,-2) AND Ref(High,-1)<Ref(High,-2) AND Ref(Low,-2)<Ref(Low,-3) AND Ref(High,-2)<Ref(High,-3);
buyPrice=Close;
Sell= C>Ref(H,-1);   
sellPrice=Close ;

Tradestation Code

If l<l[1] and l[1]<l[2] and l[2]<l[3] and 
h<h[1] and h[1]<h[2] and h[2]<h[3]

then buy this bar at close;
 
If barssinceentry=1 then Sell this bar at close;

If c>h[1] then Sell this bar at close;

Performance

Strategy type: Mean reversion.

Market: SMH.

Performance

  • No. of trades: 245
  • Average gain per trade: 1.1%
  • Win ratio: 74%
  • Profit factor: 2.5
  • Annual returns (CAGR): 9.7% (buy and hold 10%)
  • Exposure/time in the market: 12%
  • Risk-adjusted return: 75% (CAGR divided by time spent in the market (0.12))
  • Max drawdown: 48% (buy and hold 86%)

Commissions and slippage of 0.03% per trade are included.

Disclaimer

We are not financial advisors. Please do your own due diligence and investment research or consult a financial professional. All articles are our opinions – they are not suggestions to buy or sell any securities.

Similar Posts