JSPM

@neural-trader/strategies

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

Neural Trader strategy management and backtesting functionality

Package Exports

  • @neural-trader/strategies
  • @neural-trader/strategies/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/strategies) 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/strategies

Strategy management and backtesting functionality for Neural Trader.

Installation

npm install @neural-trader/strategies

Usage

const {
  backtestStrategy,
  runBacktest,
  StrategyRunner
} = require('@neural-trader/strategies');

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

// Use strategy runner class
const runner = new StrategyRunner({
  strategy: 'mean_reversion',
  parameters: { period: 20 }
});

API

Classes

  • StrategyRunner - Execute trading strategies
  • BacktestEngine - Run historical backtests

Functions

  • backtestStrategy() - Backtest a trading strategy
  • runBacktest() - Run a complete backtest
  • listStrategies() - List available strategies
  • optimizeStrategy() - Optimize strategy parameters
  • switchActiveStrategy() - Switch between strategies
  • quickBacktest() - Fast backtest execution
  • quickAnalysis() - Quick strategy analysis
  • compareBacktests() - Compare multiple backtests
  • getStrategyInfo() - Get strategy details
  • getStrategyComparison() - Compare strategies
  • adaptiveStrategySelection() - Adaptive strategy selection
  • recommendStrategy() - Get strategy recommendations
  • optimizeParameters() - Optimize strategy parameters
  • monitorStrategyHealth() - Monitor strategy performance

License

MIT OR Apache-2.0