Pinned Tweet
Run your Python trading strategy on Investfly without maintaining execution servers.
investfly.com/python-algorit…
1
137
Crypto Daily DCA And Monthly Rebalance
I'm sharing a crypto allocation example from Investfly that combines regular BTC purchases with a BTC/ETH rebalance. The interesting part is how several schedules compete for the same finite cash balance.
Entry:
Schedule a $100 BTC purchase daily at 12:00 New York time, plus a guarded four-hour BTC/ETH cash sweep during 08:00–20:00 when BTC is above its 50-day average. The sweep uses 70/30 BTC/ETH weights and a 20% minimum cash reserve; on the first calendar day each month, a separate rebalance targets 65/35 weights within a 35%-of-equity allocation budget and an 8% drift tolerance. Purchases remain subject to cash and exposure limits.
Exit:
The monthly rebalance can trim overweight holdings as well as buy underweight ones. Position exits also include a 25% initial stop, staged profit targets at 35% and 80%, and a 365-day holding limit.
Results:
Historical simulation: 2020-12-31–2026-10-18.
Net return: +129.96%; max drawdown: -35.99%; closed trades: 96.
These are portfolio backtest results for the full period, not live returns.
Assessment and next test:
Regular buying and rebalancing still produced a 35.99% maximum portfolio drawdown. I'd test daily purchases, the cash sweep and the monthly rebalance separately, then compare their combination with a passive BTC/ETH allocation using the same starting capital.
Rules and historical backtest:
app.investfly.com/strategy/6…
3
Put your rules in an Investfly trading agent, then review its activity instead of checking charts throughout the workday.
investfly.com/?utm_source=x.…
5
Python Event-Aware Gap Fade: at 09:35 it fades 0.4-6% opening gaps in AAPL/NVDA/TSLA, skipping news-driven gaps (earnings, FDA, M&A). 1.25% stop, 1% target, 90-min hold. Backtest 2026-09-17 to 10-21: -0.06% net, -0.39% max DD, 13 trades. Rules: app.investfly.com/strategy/7…
5
Backtest your rules, then practice them in an Investfly virtual portfolio before considering live trading.
investfly.com/no-code-tradin…
7
Advanced State Guarded Rebalance (Investfly): at 09:35 ET rank AAPL/MSFT/NVDA by 20d ROC, hold leader (40% equity) only if SPY > 200d SMA. 10% stop, 15%/40% targets. Backtest 2020-07-27 to 2026-10-19: +126.98%, max DD -20.25%, 154 trades. Not live. app.investfly.com/strategy/6…
9
Work on your Python trading strategy with Investfly's hosted tools instead of maintaining servers and data pipelines.
investfly.com/python-algorit…
1
13
Python VWAP Mean Reversion: AAPL/NVDA intraday price-to-VWAP z-score; fade at +/-1.35. Backtest 2026-09-17 to 2026-10-21: -1.32% net, -1.40% max drawdown, 68 closed trades. It lost money; backtest, not live. app.investfly.com/strategy/7…
1
26
Turn your trading checklist into a no-code strategy and test the workflow with Investfly's free 7-day trial.
investfly.com/no-code-tradin…
13
Advanced Score Weighted Rotation
Mon: top-2 by 20d ROC (AAPL/AMZN/META/MSFT/NVDA), equal-wt in 50% budget. 12% stop, staged targets, 8% trail, 90d hold.
2020-07-27–2026-10-19: +104.29% / -22.06% DD / 164 trades (backtest). Caveat: tech concentration.
app.investfly.com/strategy/6…
13
Build your trading rules across markets inside Investfly instead of wiring together separate alert and execution tools.
investfly.com/?utm_source=x.…
9
Python Opening Range Breakout Scale: AAPL/MSFT/NVDA opening-high breakout before noon, trend+volume filters, 1.5% stop, scaled exits. Backtest 9/17-10/21/26: -0.46%, max DD -1.12%, 25 trades. Not live returns; it lost money. app.investfly.com/strategy/7…
1
24
Put your rules in an Investfly trading agent, then review its activity instead of checking charts throughout the workday.
investfly.com/?utm_source=x.…
9
Hybrid Signal & Scheduled Rotation (Investfly): AAPL 20/50 MA entry on 15m bars + weekly AAPL/META ROC rotation + hourly $500 AAPL buys. 4% stop, 3.5%/9% targets.
Backtest 2026-09-17 to 10-19: -0.62% net, -3.05% max DD, 7 trades. Too few to say what hurt.
app.investfly.com/strategy/6…
18
Backtest your rules, then practice them in an Investfly virtual portfolio before considering live trading.
investfly.com/no-code-tradin…
11
Nice, finviz is solid for quick scans. Saving your criteria (price, volume, an indicator or two) lets you rerun the same scan daily. For a stock screener built around your own price, volume, and indicator criteria, check out Investfly: investfly.com/help/stockScre…
22
Python Adaptive Breadth Momentum: ranks 6 megacaps by risk-adjusted momentum, holds 2 leaders when SPY/breadth are strong, else 1.
Backtest 9/17-10/21/26: +2.68%, -3.01% max DD, 9 trades. Not live returns.
app.investfly.com/strategy/7…
Code: github.com/investfly/python-…
6
Work on your Python trading strategy with Investfly's hosted tools instead of maintaining servers and data pipelines.
investfly.com/python-algorit…
6
Futures 15m MNQ Trend Pyramid: 20/50 EMA trend + ADX(14)>20, adds up to 3 contracts after 5/10-tick favorable moves. 20-tick trail, 24-tick target. Backtest 2026-10-08 to 2026-10-16: -0.99% net, -1.73% max DD, 13 trades. Short window, not live. Rules: app.investfly.com/strategy/7…
9
Turn your trading checklist into a no-code strategy and test the workflow with Investfly's free 7-day trial.
investfly.com/no-code-tradin…
11
Python Vol Target Sector Rotation: monthly, if SPY > 150d avg, hold 3-6 of 9 sector ETFs w/ +63d momentum, inverse vol/corr weights. Exit on regime fail.
Backtest 7/27/20-10/21/26: +41.34%, max DD -11.47%, 65 trades. Not live.
app.investfly.com/strategy/7…
Code github.com/investfly/python-…
6






























