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.

Get the Android app

Or read this on Hacker News

Read more on:

Photo of zack

zack

Photo of zig

zig

Related news:

News photo

A high-throughput parser for the Zig programming language

News photo

Zig's new LinkedList API (it's time to learn fieldParentPtr)

News photo

Show HN: Zig Topological Sort Library for Parallel Processing