Get the latest tech news
Zack: A Simple Backtesting Engine in Zig
Backtesting engine in Zig. Contribute to zerotech-studio/zack development by creating an account on GitHub.
Zack simulates the process of trading based on a predefined strategy using historical OHLCV (Open, High, Low, Close, Volume) data. It processes data bar-by-bar, generates trading signals, simulates order execution, manages a virtual portfolio, and reports the performance. Logic: It generates a single "Buy" ( Long) signal when the open price of a bar crosses above a predefined threshold ( buyAt), but only if the portfolio does not already hold a position.
Or read this on Hacker News