Stats
Actions
Tags
From ruflo-neural-trader
Neural trading via npx neural-trader — strategies, backtesting, signals, risk, portfolio optimization
How this command is triggered — by the user, by Claude, or both
Slash command
/ruflo-neural-trader:traderFiles this command reads when invoked
The summary Claude sees in its command listing — used to decide when to auto-load this command
$ARGUMENTS Manage neural trading strategies via the `neural-trader` npm package. Parse subcommand from $ARGUMENTS. Usage: /trader <subcommand> [options] Subcommands: - `strategy create <name> --type <momentum|mean-reversion|pairs|adaptive>` -- Create a strategy - `backtest <strategy> --symbol <TICKER> --period <range>` -- Run backtest (Rust/NAPI, 8-19x faster) - `train <model> --symbol <TICKER>` -- Train neural model (lstm, transformer, nbeats) - `signal scan [--strategy <name>]` -- Scan for trading signals via anomaly detection - `risk assess [--symbol <TICKER>]` -- Calculate risk metric...
$ARGUMENTS
Manage neural trading strategies via the neural-trader npm package. Parse subcommand from $ARGUMENTS.
Usage: /trader [options]
Subcommands:
strategy create <name> --type <momentum|mean-reversion|pairs|adaptive> -- Create a strategybacktest <strategy> --symbol <TICKER> --period <range> -- Run backtest (Rust/NAPI, 8-19x faster)train <model> --symbol <TICKER> -- Train neural model (lstm, transformer, nbeats)signal scan [--strategy <name>] -- Scan for trading signals via anomaly detectionrisk assess [--symbol <TICKER>] -- Calculate risk metrics (VaR, Sharpe, drawdown)portfolio optimize [--risk-target <number>] -- Optimize allocation via mean-variancelive --broker <name> [--swarm enabled] -- Start live trading with optional swarm coordinationhistory -- View trade history and performance summarycloud <backtest|train|sweep> <strategy-or-model> --symbol <TICKER> [--period 2020-2024] [--mc-paths 1000] -- Run a HEAVY job (long walk-forward, big Monte-Carlo, parameter sweep, model training) on an Anthropic Managed Agent cloud container instead of locally. Needs ANTHROPIC_API_KEY. See the trader-cloud-backtest skill + ADR-117. (Cost: a cloud session bills container time + tokens until terminated — the skill installs neural-trader once, reuses the env, pre-flights cheap, terminates eagerly.)Steps by subcommand:
strategy create:
npx neural-trader --strategy <type> --symbol <TICKER> --createnpx @claude-flow/cli@latest memory store --key "strategy-NAME" --value "CONFIG" --namespace trading-strategiesbacktest:
npx neural-trader --backtest --strategy <name> --symbol <TICKER> --period <range> --walk-forwardnpx @claude-flow/cli@latest memory store --key "backtest-ID" --value "RESULTS" --namespace trading-backtestsnpx @claude-flow/cli@latest neural train --pattern-type trading-strategy --epochs 10train:
npx neural-trader --model <lstm|transformer|nbeats> --symbol <TICKER> --confidence 0.95signal scan:
npx neural-trader --signal scan --symbols <TICKERS>npx neural-trader --signal scan --strategy <name>npx @claude-flow/cli@latest memory store --key "signal-TIMESTAMP" --value "SIGNALS" --namespace trading-signalsrisk assess:
npx neural-trader --risk assess --symbol <TICKER>
or: npx neural-trader --var --symbol <TICKER> --investment <amount>npx neural-trader --risk-tolerance 0.02 --symbol <TICKER> for position sizingnpx @claude-flow/cli@latest memory store --key "risk-ID" --value "METRICS" --namespace trading-riskportfolio optimize:
npx neural-trader --portfolio optimize
or: npx neural-trader --portfolio optimize --risk-target <number>npx neural-trader --portfolio rebalance to generate trade plannpx @claude-flow/cli@latest memory store --key "portfolio-TIMESTAMP" --value "ALLOCATION" --namespace trading-portfoliolive:
npx neural-trader --broker <name> --strategy <name> --swarm enabledhistory:
npx @claude-flow/cli@latest memory search --query "trade history" --namespace trading-historynpx claudepluginhub digitalcrest01/ruflow --plugin ruflo-neural-trader