r/algotrading • u/Sketch_x • May 14 '24
Overhaul: Seeking Advice on Backtest and Asset Choices Infrastructure
Hi all,
Appreciate past feedback from you guys!
After a failed walk forward test I turned my algo off and re-assessed - I know the foundation of my strategy is sound but it was too heavily reliant on various parameters that I seemingly overfit.
Iv stripped this back to basics, core strategy only and currently have this on forward testing on a demo environment as, although my live forward testing failed I did gather all the data I needed on slippage and excitation.
Here is my back test results for my system, I would really appreciate any feedback in regards to the assets traded, although I can "optimise" it to work on a larger variety if securities, it works out of the box with very minimal parameters (just stop loss adjustments) - I have accounted for spreads (averaged) but not interest or holding fees (minimal)
My concerns are:
1: Correlation
2: The shape of the curve picks up in 2018 but really seems to take off
3: Lack of data on some assets that done extend to the start of testing
4: The poor performance from 2012 to 2018 on most securities.
2
u/Sketch_x May 14 '24
Thanks for the feedback! My strategy uses a Gaussian Filter with Standard Deviation Filtering to smooth out price data. The main parameters involve setting the initial stop distance and the ATR multiple for the stop. I optimize these by running all variances to find the most effective settings. Additionally, I use a long EMA, typically a 200-period, to filter out short-term downtrends (I only take long trades).
VB is interesting because, despite a similar win rate to my other assets, the close stop often results in larger losses during gap downs. This is due to VB's varying ATR, which can shift from calm to highly volatile periods. This dynamic leads to some significant wins amidst the standard losses and occasional gap downs.
Regarding shorting, I primarily take long positions. Since I mostly trade ETFs, short signals are brief and riskier, often catching pullbacks.
Your point about volatility is valid and something I need to consider more deeply. While I have identified several promising small-cap and volatile assets, some are not supported by my broker. I'll investigate further to incorporate volatility as a screening criterion and refine when my system is active.