Zack: A Simple Backtesting Engine in Zig
github.com
Zack: A Simple Backtesting Engine in Zig
1–9 of 9 posts
Re: Zack: A Simple Backtesting Engine in Zig
#2Re: Zack: A Simple Backtesting Engine in Zig
#3Interesting. This looks like just the thing to try out Zig. Where can I get historical data to try this on? Are there data sets that are pretty recent? I’d like to get a few months of data but right until yesterday.
Re: Zack: A Simple Backtesting Engine in Zig
#4Re: Zack: A Simple Backtesting Engine in Zig
#5I understand that "stocks in play" (boomer slang for meme stocks) display whacky irrational behavior that makes no sense, or there is just a temporary combination of high volatility at relatively low market cap, and therein lies potential profit opportunities. It's not clear whether an algorithmic trading strategy is applicable to such situations although I do see people always mention "stock screeners" which seems to just be code to filter time series.
After taking into account transaction costs, slippage and taxes, it's not clear that there is anything better to do than buy and hold low-cost index funds.
Also, there is a separate problem around having the computer structure/segment large trades to reduce market impact to get the best deal possible by looking at the order book to wait for people willing to buy/sell a lot at reasonable prices or something -- that is a different kind of algorithmic trading from what most people mean when they say they are backtesting a trading strategy like moving average crossover or something.
It all just feels too much like alchemy. But, if you become independently wealthy by writing code or you just don't lose a lot of money and you find it fun so it's sort of like paying to do something you enjoy, God bless.
Re: Zack: A Simple Backtesting Engine in Zig
#6It's still not clear to me that past data has any information about future prices or that repeating trends appear with any statistical significance. Especially major indexes that aggregate lots of equities. It's not clear if they ever did and if they did if they still do now that everything is electronic and very fast. I understand there are studies showing momentum phenomena, etc. Maybe there would be if Renaissance…
Sure, 100%. The growth of this strategy has limitations though. Check out Mike Green's interviews on Youtube about the growth of passive investments post 2008 as a source of systemic volatility.
Though I can't tell if this project supports it, how do you feel about non-stock price indicators? Things like housing starts, gas prices, or various constructions of a "Walmart indicator"?
Re: Zack: A Simple Backtesting Engine in Zig
#7It's still not clear to me that past data has any information about future prices or that repeating trends appear with any statistical significance. Especially major indexes that aggregate lots of equities. It's not clear if they ever did and if they did if they still do now that everything is electronic and very fast. I understand there are studies showing momentum phenomena, etc. Maybe there would be if Renaissance…
Perhaps this effect is ignorable if one trades insignificant volumes, but then, one can't get rich on trading insignificant volumes, so what's the point.
Re: Zack: A Simple Backtesting Engine in Zig
#8Interesting. This looks like just the thing to try out Zig. Where can I get historical data to try this on? Are there data sets that are pretty recent? I’d like to get a few months of data but right until yesterday.
Checkout https://github.com/ValueRaider/yfinance-cache
Re: Zack: A Simple Backtesting Engine in Zig
#9It's still not clear to me that past data has any information about future prices or that repeating trends appear with any statistical significance. Especially major indexes that aggregate lots of equities. It's not clear if they ever did and if they did if they still do now that everything is electronic and very fast. I understand there are studies showing momentum phenomena, etc. Maybe there would be if Renaissance…
I couldn't find anywhere this project implies otherwise. I assumed you're supposed to load your proprietary data in the strategy.