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/backtestingUsage
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 strategyrunBacktest()- Run a complete backtestquickBacktest()- Fast backtest executionquickAnalysis()- Quick performance analysiscompareBacktests()- Compare multiple backtestsneuralBacktest()- Neural network backtesting
License
MIT OR Apache-2.0