Skip to content

Repository files navigation

OpenBackTest

Open in browser

A manual backtest open-source tool Client-Side Only.

Check the Codebase Guide for a detailed file-by-file documentation.

Playback Playback

Trade Panel Trade Panel

Binance Live Data Feed Binance Data

Simulation Statistics Simulation Statistics

Features

  • Import historical data and visualize it on a chart.
  • Simulate market data realtime.
  • Backtest with your trading strategy.
  • Backtest analysis tools, chart tools and indicators.
  • Live broker data (Rithmic, Binance)
  • Live order execution.

Data import format

datetime,open,high,low,close,volume,symbol
YYYY-MM-DD HH:mm:ss,open,high,low,close,volume,symbol

Execute locally

npm install
npm run build
npm run dev

Rithmic market data and live account

OpenBackTest includes a Rithmic provider for the Phidias paper-trading profile (Rithmic Paper Trading / Chicago Area). The Live Trade mode shows broker account statistics and can route market orders, cancel orders, and flatten a position through the local .NET RAPI+ gateway. See gateway/README.md for setup and live-mode precautions.

Start the gateway, start OpenBackTest, then choose Connect with Rithmic credentials in the data controls. Credentials are entered in the browser and forwarded only to the local gateway; they are not part of the repository.

Testing

The project uses vitest and @testing-library/react for unit testing. All tests are located in the tests/ directory.

npm run test       # Run test suite
npm run coverage   # Run tests with coverage report

To-Do

  • Chart: CTRL+C and CTRL+V to copy and paste overlays.
  • Custom Indicators (Engine): Ability to load dynamic scripts with indicators or strategies in execution-time.
  • Expert Advisors (Engine): Algorithmic trading and backtest engine integration.

About

An open-source, client-side-only tool for manual trading backtesting

Topics

Resources

Stars

5 stars

Watchers

0 watching

Forks

Releases

Contributors

Languages