Quote from Syprik:
Is this a long only or bi-directional system? Over the last decade, has it outperformed a baseline SP500 200MA daily or 20-period monthly directional strategy (close above = long, close below = short)? Perhaps I'm too demanding, but why waste time implementing strategies that don't have the potential to significantly outperform this BL. Down 15% in this historical volatility is painfully poor, granted it is not long only.
Hi, the anwer is yes. Your strategy, since 3/20/2007 has these as returns:
Long + Short Long Only Short Only Buy & Hold
Starting Capital $169,909.00 $169,909.00 $169,909.00 $169,909.00
Ending Capital $102,637.64 $102,637.64 $169,909.00 $104,103.95
Net Profit ($67,271.36) ($67,271.36) $0.00 ($65,805.05)
Net Profit % -39.59% -39.59% 0.00% -38.73%
Annualized Gain % -21.56% -21.56% 0.00% -21.03%
Exposure 53.24% 53.24% 0.00% 100.00%
Cash Interest $0.00 $0.00 $0.00 $0.00
Margin Loan Interest $0.00 $0.00 $0.00 $0.00
Total Commission ($11.15) ($11.15) $0.00 ($12.05)
Number of Trades 1 1 0 1
Avg Profit/Loss ($67,271.36) ($67,271.36) $0.00 ($65,805.05)
Avg Profit/Loss % -41.09% -41.09% 0.00% -38.70%
Avg Bars Held 325 325 0 524
Winning Trades 0 0 0 0
Winning % 0.00% 0.00% 0.00% 0.00%
Gross Profit $0.00 $0.00 $0.00 $0.00
Avg Profit $0.00 $0.00 $0.00 $0.00
Avg Profit % 0.00% 0.00% 0.00% 0.00%
Avg Bars Held 0 0 0 0
Max Consecutive 0 0 0 0
Losing Trades 1 1 0 1
Losing % 100.00% 100.00% 0.00% 100.00%
Gross Loss ($67,271.36) ($67,271.36) $0.00 ($65,805.05)
Avg Loss ($67,271.36) ($67,271.36) $0.00 ($65,805.05)
Avg Loss % -41.09% -41.09% 0.00% -38.70%
Avg Bars Held 325 325 0 524
Max Consecutive 1 1 0 1
Max Drawdown ($87,776.21) ($87,776.21) $0.00 ($106,485.84)
Max Drawdown Date 3/9/2009 3/9/2009 N/A 3/9/2009
Max Drawdown % -51.66% -51.66% 0.00% -56.51%
Max Drawdown % Date 3/9/2009 3/9/2009 N/A 3/9/2009
Wealth-Lab Score -61.4249 -61.4249 0 -32.9078
RAR -40.5015 -40.5015 0 -21.0262
Profit Factor 0 0 0 0
Recovery Factor 0.7664 0.7664 0 0.618
Payoff Ratio 0 0 0 0
Sharpe Ratio -1.0262 -1.0262 0 -0.9069
Dghost Annual Volatility % 24.262 24.262 0 26.6304
Excess Return -24.8966 -24.8966 0 -24.1515
Ulcer Index 21.3821 21.3821 0 25.0647
WL Error Term 7.763 7.763 0 8.146
WL Reward Ratio -2.7776 -2.7776 0 -2.5812
Luck Coefficient 0 0 0 0
Pessimistic Rate of Return 0 0 0 0
Equity Drop Ratio -0.2739 -0.2739 0 -0.2804
Looks like -40%
Here's the program
var Bar: integer;
var SMA200,SMA20:integer;
SMA200:=createseries;
SMA20:=createseries;
SMA200:=SMASeries(#Close,200);
SMA20:=SMASeries(#Close,20);
for Bar := 20 to BarCount - 1 do
begin
if not LastPositionActive then
{ Entry Rules }
begin
if crossover(Bar,SMA200,SMA20) then begin buyatmarket(Bar+1,''); end;
if crossunder(Bar,SMA200,SMA20) then begin shortatmarket(Bar+1,''); end;
end
else
{ Exit Rules }
begin
if crossover(Bar,SMA200,SMA20) then begin coveratmarket(Bar+1,lastposition,'');buyatmarket(Bar+1,''); end;
if crossunder(Bar,SMA200,SMA20) then begin sellatmarket(Bar+1,lastposition,'');shortatmarket(Bar+1,''); end;
end;
end;
Here's the results since 9/1/1998 of your bi-directional system
Long + Short Long Only Short Only Buy & Hold
Starting Capital $169,909.00 $169,909.00 $169,909.00 $169,909.00
Ending Capital $53,683.46 $122,338.81 $101,253.64 $236,738.35
Net Profit $-116,225.54 $-47,570.19 $-68,655.36 $66,829.35
Net Profit % -68.40% -28.00% -40.41% 39.33%
Annualized Gain % -8.31% -2.44% -3.82% 2.53%
Exposure 69.52% 23.05% 37.25% 100.00%
Cash Interest $0.00 $0.00 $0.00 $0.00
Margin Loan Interest $0.00 $0.00 $0.00 $0.00
Total Commission $-391.17 $-199.51 $-191.66 $-27.43
Number of Trades 21 11 10 1
Avg Profit/Loss $-5,534.55 $-4,324.56 $-6,865.54 $66,829.35
Avg Profit/Loss % -4.70% -4.18% -5.26% 39.22%
Avg Bars Held 127.05 106.00 150.20 3,343.00
Winning Trades 10 7 3 1
Winning % 47.62% 63.64% 30.00% 100.00%
Gross Profit $47,406.83 $41,190.34 $6,216.49 $66,829.35
Avg Profit $4,740.68 $5,884.33 $2,072.16 $66,829.35
Avg Profit % 3.73% 4.50% 1.93% 39.22%
Avg Bars Held 27.90 28.00 27.67 3,343.00
Max Consecutive 3 3 1 1
Losing Trades 11 4 7 0
Losing % 52.38% 36.36% 70.00% 0.00%
Gross Loss $-163,632.37 $-88,760.52 $-74,871.85 $0.00
Avg Loss $-14,875.67 $-22,190.13 $-10,695.98 $0.00
Avg Loss % -12.36% -19.38% -8.35% 0.00%
Avg Bars Held 217.18 242.50 202.71 0.00
Max Consecutive 3 2 4 0
Max Drawdown $-150,969.48 $-90,759.48 $-76,809.94 $-242,398.89
Max Drawdown Date 3/9/2009 3/9/2009 7/19/2007 3/9/2009
Max Drawdown % -77.88% -44.86% -44.93% -56.54%
Max Drawdown % Date 3/9/2009 3/9/2009 7/19/2007 3/9/2009
Wealth-Lab Score -21.2511 -15.3460 -14.8659 1.0985
RAR -11.9471 -10.5934 -10.2572 2.5277
Profit Factor 0.2897 0.4641 0.0830 INF
Recovery Factor 0.7699 0.5241 0.8938 0.2757
Payoff Ratio 0.3019 0.2323 0.2316 INF
Sharpe Ratio -0.5135 -0.2690 -0.4059 0.1944
Dghost Annual Volatility % 15.5020 8.6268 8.7187 17.0242
Excess Return -7.9607 -2.3207 -3.5393 3.3097
Ulcer Index 40.2764 20.4350 26.9809 21.2442
WL Error Term 7.4570 6.2140 3.5880 12.2460
WL Reward Ratio -1.1137 -0.3930 -1.0650 0.2064
Luck Coefficient 3.5286 2.9245 1.4916 0.0000
Pessimistic Rate of Return 0.1442 0.1686 0.0304 0.0000
Equity Drop Ratio -0.6427 -2.3077 -1.0168 2.2589
This is very poor.