JSPM

@neural-trader/backtesting

2.6.0
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 47
  • Score
    100M100P100Q98996F
  • License MIT OR Apache-2.0

Neural Trader backtesting engine and historical simulation

Package Exports

  • @neural-trader/backtesting
  • @neural-trader/backtesting/src/index.js

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@neural-trader/backtesting) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

@neural-trader/backtesting

Backtesting engine and historical simulation for Neural Trader.

Installation

npm install @neural-trader/backtesting

Usage

const {
  runBacktest,
  BacktestEngine
} = require('@neural-trader/backtesting');

// Run a backtest
const result = await runBacktest({
  strategy: 'momentum',
  symbol: 'AAPL',
  startDate: '2024-01-01',
  endDate: '2024-12-31'
});

// Use backtest engine
const engine = new BacktestEngine({
  initialCapital: 100000,
  commission: 0.001
});

API

Classes

  • BacktestEngine - High-performance backtesting engine

Functions

  • backtestStrategy() - Backtest a trading strategy
  • runBacktest() - Run a complete backtest
  • quickBacktest() - Fast backtest execution
  • quickAnalysis() - Quick performance analysis
  • compareBacktests() - Compare multiple backtests
  • neuralBacktest() - Neural network backtesting

License

MIT OR Apache-2.0