Nexus II - A Python coded AI that advises and a system that decides.

maybe a re-learn-wipe data periodically would address the lag as it builds up drab data causation or win rate?
Yes — some form of periodic “relearn” is a legit way to fight drift, but a full wipe is usually the most dangerous version of that idea.

What I'm worried about is real: as data accumulates, the SLM can get “dragged” by older regimes and the model’s edge can decay because the market changes (volatility regimes, liquidity, macro, microstructure, etc.). The fix is not bigger history, it’s better recency handling.

What works better than a full wipe:​

1) Rolling training window (most common, most robust)​

Train only on the most recent N trades or last X days (ex: last 500–2,000 closed trades or last 90–180 trading days).
  • Keeps the model aligned to current market behavior
  • Prevents “drab data” dominance
  • Still has enough sample size to generalize
Rule of thumb: if you don’t have many trades yet, don’t window too tight or you’ll overfit.

2) Exponential decay weighting (best if you want “memory” but not “drag”)​

Keep all data, but give newer outcomes more weight.
  • Avoids catastrophic forgetting
  • Naturally adapts to drift
  • Smooths regime transitions
This is often the sweet spot for systems like Nexus II.

3) Regime-aware training (high win-rate upside)​

Tag trades by simple regime features (ex: VIX band, ATR percentile, trendiness, session type), then either:
  • train separate models per regime, or
  • include regime features so the model learns different behavior per regime
This directly targets the “why did win rate change?” question.


When a wipe makes sense (rare)​

A wipe is useful only when:
  • you changed core logic so old labels are no longer comparable (strategy definition changed)
  • you had a bug contaminating labels/features (bad P/L, wrong exit price, missing fills)
  • the feature schema changed so older data is incompatible
In those cases: wipe the derived SLM dataset, not the authoritative ledger/trade history.


Practical “safe” policy I’m using for Nexus II​

  • Never wipe ledger/trades.
  • Maintain an SLM dataset built from ledger.
  • Retrain on:
    • Rolling window: last 180 trading days OR last 2000 trades (whichever is smaller but above a minimum)
    • Decay: half-life around 60–90 trading days
  • Trigger retrainwhen:
    • rolling 20-trade win rate drops below threshold, OR
    • drift detected (feature distributions shift), OR
    • every week/month on schedule
  • Always run a shadow evaluationbefore promoting new weights:
    • compare “current model” vs “candidate model” on last X trades
    • promote only if it beats by a margin and doesn’t increase drawdown / loss tail
This prevents the system from “thrashing” and protects me from a bad retrain.
 
Todays results:
1767819977426.png
 
Your data is moving with markets, trades reflected yesterday was tough. Live yet?

Here is what turns orange sometimes, then grey too...
I woulnt be against having this code pythoned & traded in API live

2026-01-08-TOS_CHARTSA.png
 
Your data is moving with markets, trades reflected yesterday was tough. Live yet?

Here is what turns orange sometimes, then grey too...
I woulnt be against having this code pythoned & traded in API live


Short answer: no — not live yet, and yesterday is exactly the kind of day that justifies that decision.


What yesterday actually tells us
A tough day showing up immediately in the data is not lag — it’s responsiveness.
That means:
  • The system is tracking the market in near-real time
  • Losses are being reflected, not smoothed away
  • There’s no artificial stability masking regime stress
If the data didn’t react to a rough tape, that would be the red flag.


Why this doesn’t mean “go live now”
Yesterday wasn’t just “a bad trading day” — it was a regime stress test:
  • Choppy price action
  • Fake breakouts
  • Poor continuation
  • Option spreads behaving badly intraday
Those days are where systems fail operationally, not strategically.
Before live capital, I want to confirm:
  • Were losses strategy-correct or execution-driven?
  • Did exits fire exactly as designed?
  • Did any symbols go stale or desync?
  • Did the ledger reflect reality without reconciliation hacks?
  • Did the system behave boringly under stress?
You don’t graduate to live trading because a system makes money on easy days.
You do it because it doesn’t break on hard ones.
 
Last edited by a moderator:

Join useThinkScript to post your question to a community of 21,000+ developers and traders.

Thread starter Similar threads Forum Replies Date
A Migration Script from ToS to Python or JavaScript Playground 1

Similar threads

Not the exact question you're looking for?

Start a new thread and receive assistance from our community.

87k+ Posts
891 Online
Create Post

Similar threads

Similar threads

The Market Trading Game Changer

Join 2,500+ subscribers inside the useThinkScript VIP Membership Club
  • Exclusive indicators
  • Proven strategies & setups
  • Private Discord community
  • ‘Buy The Dip’ signal alerts
  • Exclusive members-only content
  • Add-ons and resources
  • 1 full year of unlimited support

Frequently Asked Questions

What is useThinkScript?

useThinkScript is the #1 community of stock market investors using indicators and other tools to power their trading strategies. Traders of all skill levels use our forums to learn about scripting and indicators, help each other, and discover new ways to gain an edge in the markets.

How do I get started?

We get it. Our forum can be intimidating, if not overwhelming. With thousands of topics, tens of thousands of posts, our community has created an incredibly deep knowledge base for stock traders. No one can ever exhaust every resource provided on our site.

If you are new, or just looking for guidance, here are some helpful links to get you started.

What are the benefits of VIP Membership?
VIP members get exclusive access to these proven and tested premium indicators: Buy the Dip, Advanced Market Moves 2.0, Take Profit, and Volatility Trading Range. In addition, VIP members get access to over 50 VIP-only custom indicators, add-ons, and strategies, private VIP-only forums, private Discord channel to discuss trades and strategies in real-time, customer support, trade alerts, and much more. Learn all about VIP membership here.
How can I access the premium indicators?
To access the premium indicators, which are plug and play ready, sign up for VIP membership here.
Back
Top