compute-features.jsEMA, RSI, ATR, MACD, volatility, range, and momentum features from closing prices.
The strategy pipeline and every operational command are JavaScript. The CLI calls the same typed Encore controls used by the dashboard.
Set the operator key, run one cycle, then inspect the ledger. Local development accepts dev-robinsharks when no production key exists.
export ROBINSHARKS_OPERATOR_KEY=dev-robinsharkspnpm trade:runpnpm trade:statuspnpm trade:review -- --agent talonDeployed under backend/api/strategy and covered by Vitest.
compute-features.jsEMA, RSI, ATR, MACD, volatility, range, and momentum features from closing prices.
compute-confluence.jsStrategy-specific indicator agreement score used to calibrate entry confidence.
compute-signal.jsTrend, mean reversion, breakout, momentum, low-volatility, and rotation decisions.
size-position.jsRisk-based sizing with confidence, cash, and maximum-position caps.
risk-checks.jsGlobal halt, circuit breaker, daily loss, confidence, cash, and position checks.
trailing-stop.jsATR-based stop ratchet with a break-even rule that never loosens risk.
Commands under scripts use ROBINSHARKS_API_URL for remote deployments.
run.mjsRun the paper fleet or one explicitly confirmed live agent.
halt.mjsSet the global halt, cancel working broker orders, and optionally flatten positions.
resume.mjsClear the halt and circuit breaker. Live arming requires the exact confirmation phrase.
reconcile.mjsSync the configured live agent against Robinhood positions.
trading-status.mjsPrint fleet, system, agent, and integration state as JSON.
review-trades.mjsCalculate outcome, streak, profit-factor, and drawdown lessons for one agent.
update-metrics.mjsApply a bounded confidence-floor adaptation while preserving every hard risk limit.
robinhood-mcp-auth.mjsComplete Robinhood OAuth with PKCE and save the MCP token locally with mode 0600.
The halt flag is written before any cancellation or flatten request reaches Robinhood.
pnpm trade:halt -- --cancel-orders --reason maintenancepnpm trade:halt -- --cancel-orders --flatten --confirm 'HALT AND FLATTEN'pnpm trade:resumepnpm trade:reconcileThe helper performs dynamic client registration, PKCE authorization, and a local callback. Robinhood credentials never enter source control.
pnpm robinhood:mcp-authnstack env set RobinhoodMCPAccessTokennstack env push