Statistics | Charts | Trades | Formula | Settings | Symbols | Monte CarloMuch appreciated @Newt
01/01/19 to 1/1/20?Statistics | Charts | Trades | Formula | Settings | Symbols | Monte Carlo
Statistics
All trades Long trades Short trades Buy&Hold (XAO)
Initial capital 100000.00 100000.00 100000.00 100000.00
Ending capital 157805.00 157805.00 100000.00 120870.17
Net Profit 57805.00 57805.00 0.00 20870.17
Net Profit % 57.80% 57.80% 0.00% 20.87%
Exposure % 78.58% 78.58% 0.00% 100.00%
Net Risk Adjusted Return % 73.56% 73.56% N/A 20.87%
Annual Return % 58.20% 58.20% 0.00% 21.00%
Risk Adjusted Return % 74.07% 74.07% N/A 21.00%
Total transaction costs 2195.00 2195.00 0.00 43.90
All trades 50 50 (100.00 %) 0 (0.00 %) 1
Avg. Profit/Loss 1156.10 1156.10 N/A 20870.17
Avg. Profit/Loss % 23.58% 23.58% N/A 20.87%
Avg. Bars Held 90.82 90.82 N/A 254.00
Winners 31 (62.00 %) 31 (62.00 %) 0 (0.00 %) 1 (100.00 %)
Total Profit 64832.34 64832.34 0.00 20870.17
Avg. Profit 2091.37 2091.37 N/A 20870.17
Avg. Profit % 42.56% 42.56% N/A 20.87%
Avg. Bars Held 107.06 107.06 N/A 254.00
Max. Consecutive 11 11 0 1
Largest win 9175.43 9175.43 0.00 20870.17
# bars in largest win 251 251 0 254
Losers 19 (38.00 %) 19 (38.00 %) 0 (0.00 %) 0 (0.00 %)
Total Loss -7027.35 -7027.35 0.00 0.00
Avg. Loss -369.86 -369.86 N/A N/A
Avg. Loss % -7.40% -7.40% N/A N/A
Avg. Bars Held 64.32 64.32 N/A N/A
Max. Consecutive 5 5 0 0
Largest loss -846.93 -846.93 0.00 0.00
# bars in largest loss 41 41 0 0
Max. trade drawdown -3407.84 -3407.84 0.00 -7862.32
Max. trade % drawdown -25.86 -25.86 0.00 -6.39
Max. system drawdown -10059.34 -10059.34 0.00 -7862.32
Max. system % drawdown -6.09% -6.09% 0.00% -6.39%
Recovery Factor 5.75 5.75 N/A 2.65
CAR/MaxDD 9.56 9.56 N/A 3.29
RAR/MaxDD 12.17 12.17 N/A 3.29
Profit Factor 9.23 9.23 N/A N/A
Payoff Ratio 5.65 5.65 N/A N/A
Standard Error 10545.52 10545.52 0.00 2373.84
Risk-Reward Ratio 6.68 6.68 N/A 7.43
Ulcer Index 2.08 2.08 0.00 1.93
Portfolio">Ulcer Performance Index 25.44 25.44 N/A 8.07
Portfolio">Sharpe Ratio of trades 0.83 0.83 0.00 N/A
K-Ratio 0.12 0.12 N/A 0.13
Expectancy (per $100 inv.) 23.58
comsec 21.95 per trade buy high sell low in amibroker settings delay 1
I would challenge you to including a bit of slippage in your backtests - even 1% can make a surprising change to your final equity curve (not just lower - generally much more realistic "lumpiness").
Here are 3 backtests on the weekly trend system I'm currently trading:
All Ords universe, no slippage, $11 commissions, 20 positions, $100k starting, no compounding:
1/7/18 - 1/1/19
View attachment 100498
1/7/19 - 1/1/20
View attachment 100499
1/1/19 - 1/1/20
View attachment 100500
3rd link seems ok on my phone but it might have been cached@Newt would you please repost the last graphic again (1/1/19 - 1/1/20) as the link is broken for me..
View attachment 100507
Skate.
@Newt would you please repost the last graphic again (1/1/19 - 1/1/20) as the link is broken for me..
View attachment 100507
Skate.
3rd link seems ok on my phone but it might have been cached
Point taken cf MCHere you go. Back test results of my swing system. I've been live trading this for sometime but these are the back test results for the periods you've identified. These results are based on $100k initial capital, but each position is 20% of capital (not fixed position sizing) with a max of 5 open positions. I've based this on Bell Direct published commission schedule and I've baked in about a 3% slippage which is what my live trades have been running at. I should add that I hate looking at single back test runs as it gives you absolutely no insight whatsoever into a system's behavior and to get a better insight into how a system might perform you really need to look at Monte Carlo results, which is what I've done here. I hate Amibroker's MC analysis as it has several shortcoming so I tend to do my MC using TradeSim, but for simplicity of this thread I'm just including Amibroker's Equity chart for its MC output which in any event is better than just looking at a single backtest run in Ami.
01/07/18 to 01/01/19
View attachment 100511
01/07/19 to 01/01/20
View attachment 100512
01/01/19 to 01/01/20
View attachment 100513
As Nick Radge is often quoted
As Nick Rage is often quote let's read what he has to say about slippage.
Nick Rage -11% slippage (Ouch)
"The opening auction has many benefits which is key reason why we use it in our Portfolio. It is one of the most liquid parts of the day allowing a reduction in slippage (the difference between where you want to buy and where you actually buy).
Lastly take into consideration the timeframe of the strategy and what impact the slippage has on the bottom line. Shorter term traders will be impacted significantly more by slippage and could be so adversely affected that the strategy can't actually generate a worthy return. If this is the case, then look at higher turnover shares, such as the ASX-100, head over to the US where liquidity is substantially higher, or diversify across multiple strategies where the allocation will be smaller. Longer term traders aren't penalized to such an extent as they're looking for moves in terms of dollars rather than cents.
Well, I did a little exercise recently. I went back through three years of my trading on the ASX and I calculated exactly my wanted buy points, my theoretical buy points according to my strategy, and my realtime buy points in the market. And on average, I was paying $92 per trade for the last three years on every single trade. In other words, the slippage was costing me over 11% per annum. So, not only did I have to overcome the commission drag, but the drag of the slippage meant that I had to be making more than 11% just to break even. And that’s way too much. Now, I was trading the top 200 stocks. So, it just goes to show how illiquid the Australian market is at this juncture. And if you’re going to scale this kind of a strategy, it’s going to blow up in your face"
Skate.
I think it could be worthwhile for me to run..and share..my system on this 3y period as wellHow could the shorter backtest periods Qldfrog suggested/requested be so different to the returns above over 3 years? Some facts and thoughts, and background on the niche I feel my system occupies:
- Trades full ASX universe, not just All Ords - providing conservative liquidity requirements met
- I have a strong suspicion this is a slight edge - my trading is like my driving - I don't like to change lanes a lot but we all like to be in the lane that is moving best. Skate (and probably many others here) may be more nimble getting into All Ords trades early, but hopefully by the time a stock is in the ASX500 and trending I already have a position some time ago before it entered the All Ords universe
- System is set up to enter after a decent trend has established - I've tried to force earlier entry criteria but they always hurt final performance
- System is set up to hang on to trending stocks as long as possible - there certainly is no stale filter in there - but still cuts losses and tries to lock in profits with initial % stop and trailing ATR stop
- Entry criteria requirement significant volume, new highs, trend and other conditions - net effect is my total number of trades generally much less than other active systems (100 versus almost double that for Skate's stale stop modified CAM in post 2380)
- My ego likes to see some outlier large stocks ("multi-baggers"), and my lazy side is happy having less buy and sells to do
A more important effect of this "fussy" trade selection into less trades is that the system takes time to assemble a full number of positions, and I consistently find in backtests 15 positions performs better than 20 or more. For the 1/1/19 to 1/1/20 backtest the system was still only 60% invested in June. Over longer periods the system will frequently hang on to trending stocks that flatline (but don't track downwards) during prolonged ASX downturns.
The system I'm describing is probably closer to skate's "non-stale stop" CAM - chases higher returns with less trades but at cost of greater return variability (lower Sharpe, larger and longer DDs).
So, in conclusion:
- I was surprised (and not so surprised) at how bad backtests were on periods < 12 months
- I don't think my system is over-optimised - I'll know for sure in 10 years or so
- Annual return above (previous post) closely reflects my actual returns through 2019
Lies, damned lies, and statistics! So much to learn from backtests, and great thread idea QF, but hopefully some of this shows how hard it can be comparing apples and oranges.
The own flipper zig modified still under investigation returns 63% annual with nearly 90% adjusted
I really pray it is future leak free
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?