THIS IS F*CKING INSANE... two open-source repos worth knowing: Perspective turns streaming data into interactive dashboards, and Bloomberg's BlazingMQ moves messages between systems
below them is my own backtester. i used it to replay a Bollinger Band breakout strategy across SPY, Microsoft, Apple and Nvidia
48 signals. 9 paper trades. and after all that, the portfolio that just held all four won
here's what happened over 189 trading sessions:
> breakout strategy: -1.4%
> equal-weight buy and hold: +15.6%
> max drawdown: 5.4% for the strategy vs 12.5% for holding
> 9 closed trades, 4 winners
the 3D panel is the part i'd watch. each line follows a signal after it fired, including the 39 the desk skipped. the white lines show the trades it actually took
how to build it with Claude Code:
1. load daily candles for all four tickers and give the indicators 60 bars to warm up
2. score five conditions: tight Bollinger Bands, a close above the upper band, expanding band width, price above the 50-day EMA, and RSI above 55
3. when at least four agree, flag a fresh signal. if the desk is flat, take the highest-scoring setup at the next open
4. simulate one position at a time with a 2 ATR stop, a 20-bar time limit and a 2 bps fee per side
5. plot every signal, including the skipped ones, and compare the paper results with holding the same four tickers
i won't say anything more
repo links below ↓
this is f*cking gold
i pulled the full guide on how to build a 24/7 trading terminal with Fable 5.2
in this guide you will learn how to build your OWN trading terminal for FREE
read it before everyone else starts using it: https://t.co/PywIX69YNS
THIS IS F*CKING INSANE... two open-source repos worth knowing: Perspective turns streaming data into interactive dashboards, and Bloomberg's BlazingMQ moves messages between systems
below them is my own backtester. i used it to replay a Bollinger Band breakout strategy across SPY, Microsoft, Apple and Nvidia
48 signals. 9 paper trades. and after all that, the portfolio that just held all four won
here's what happened over 189 trading sessions:
> breakout strategy: -1.4%
> equal-weight buy and hold: +15.6%
> max drawdown: 5.4% for the strategy vs 12.5% for holding
> 9 closed trades, 4 winners
the 3D panel is the part i'd watch. each line follows a signal after it fired, including the 39 the desk skipped. the white lines show the trades it actually took
how to build it with Claude Code:
1. load daily candles for all four tickers and give the indicators 60 bars to warm up
2. score five conditions: tight Bollinger Bands, a close above the upper band, expanding band width, price above the 50-day EMA, and RSI above 55
3. when at least four agree, flag a fresh signal. if the desk is flat, take the highest-scoring setup at the next open
4. simulate one position at a time with a 2 ATR stop, a 20-bar time limit and a 2 bps fee per side
5. plot every signal, including the skipped ones, and compare the paper results with holding the same four tickers
i won't say anything more
repo links below ↓
F*CK YES... Jane Street and Morgan Stanley both have open-source tools on GitHub, so i put them above a crypto trading desk and tested a breakout strategy
the idea: watch 6 coins, wait for volatility to tighten, then look for a breakout
and the f*cking cool part? the desk shows every signal, even the ones it doesn't take
first understand what's on the screen:
> Jane Street's Core is an open-source standard library for OCaml
> Morgan Stanley's Hobbes is a programming language with an embedded JIT compiler
> the desk below is a separate backtest. it doesn't run either repo or make live Claude calls
> it replays daily Kraken bars and looks for Bollinger Band squeezes across 6 coins
> when the bands tighten and price breaks above the upper band, the desk checks the rest of its conditions before taking a long setup
> signals are read at the close and filled at the next open. only one trade can be open at a time
the risk rules:
> up to 1% risk per trade, with a stop 2 ATR away
> levels at 1.5R and 3R. when the first level is reached, the stop moves to entry
> a 20-bar time stop and a 2 bps fee on each side
> the 3D panel shows how breakout signals moved after entry, including signals the desk skipped
how to build your own with Claude Code:
1. tell Claude Code to clone janestreet/core and morganstanley/hobbes, then read their READMEs to understand what each project does
2. ask it to fetch daily crypto bars from Kraken and save the open, high, low and close prices
3. build a separate backtester that calculates 20-day Bollinger Bands and tracks when their width gets unusually tight
4. check for a close above the upper band, expanding band width, price above EMA 50 and RSI above 55
5. trigger a setup when at least 4 of the 5 conditions agree. read the signal at the close and fill at the next open
6. limit the desk to one open trade at a time. add the ATR stop, target levels, time stop and fees
7. draw every signal on the chart and show which ones were taken or skipped
8. build a panel that tracks what happened after each breakout, then compare winning and losing signals
9. keep it in paper mode and test different market periods before drawing conclusions
i won't say anything more:
links to both repos in the comments ↓
save this before you lose it
F*CK YES... Jane Street and Morgan Stanley both have open-source tools on GitHub, so i put them above a crypto trading desk and tested a breakout strategy
the idea: watch 6 coins, wait for volatility to tighten, then look for a breakout
and the f*cking cool part? the desk shows every signal, even the ones it doesn't take
first understand what's on the screen:
> Jane Street's Core is an open-source standard library for OCaml
> Morgan Stanley's Hobbes is a programming language with an embedded JIT compiler
> the desk below is a separate backtest. it doesn't run either repo or make live Claude calls
> it replays daily Kraken bars and looks for Bollinger Band squeezes across 6 coins
> when the bands tighten and price breaks above the upper band, the desk checks the rest of its conditions before taking a long setup
> signals are read at the close and filled at the next open. only one trade can be open at a time
the risk rules:
> up to 1% risk per trade, with a stop 2 ATR away
> levels at 1.5R and 3R. when the first level is reached, the stop moves to entry
> a 20-bar time stop and a 2 bps fee on each side
> the 3D panel shows how breakout signals moved after entry, including signals the desk skipped
how to build your own with Claude Code:
1. tell Claude Code to clone janestreet/core and morganstanley/hobbes, then read their READMEs to understand what each project does
2. ask it to fetch daily crypto bars from Kraken and save the open, high, low and close prices
3. build a separate backtester that calculates 20-day Bollinger Bands and tracks when their width gets unusually tight
4. check for a close above the upper band, expanding band width, price above EMA 50 and RSI above 55
5. trigger a setup when at least 4 of the 5 conditions agree. read the signal at the close and fill at the next open
6. limit the desk to one open trade at a time. add the ATR stop, target levels, time stop and fees
7. draw every signal on the chart and show which ones were taken or skipped
8. build a panel that tracks what happened after each breakout, then compare winning and losing signals
9. keep it in paper mode and test different market periods before drawing conclusions
i won't say anything more:
links to both repos in the comments ↓
save this before you lose it
this is f*cking gold
i pulled the full guide on how to build a 24/7 trading terminal with Fable 5.2
in this guide you will learn how to build your OWN trading terminal for FREE
read it before everyone else starts using it: https://t.co/PywIX69YNS
2 free repos + one prompt + Claude Code = a Bloomberg-style crypto trading desk
a real Bloomberg Terminal costs around $32k a year
i built this desk in one session with $0 in software, then checked the numbers before posting
here's what it does:
> pulls one year of real daily crypto bars from Kraken
> scores each coin from 0 to 100 using 5 factors: trend, momentum, RSI, ADX and breakout
> a setup only fires when at least 4 out of 5 agree
> reads the signal at the close and fills at the next open, so the backtest doesn't peek into the future
> risks 1% per trade with a 2 ATR stop, targets at 1.5R and 3R, and a 20-bar time stop
> includes a 2 bps fee on each side of every trade
the two repos behind the idea:
1. tradingview-indicator-for-ai-agents - a Pine v6 indicator that sends a JSON packet to your agent on every closed candle. the agent responds with LONG, SHORT or WAIT. it doesn't place orders
2. tradingview-mcp - connects Claude Code to TradingView Desktop through MCP so it can read your chart. it isn't a trading bot and doesn't place real trades
one thing to know:
the video is a replay of real bars, not a live bot. the repos are separate tools and don't run inside the replay
the numbers are calculated in the file, and results are shown in R (risk units)
how to set it up:
1. clone tradingview-mcp, run npm install, launch TradingView with remote debugging on port 9222, and add the server to your Claude Code MCP config
2. paste the AI agent lens Pine script into the Pine Editor and add it to your chart
3. create an alert with "any alert() function call" and connect it to your agent's webhook - this needs a paid TradingView plan
4. give Claude the prompt below and let it build the desk
repos below
thank me later:
2 free repos + one prompt + Claude Code = a Bloomberg-style crypto trading desk
a real Bloomberg Terminal costs around $32k a year
i built this desk in one session with $0 in software, then checked the numbers before posting
here's what it does:
> pulls one year of real daily crypto bars from Kraken
> scores each coin from 0 to 100 using 5 factors: trend, momentum, RSI, ADX and breakout
> a setup only fires when at least 4 out of 5 agree
> reads the signal at the close and fills at the next open, so the backtest doesn't peek into the future
> risks 1% per trade with a 2 ATR stop, targets at 1.5R and 3R, and a 20-bar time stop
> includes a 2 bps fee on each side of every trade
the two repos behind the idea:
1. tradingview-indicator-for-ai-agents - a Pine v6 indicator that sends a JSON packet to your agent on every closed candle. the agent responds with LONG, SHORT or WAIT. it doesn't place orders
2. tradingview-mcp - connects Claude Code to TradingView Desktop through MCP so it can read your chart. it isn't a trading bot and doesn't place real trades
one thing to know:
the video is a replay of real bars, not a live bot. the repos are separate tools and don't run inside the replay
the numbers are calculated in the file, and results are shown in R (risk units)
how to set it up:
1. clone tradingview-mcp, run npm install, launch TradingView with remote debugging on port 9222, and add the server to your Claude Code MCP config
2. paste the AI agent lens Pine script into the Pine Editor and add it to your chart
3. create an alert with "any alert() function call" and connect it to your agent's webhook - this needs a paid TradingView plan
4. give Claude the prompt below and let it build the desk
repos below
thank me later:
this 3 repos + one prompt + a team of models = a bloomberg style pairs trading desk
the real one costs $32k a year per terminal. this one is FREE
it watches eth against btc and sol against eth at every daily close, finds the moment one coin gets too expensive or too cheap versus the other, and trades the gap: long one coin, short the other, market neutral
not a chatbot giving "trading tips". a team of models with one rulebook, and every spread trade has an entry, an exit and a hard stop
how it works:
1. a tradingview style chart: candles of one coin, a fair value line that a kalman filter computes from the other coin, a band around it and a z-score pane underneath
2. a pair monitor shows the hedge ratio, the cointegration test, the half-life of the spread and the correlation, so you see if the pair is even tradable
3. a team of models runs the desk: the small ones read the data and place paper orders on both legs, the bigger ones judge the spread, the biggest one makes the final call
4. every signal is written at the close and filled at the next open, so there is no peeking at the future
5. a 3d surface of rolling correlation shows how the link between the two coins breaks and heals
6. a json stream prints one line per bar and a ledger shows every spread trade after fees
the rules:
1. enter when the z-score moves 2 deviations away from fair value
2. exit when it crosses back to zero
3. stop out if it stretches to 3.5, because that can be a broken pair and not a bargain
4. max 20 days in a trade
the part most people skip:
1. fees on both legs, 2 bps on each side
2. the hedge ratio is not fixed, the filter updates it every day
3. the desk shows when the cointegration test fails, even when the signal looks great
4. real daily bars, not a single invented candle
the 3 free repos:
statsmodels: https://t.co/b49KeHzhJb
pykalman: https://t.co/FFVNb446cA
arbitragelab: https://t.co/jKVdfnvx9I
setup:
1. let your agent read the docs of the 3 repos above
2. copy the prompt from the comment
3. paste it into Claude Code and answer a few questions: your coins, paper capital, size per trade
4. let the team build the chart, the pair monitor and the ledger
5. replay a full year of daily bars and watch every spread trade happen
no fake returns here. it's paper trading only
prompt below ↓
save this before everyone else does...
this 3 repos + one prompt + a team of models = a bloomberg style pairs trading desk
the real one costs $32k a year per terminal. this one is FREE
it watches eth against btc and sol against eth at every daily close, finds the moment one coin gets too expensive or too cheap versus the other, and trades the gap: long one coin, short the other, market neutral
not a chatbot giving "trading tips". a team of models with one rulebook, and every spread trade has an entry, an exit and a hard stop
how it works:
1. a tradingview style chart: candles of one coin, a fair value line that a kalman filter computes from the other coin, a band around it and a z-score pane underneath
2. a pair monitor shows the hedge ratio, the cointegration test, the half-life of the spread and the correlation, so you see if the pair is even tradable
3. a team of models runs the desk: the small ones read the data and place paper orders on both legs, the bigger ones judge the spread, the biggest one makes the final call
4. every signal is written at the close and filled at the next open, so there is no peeking at the future
5. a 3d surface of rolling correlation shows how the link between the two coins breaks and heals
6. a json stream prints one line per bar and a ledger shows every spread trade after fees
the rules:
1. enter when the z-score moves 2 deviations away from fair value
2. exit when it crosses back to zero
3. stop out if it stretches to 3.5, because that can be a broken pair and not a bargain
4. max 20 days in a trade
the part most people skip:
1. fees on both legs, 2 bps on each side
2. the hedge ratio is not fixed, the filter updates it every day
3. the desk shows when the cointegration test fails, even when the signal looks great
4. real daily bars, not a single invented candle
the 3 free repos:
statsmodels: https://t.co/b49KeHzhJb
pykalman: https://t.co/FFVNb446cA
arbitragelab: https://t.co/jKVdfnvx9I
setup:
1. let your agent read the docs of the 3 repos above
2. copy the prompt from the comment
3. paste it into Claude Code and answer a few questions: your coins, paper capital, size per trade
4. let the team build the chart, the pair monitor and the ledger
5. replay a full year of daily bars and watch every spread trade happen
no fake returns here. it's paper trading only
prompt below ↓
save this before everyone else does...
this is f*cking gold
i pulled the full guide on how to build a 24/7 trading terminal with Fable 5.2
in this guide you will learn how to build your OWN trading terminal for FREE
read it before everyone else starts using it: https://t.co/PywIX69YNS
This is the f*cking cheat sheet every quant should have on their wall
I mapped 20 of the biggest quant trading strategies onto one page by two things: how long they hold a trade and who actually pays for their edge
From market making at microseconds to value investing over years. One map, 10 pages, every equation behind it
What's inside:
1. The map: 20 strategies across 6 sources of edge (liquidity, arbitrage, stat arb, trend, carry, fundamental)
2. Market making: how a desk earns a fraction of a basis point on billions in volume, and why inventory and informed traders are what kill it
3. Arbitrage: futures basis, ETF arb, put-call parity, and why "riskless" arbitrage almost never is
4. Stat arb: pairs trading, cointegration, mean reversion half-life, order-flow imbalance
5. Trend and momentum: why trend following pays off like a straddle, and why momentum crashes after sell-offs
6. Carry: FX carry, roll yield and the volatility risk premium, the "picking up coins" trades
7. Value and fundamental: earnings drift, merger arbitrage and how to read the odds a deal closes from its price
8. The math that decides size: trading costs, the square-root impact law, capacity, Kelly sizing
9. How to test a strategy without fooling yourself: why the best of 1,000 random strategies looks like a genius
The 3 things the map teaches:
1. Time decides the cost. Holding for a day at 2 bps per side costs about 10% a year, holding for a year costs 0.04%
2. The counterparty decides the edge. If you can't say who pays you, you don't have a trade
3. The crash mode decides the size. Every strategy has one, and most of the map earns small steady gains and pays for them with rare big losses
Speed earns on volume, patience earns on capital, and every edge has a way it breaks
Full PDF below ↓
this is f*cking gold
i pulled the full guide on how to build a 24/7 trading terminal with Fable 5.2
in this guide you will learn how to build your OWN trading terminal for FREE
read it before everyone else starts using it: https://t.co/PywIX69YNS
This is the f*cking cheat sheet every quant should have on their wall
I mapped 20 of the biggest quant trading strategies onto one page by two things: how long they hold a trade and who actually pays for their edge
From market making at microseconds to value investing over years. One map, 10 pages, every equation behind it
What's inside:
1. The map: 20 strategies across 6 sources of edge (liquidity, arbitrage, stat arb, trend, carry, fundamental)
2. Market making: how a desk earns a fraction of a basis point on billions in volume, and why inventory and informed traders are what kill it
3. Arbitrage: futures basis, ETF arb, put-call parity, and why "riskless" arbitrage almost never is
4. Stat arb: pairs trading, cointegration, mean reversion half-life, order-flow imbalance
5. Trend and momentum: why trend following pays off like a straddle, and why momentum crashes after sell-offs
6. Carry: FX carry, roll yield and the volatility risk premium, the "picking up coins" trades
7. Value and fundamental: earnings drift, merger arbitrage and how to read the odds a deal closes from its price
8. The math that decides size: trading costs, the square-root impact law, capacity, Kelly sizing
9. How to test a strategy without fooling yourself: why the best of 1,000 random strategies looks like a genius
The 3 things the map teaches:
1. Time decides the cost. Holding for a day at 2 bps per side costs about 10% a year, holding for a year costs 0.04%
2. The counterparty decides the edge. If you can't say who pays you, you don't have a trade
3. The crash mode decides the size. Every strategy has one, and most of the map earns small steady gains and pays for them with rare big losses
Speed earns on volume, patience earns on capital, and every edge has a way it breaks
Full PDF below ↓
this is f*cking goldmine…
3 free github repos + one prompt + a team of models = a bloomberg style trading desk for FREE
here's what's on the screen
1. a 3d terrain of where btc actually traded over the last 20 days, the white line on top is the close
2. a hidden markov model that reads every daily close and says calm or turbulent
3. a garch cone: 400 simulated paths for the next 10 days, and every closed cone is checked against what price really did
4. a paper ledger: long when the model says calm, flat when it says turbulent
the 3 repos
1. arch → garch volatility models in python
https://t.co/U48yIBn1vv
2. hmmlearn → hidden markov models in python
https://t.co/2Uw3p44vXA
3. backtrader → backtesting library for trading strategies
https://t.co/dXeC1Bmvlh
models, each one has its own job
1. haiku 5.5 → reads the data, scans every bar, writes each fill to the ledger
2. sonnet 5.5 → writes the code, fits the regime model, tracks equity
3. opus 5.5 → audits everything, checks the garch fit and whether the cones landed inside the band
4. fable 5.2 → the hardest calls: runs the 400 path cones, decides every entry and exit, writes the final verdict
the harder the task, the stronger the model
rules so it can't cheat
1. models fit on the first 120 days only, everything after is out of sample
2. signal at the close, fill at the next open
3. 2 bps fee per side
4. real kraken daily bars, nothing invented
setup
step 1 → open claude code with fable 5.2
step 2 → paste the prompt from the comments
step 3 → let it read the 3 repos and rebuild the ideas
step 4 → replay the bars and watch the desk fill in
step 5 → read the ledger and the verdict, even if it's ugly
prompt below ↓
most traders will scroll past this, don't...
this is f*cking goldmine…
3 free github repos + one prompt + a team of models = a bloomberg style trading desk for FREE
here's what's on the screen
1. a 3d terrain of where btc actually traded over the last 20 days, the white line on top is the close
2. a hidden markov model that reads every daily close and says calm or turbulent
3. a garch cone: 400 simulated paths for the next 10 days, and every closed cone is checked against what price really did
4. a paper ledger: long when the model says calm, flat when it says turbulent
the 3 repos
1. arch → garch volatility models in python
https://t.co/U48yIBn1vv
2. hmmlearn → hidden markov models in python
https://t.co/2Uw3p44vXA
3. backtrader → backtesting library for trading strategies
https://t.co/dXeC1Bmvlh
models, each one has its own job
1. haiku 5.5 → reads the data, scans every bar, writes each fill to the ledger
2. sonnet 5.5 → writes the code, fits the regime model, tracks equity
3. opus 5.5 → audits everything, checks the garch fit and whether the cones landed inside the band
4. fable 5.2 → the hardest calls: runs the 400 path cones, decides every entry and exit, writes the final verdict
the harder the task, the stronger the model
rules so it can't cheat
1. models fit on the first 120 days only, everything after is out of sample
2. signal at the close, fill at the next open
3. 2 bps fee per side
4. real kraken daily bars, nothing invented
setup
step 1 → open claude code with fable 5.2
step 2 → paste the prompt from the comments
step 3 → let it read the 3 repos and rebuild the ideas
step 4 → replay the bars and watch the desk fill in
step 5 → read the ledger and the verdict, even if it's ugly
prompt below ↓
most traders will scroll past this, don't...
this is f*cking insane…
two free repos, quantstats (7.9k stars) and Riskfolio-Lib (4.6k stars), in one terminal with 4 Claude models (Fable 5.2, Opus 5.5, Sonnet 5.5, Haiku 5.5) running the desk
not a "look how much I made" video, a full autopsy of one strategy: 14 metrics, the real source of the risk, and 252 alternative versions of the same idea
every number is computed live from real daily bars
here's how it works:
1 → quantstats builds the tearsheet: return, Sharpe, Sortino, Calmar, drawdown, VaR, CVaR, skew, kurtosis, win rate, profit factor, Kelly
2 → Riskfolio-Lib shows who really carries the risk: variance share and CVaR share vs the capital share
3 → 4 Claude models split the work, each one has its own job
4 → rules locked before the run: SMA 20/50 long or flat on MSFT, AAPL, NVDA and BTC, 25% each, signal at the close, position from the next bar, 2 bps fee per side
who does what:
1 → Fable 5.2 is the lead: writes the plan, locks the rules before the run, reads everything the others found and signs the verdict
2 → Opus 5.5 is the risk: runs the 2,000 bootstrap resamples of the strategy's own days, reads the risk contribution per market and flags where the risk really sits
3 → Sonnet 5.5 is the analyst: checks the strategy vs buy & hold at every checkpoint, builds the 3D view of monthly returns per market and scores the 14 tearsheet rows
4 → Haiku 5.5 is the scanner: goes bar by bar, catches every SMA 20/50 cross, logs each signal with its date and hands the list to Sonnet and Opus
what you get:
1 → a candle-by-candle replay of the whole year, every signal marked
2 → the strategy vs equal weight buy & hold, live, metric by metric
3 → 2,000 bootstrap runs of the strategy's own days, so you see luck vs skill
4 → the risk split per market, so you see which one really drives the portfolio
5 → the BTC 3D swarm: 252 SMA pairs on the same coin next to your 20/50
6 → a 14-row scorecard and a verdict from Fable 5.2
the point isn't one result, it's seeing every angle of a strategy before you trust it
now the setup:
step 1 → open Claude Code in an empty folder and run: pip install quantstats riskfolio-lib
step 2 → give it daily bars for any 4 markets and your rule, mine is SMA 20/50 long or flat with fees on every flip
step 3 → ask for the quantstats tearsheet: strategy vs equal weight buy & hold
step 4 → ask for the Riskfolio risk contribution per market: variance and CVaR vs capital share
step 5 → ask Fable 5.2 to split the jobs the way the list above does: scan, score, stress test, verdict
step 6 → lock the rules before the run, whatever the result is
repos below ↓
read the full guide before you trust any backtest...
this is f*cking insane…
two free repos, quantstats (7.9k stars) and Riskfolio-Lib (4.6k stars), in one terminal with 4 Claude models (Fable 5.2, Opus 5.5, Sonnet 5.5, Haiku 5.5) running the desk
not a "look how much I made" video, a full autopsy of one strategy: 14 metrics, the real source of the risk, and 252 alternative versions of the same idea
every number is computed live from real daily bars
here's how it works:
1 → quantstats builds the tearsheet: return, Sharpe, Sortino, Calmar, drawdown, VaR, CVaR, skew, kurtosis, win rate, profit factor, Kelly
2 → Riskfolio-Lib shows who really carries the risk: variance share and CVaR share vs the capital share
3 → 4 Claude models split the work, each one has its own job
4 → rules locked before the run: SMA 20/50 long or flat on MSFT, AAPL, NVDA and BTC, 25% each, signal at the close, position from the next bar, 2 bps fee per side
who does what:
1 → Fable 5.2 is the lead: writes the plan, locks the rules before the run, reads everything the others found and signs the verdict
2 → Opus 5.5 is the risk: runs the 2,000 bootstrap resamples of the strategy's own days, reads the risk contribution per market and flags where the risk really sits
3 → Sonnet 5.5 is the analyst: checks the strategy vs buy & hold at every checkpoint, builds the 3D view of monthly returns per market and scores the 14 tearsheet rows
4 → Haiku 5.5 is the scanner: goes bar by bar, catches every SMA 20/50 cross, logs each signal with its date and hands the list to Sonnet and Opus
what you get:
1 → a candle-by-candle replay of the whole year, every signal marked
2 → the strategy vs equal weight buy & hold, live, metric by metric
3 → 2,000 bootstrap runs of the strategy's own days, so you see luck vs skill
4 → the risk split per market, so you see which one really drives the portfolio
5 → the BTC 3D swarm: 252 SMA pairs on the same coin next to your 20/50
6 → a 14-row scorecard and a verdict from Fable 5.2
the point isn't one result, it's seeing every angle of a strategy before you trust it
now the setup:
step 1 → open Claude Code in an empty folder and run: pip install quantstats riskfolio-lib
step 2 → give it daily bars for any 4 markets and your rule, mine is SMA 20/50 long or flat with fees on every flip
step 3 → ask for the quantstats tearsheet: strategy vs equal weight buy & hold
step 4 → ask for the Riskfolio risk contribution per market: variance and CVaR vs capital share
step 5 → ask Fable 5.2 to split the jobs the way the list above does: scan, score, stress test, verdict
step 6 → lock the rules before the run, whatever the result is
repos below ↓
read the full guide before you trust any backtest...
this is f*cking gold
i pulled the full guide on how to build a 24/7 trading terminal with Fable 5.2
in this guide you will learn how to build your OWN trading terminal for FREE
read it before everyone else starts using it: https://t.co/PywIX69YNS
i still can't believe that fable 5.2 did this…
i asked it for one thing: a backtest where the strategy never changes and only the start date does
same rule, same settings, same market
157 different start dates per market, 4 markets, 628 backtests in total
and the results are completely different depending on the day you press "start"
what's on the screen
→ a fan of every start date, drawn one after another, 63 trading days each
→ the current ticket in white, the median in yellow, the best and the worst glowing in green and pink
→ a price chart with a window sliding one day per ticket, with buy and sell dots on it
→ a ribbon under the chart: the result of every ticket, placed at its start date
→ a gauge for the current ticket, a density curve of where all tickets landed, and a range bar per market
→ a log where claude narrates every new best and new worst in real time
how it works
→ rule: SMA 10/30 cross, long or flat
→ signal at the close, position on the next bar, 2 bps fee per side, no look-ahead
→ window: 63 trading days from every possible start date
→ markets: MSFT, AAPL, NVDA, SPX on real daily bars
→ no LLM calls inside the terminal, it is pure rules and one loop
honest numbers
→ MSFT: worst −15.9%, median −3.1%, best +39.6%, a 55 point spread from the same rule
→ AAPL: worst −8.3%, median 0.0%, best +20.5%
→ NVDA: worst −13.1%, median +2.7%, best +13.4%
→ SPX: worst −4.5%, median −0.2%, best +9.2%
→ across all 628 tickets only 52% ended positive and only 15% beat plain buy and hold
what this actually shows
if you only ever see one backtest, you are looking at one ticket out of 157
the best start date on MSFT looks like a genius strategy, the worst one on the same rule looks like a disaster, and nothing about the rule changed
so the question is never "what was the return", it is "what does the whole spread look like"
the prompt is in the comments below
this one prompt can save you a lot of money…
i still can't believe that fable 5.2 did this…
i asked it for one thing: a backtest where the strategy never changes and only the start date does
same rule, same settings, same market
157 different start dates per market, 4 markets, 628 backtests in total
and the results are completely different depending on the day you press "start"
what's on the screen
→ a fan of every start date, drawn one after another, 63 trading days each
→ the current ticket in white, the median in yellow, the best and the worst glowing in green and pink
→ a price chart with a window sliding one day per ticket, with buy and sell dots on it
→ a ribbon under the chart: the result of every ticket, placed at its start date
→ a gauge for the current ticket, a density curve of where all tickets landed, and a range bar per market
→ a log where claude narrates every new best and new worst in real time
how it works
→ rule: SMA 10/30 cross, long or flat
→ signal at the close, position on the next bar, 2 bps fee per side, no look-ahead
→ window: 63 trading days from every possible start date
→ markets: MSFT, AAPL, NVDA, SPX on real daily bars
→ no LLM calls inside the terminal, it is pure rules and one loop
honest numbers
→ MSFT: worst −15.9%, median −3.1%, best +39.6%, a 55 point spread from the same rule
→ AAPL: worst −8.3%, median 0.0%, best +20.5%
→ NVDA: worst −13.1%, median +2.7%, best +13.4%
→ SPX: worst −4.5%, median −0.2%, best +9.2%
→ across all 628 tickets only 52% ended positive and only 15% beat plain buy and hold
what this actually shows
if you only ever see one backtest, you are looking at one ticket out of 157
the best start date on MSFT looks like a genius strategy, the worst one on the same rule looks like a disaster, and nothing about the rule changed
so the question is never "what was the return", it is "what does the whole spread look like"
the prompt is in the comments below
this one prompt can save you a lot of money…
this is f*cking gold
i pulled the full guide on how to build a 24/7 trading terminal with Fable 5.2
in this guide you will learn how to build your OWN trading terminal for FREE
read it before everyone else starts using it: https://t.co/PywIX69YNS
I didn't know that Fable 5.2 could do this…
I gave it two GitHub repos, bt and skfolio, and asked it to build a portfolio lab. Three ways to pick weights, one benchmark, 4 markets
Only 1 of the 3 beat plain buy & hold. And it's the riskiest one
What's on the screen:
1. Top: the two repos as they look on GitHub (bt, 3.0k stars, and skfolio, 2.6k stars) × Fable 5.2
2. Walk-forward equity curves of 3 optimisers against equal-weight hold, with every rebalance marked
3. Target weights for each optimiser and the weights held as they drift
4. A correlation matrix and a risk vs return cloud of 1,771 portfolios
5. bt's algo stack running step by step, plus a results table
How it works:
1. Every 21 bars it looks at the last 60 bars of MSFT, AAPL, NVDA and SPX
2. Three optimisers pick weights (skfolio idea): min variance, risk parity, max Sharpe. Long only, no leverage
3. The portfolio rebalances to those weights (bt idea): RunEvery, SelectAll, Weigh, Rebalance
4. Between rebalances the weights drift
5. 2 bps fees per side, applied from the next bar
Honest numbers (about 9 months, paper):
→ Max Sharpe: +19.8%, Sharpe 1.16, max drawdown −13.7%
→ Equal-weight hold: +14.3%, Sharpe 1.03, max drawdown −12.4%
→ Risk parity: +13.0%, Sharpe 1.05, max drawdown −10.7%
→ Min variance: +9.2%, Sharpe 0.92, max drawdown −9.3%
The details and the prompt are in the comments below
try it before someone else does:
I didn't know that Fable 5.2 could do this…
I gave it two GitHub repos, bt and skfolio, and asked it to build a portfolio lab. Three ways to pick weights, one benchmark, 4 markets
Only 1 of the 3 beat plain buy & hold. And it's the riskiest one
What's on the screen:
1. Top: the two repos as they look on GitHub (bt, 3.0k stars, and skfolio, 2.6k stars) × Fable 5.2
2. Walk-forward equity curves of 3 optimisers against equal-weight hold, with every rebalance marked
3. Target weights for each optimiser and the weights held as they drift
4. A correlation matrix and a risk vs return cloud of 1,771 portfolios
5. bt's algo stack running step by step, plus a results table
How it works:
1. Every 21 bars it looks at the last 60 bars of MSFT, AAPL, NVDA and SPX
2. Three optimisers pick weights (skfolio idea): min variance, risk parity, max Sharpe. Long only, no leverage
3. The portfolio rebalances to those weights (bt idea): RunEvery, SelectAll, Weigh, Rebalance
4. Between rebalances the weights drift
5. 2 bps fees per side, applied from the next bar
Honest numbers (about 9 months, paper):
→ Max Sharpe: +19.8%, Sharpe 1.16, max drawdown −13.7%
→ Equal-weight hold: +14.3%, Sharpe 1.03, max drawdown −12.4%
→ Risk parity: +13.0%, Sharpe 1.05, max drawdown −10.7%
→ Min variance: +9.2%, Sharpe 0.92, max drawdown −9.3%
The details and the prompt are in the comments below
try it before someone else does:
this is f*cking gold
i pulled the full guide on how to build a 24/7 trading terminal with Fable 5.2
in this guide you will learn how to build your OWN trading terminal for FREE
read it before everyone else starts using it: https://t.co/PywIX69YNS