You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
git clone https://github.com/Rohan5commit/brain-topology-trader.git
cd brain-topology-trader
modal deploy modal_app.py
3. One-time Historical Training
modal run modal_app.py::train_historical
This fetches 25 years of OHLCV (2000–2025), trains the NCP on 3-class next-day direction labels, and saves ncp_weights_base.pt to the Modal Volume. Expect 2–6 hours on A10G.
State Files (Modal Volume /data)
File
Purpose
ncp_weights_base.pt
Base trained weights
ncp_weights_latest.pt
Daily-updated weights
signals_history.parquet
Last 3 days of raw model outputs
positions_state.parquet
Open positions + entry dates
features_cache.parquet
Latest feature snapshot
Notes
No secrets are hardcoded anywhere — all via modal.Secret.from_name(...)
All persistent state lives in Modal Volume, not git
Alpaca base URL is always https://paper-api.alpaca.markets (paper trading only)
About
Daily autonomous NCP/LNN trading bot — top 1000 US stocks, 2x leverage, Alpaca Paper Trading