PromptBase
Upgrade
Close icon
General
Home
Marketplace
Create
Hire
Login
Chat
Sell
Explore

Prompt Details

Model
Chat - (gpt-5.5)
Token size
1,133
Example input
[Stocks / ETFs / Futures / Forex / Crypto]: Crypto [Trend Following / Mean Reversion / Momentum / Statistical Arbitrage]: Trend Following [Intraday / Swing / Position]: Position (2–8 week holding period) [Here. ]: $25,000 total | max 12% per position | max 4 concurrent positions [Returns / Risk Control / Diversification]: Maximum returns with systematic trend capture
Example output
## 🎯 SECTION 1 β€” Strategy Design Framework ### Trading Hypothesis - Top-10 crypto assets exhibit prolonged directional trends driven by macro liquidity cycles, Bitcoin halving cycles, and institutional adoption waves - Trend following with systematic entries during early trend confirmation captures the majority of large directional moves while avoiding whipsaw noise through structured filters - Crypto trends are longer and larger in magnitude than traditional assets β€” trend following has outsized expected value in this asset class ### Market Inefficiency Targeted - Trend persistence anomaly β€” retail panic selling and FOMO buying create momentum that extends beyond fundamental value for weeks to months - Institutional accumulation phases are identifiable via on-chain volume and price structure before retail participation peaks - Crypto markets remain less efficiently priced than equities β€” trend signals decay slower, providing a wider window to capture edge ### Strategy Rationale - Bitcoin halving cycles (every ~4 years) create structural bull and bear phases that are systematically exploitable - Top-10 assets by market cap show highest liquidity β€” execution risk is minimized at $25,000 capital level - Position-level time horizon filters out intraday noise while capturing the most profitable phase of trend development ### Expected Edge - Early trend entry during consolidation breakouts before trend acceleration - Systematic exit at trend exhaustion signals rather than arbitrary price targets - Diversification across 4 uncorrelated assets reduces single-asset blow-up risk ### Performance Objectives - Annualized return target: β‰₯ 60% (crypto-appropriate benchmark) - Max drawdown: ≀ 25% (crypto volatility adjusted) - Sharpe ratio: β‰₯ 1.3 - Win rate: β‰₯ 45% (trend following accepts lower win rate with high R:R) - Average R:R realized: β‰₯ 3:1 - Profit factor: β‰₯ 2.0 ### Strategy Architecture Summary - **Universe filter β†’ trend regime filter β†’ breakout signal β†’ position sizing β†’ pyramiding rules β†’ trailing exit** - Weekly chart for trend direction, daily chart for entry timing - End-of-day signal scan β€” no intraday monitoring required --- ## πŸ“Š SECTION 2 β€” Signal Generation Engine ### Entry Conditions - Price closes above 20-week high on weekly chart (Donchian Channel breakout) - 50-day EMA crossed above 200-day EMA within the last 30 days (golden cross confirmation) - Weekly close above upper Keltner Channel (2Γ— ATR) β€” confirms trend acceleration, not just range expansion - Bitcoin Dominance trending down (signals altcoin season β€” amplifies alt trend moves) - Minimum 30-day price increase of β‰₯ 25% prior to entry (asset is already in momentum, not lagging) ### Exit Conditions - **Primary trailing stop:** 3Γ— ATR (21-period) trailing below highest close since entry β€” widens with trend, tightens on reversal - **Trend breakdown exit:** Weekly close below 20-week low (Donchian lower band) β€” trend officially broken - **Time-based review:** If position shows less than +10% return after 4 weeks, reduce size by 50% (low momentum flag) - **Profit protection:** Once position reaches +2R, move stop to breakeven β€” never let a winner turn to full loser ### Filters - No new entries when Bitcoin (BTC) is below its 200-day EMA β€” macro bear regime suppressor - Exclude assets with exchange/regulatory risk flags (delist warnings, SEC action, exchange insolvency risk) - Exclude assets showing negative divergence: price making new highs but on declining weekly volume - Skip entries if asset has already moved > 80% in 30 days β€” late-stage momentum, unfavorable entry risk ### Confirmation Signals - On-chain active addresses trending up β‰₯ 3 consecutive weeks (growing network usage supports price) - Exchange net outflow positive β€” coins leaving exchanges signals accumulation, not distribution - Social sentiment shift: Google Trends for asset name showing early uptick (pre-retail FOMO phase) - Weekly RSI (14) between 55–70 β€” in momentum zone but not yet overheated ### Signal Ranking Logic - Each qualifying asset scored 0–100: - Trend strength (ADX value, normalized): 30 points - Volume confirmation on breakout week: 25 points - On-chain accumulation signal: 20 points - RSI positioning (55–65 scores highest): 15 points - Bitcoin Dominance context score: 10 points - Top 4 ranked assets from scan are selected for position entry ### ⚠️ False Signal Risks - Crypto markets produce frequent "fakeout" breakouts driven by leveraged liquidation cascades - Weekend low-liquidity periods amplify false moves β€” entries triggered on weekend candles have higher failure rate - Exchange-specific price anomalies can trigger signals on data errors β€” validate signals across 2+ data sources ### ⚠️ Overfitting Concerns - Donchian 20-week channel is a classic, robust parameter β€” do not optimize it to asset-specific values - On-chain filters are qualitative overlays β€” avoid data-mining specific threshold values on historical crypto data - Crypto backtest history is short (5–8 years max) β€” be highly skeptical of optimized parameters showing outstanding backtest results --- ## βš–οΈ SECTION 3 β€” Risk Management Architecture ### Stop-Loss Framework - **Initial stop:** 3Γ— ATR (21-period daily) below entry close - **Maximum initial stop distance:** 15% from entry β€” if ATR-based stop exceeds 15%, reduce position size to compensate - **Hard floor stop:** Never risk more than 3% of total capital ($750) on any single position regardless of setup quality - **No stop-moving against position:** Stop can only move in direction of trade (trail up for longs, never pulled down) ### Position Sizing Model - Risk per trade: 3% of capital = $750 - Position size: `$750 Γ· (Entry Price βˆ’ Stop Price in $) = Units to buy` - Example: BTC entry $42,000, stop $37,800 (10% below) β†’ risk per unit = $4,200 β†’ position = $750 Γ· $4,200 = 0.179 BTC = ~$7,500 position value - Hard position cap: 12% of portfolio = $3,000 max β€” if formula exceeds this, size down to cap ### Pyramiding Rules - Add 50% of initial position size when trade reaches +1.5R profit - Add second 25% increment at +3R profit - Each pyramid addition uses same ATR trailing stop β€” no new risk added, only momentum compounding - Maximum 2 pyramid additions per position ### Exposure Limits - Maximum 4 concurrent open positions - Maximum portfolio capital deployed: 75% ($18,750) - Minimum cash reserve: 25% ($6,250) β€” dry powder for new opportunities and drawdown buffer - Maximum BTC allocation: 2Γ— standard position (BTC is macro anchor β€” may hold larger size) ### Drawdown Controls - At -10% portfolio: reduce all new position sizes by 50% - At -15% portfolio: no new entries β€” manage existing positions to exit only - At -20% portfolio: close all positions, move to cash, full system review before resuming - Weekly drawdown limit: -8% β†’ if hit by Wednesday, no new trades for remainder of week ### Portfolio Risk Rules - Correlation check: never hold more than 2 high-correlation alts simultaneously (ETH + MATIC + AVAX are correlated β€” max 2 of these 3) - BTC hedge option: if portfolio is 100% long alts, hold a 20% BTC position as partial hedge during uncertain macro - No leverage β€” spot positions only at this capital level --- ## πŸ’° SECTION 4 β€” Portfolio Construction Framework ### Asset Selection Rules - Only top-10 by market cap at time of signal (recheck weekly via CoinGecko/CoinMarketCap) - Minimum $500M average daily trading volume across major exchanges (CEX liquidity requirement) - Asset must be tradeable on at least 2 top-5 exchanges (Binance, Coinbase, Kraken, OKX, Bybit) - Exclude stablecoins and wrapped tokens from universe ### Diversification Logic - Maximum 2 assets from same sector (e.g., max 2 of: Layer 1s, DeFi, Interoperability) - BTC + ETH treated as base layer β€” can both be held simultaneously as they behave differently in specific regimes - Always aim to hold at least 1 asset with low BTC correlation (typically DeFi or oracle tokens) ### Weighting Methodology - Risk-parity approach: all positions carry equal $750 risk regardless of position dollar value - Higher-conviction setups (score > 85) receive pyramid allocation β€” base size is same but compounds faster - BTC exception: may hold 1.5Γ— standard risk ($1,125) given its role as market anchor and deepest liquidity ### Correlation Controls - Calculate 30-day rolling correlation matrix across open positions weekly - If any two assets show correlation > 0.85 for 2 consecutive weeks β€” exit the lower-ranked position - During broad crypto market selloffs (BTC -15% in a week), all alts correlate to 1.0 β€” accept this systemic risk as unavoidable in crypto ### Rebalancing Approach - No calendar rebalancing β€” position sizes managed by ATR trailing stop and pyramid rules - Universe re-screened every Sunday evening using weekly close data - Watchlist of next 3 qualifying setups maintained at all times for rapid deployment when positions close --- ## πŸ” SECTION 5 β€” Backtesting Methodology ### Historical Testing Framework - **Data source:** Binance historical OHLCV daily data via API (free, reliable, deep history) - **Backtest period:** January 2019 – December 2023 (5 years β€” includes full bull, bear, and recovery cycles) - **Out-of-sample hold-out:** January 2024 – present (untouched during development) - **Platform:** Python (Backtrader or Vectorbt) β€” vectorbt preferred for speed on large universe - **Transaction costs:** 0.1% maker fee per trade (Binance standard) + 0.3% slippage on entry/exit ### Validation Procedures - Minimum 100 completed trades across full backtest period (crypto trend following generates fewer trades than intraday) - Analyze performance separately by year β€” identify which market regime (bull/bear/sideways) drives most return - Validate that system is profitable in out-of-sample 2024 data independently - Compare strategy vs buy-and-hold BTC benchmark β€” must demonstrate superior risk-adjusted returns ### Walk-Forward Testing - 12-month optimization windows + 4-month forward test windows - Fixed parameters across all windows β€” Donchian 20-week is not optimized, it is fixed - Record percentage of forward-test windows that are profitable (target: β‰₯ 65%) ### Robustness Analysis - Test Donchian channel from 16–24 weeks β€” performance should remain relatively stable - Test ATR multiplier from 2.0×–4.0Γ— β€” Sharpe should not collapse at any single value - Test entry filter removal one-by-one β€” identify which filters add most value vs noise - Monte Carlo: 1,000 shuffled trade sequences β€” verify max drawdown distribution stays below 30% ### Stress Testing - **2022 crypto bear market (Nov 2021 – Nov 2022):** Strategy must not lose more than 25% of peak capital β€” trend filters should have exited by Feb 2022 - **LUNA/UST collapse (May 2022):** UST/LUNA not in top-10 by this framework's liquidity rules β€” verify exclusion - **FTX collapse (Nov 2022):** Test system behavior during sudden 30%+ market-wide drawdown in a week - **2020 COVID crash (March 2020):** BTC -50% in 2 days β€” system must trigger stops and go to cash within 1–2 daily closes --- ## πŸ“Š SECTION 6 β€” Performance Evaluation System ### Return Metrics - Annualized CAGR (target: β‰₯ 60%) - Monthly return distribution β€” mean, median, best, worst month - Return vs BTC buy-and-hold benchmark (must show alpha) - Return vs equal-weight top-10 crypto buy-and-hold benchmark ### Risk Metrics - Maximum drawdown (target: ≀ 25%) - Drawdown duration (average recovery time) - Calmar ratio (CAGR Γ· Max Drawdown) β€” target β‰₯ 2.5 - Annualized volatility of monthly returns ### Trade Quality Metrics - Win rate (target: β‰₯ 45%) - Average winner vs average loser (target R:R β‰₯ 3:1) - Expectancy per trade - Profit factor (target: β‰₯ 2.0) - Largest single trade win and loss (tail risk monitoring) ### Regime-Specific Metrics - Bull market (BTC above 200 DMA) performance vs bear market performance separated - Number of trades taken per regime β€” confirm system correctly suppresses entries in bear regime - Average holding period by outcome (winners held longer than losers = trend following working) ### KPI Dashboard Target Values - Annualized CAGR: β‰₯ 60% - Max Drawdown: ≀ 25% - Sharpe Ratio: β‰₯ 1.3 - Sortino Ratio: β‰₯ 2.0 - Win Rate: β‰₯ 45% - Avg R:R Realized: β‰₯ 3:1 - Profit Factor: β‰₯ 2.0 - Calmar Ratio: β‰₯ 2.5 - % of months profitable: β‰₯ 60% --- ## ⚠️ SECTION 7 β€” Failure Mode Analysis ### Market Regime Risks - **Extended bear market:** Trend following generates string of small losses as system keeps attempting entries that fail β€” BTC 200 DMA filter is the primary suppressor - **Sideways accumulation phase:** Choppy price action produces multiple false breakouts before real trend ignites β€” time stop and size reduction at +4 weeks with no momentum mitigate this - **Altcoin season reversal:** Alts can peak and reverse violently in 48–72 hours β€” trailing ATR stop must be respected with zero discretion ### Execution Risks - **Exchange downtime during volatile moves:** Binance and Coinbase have experienced outages during peak volatility β€” maintain backup account on secondary exchange - **Withdrawal delays:** If primary exchange has withdrawal freeze, cannot redeploy capital β€” maintain 20% of capital on secondary exchange at all times - **Slippage on large exits:** Exiting $7,500+ positions on smaller alts may move price β€” split exits into 3 tranches over 30 minutes ### Liquidity Issues - **Rank drop:** Asset may exit top-10 by market cap mid-position β€” weekly rank check triggers exit if asset falls out of qualifying universe - **Exchange delistings:** Asset delisted with short notice β€” diversification across 4 positions limits single-asset blow-up impact - **Weekend liquidity gaps:** Thin weekend markets amplify both false signals and stop triggers β€” consider blocking new entries on Friday close signals ### Model Degradation Risks - **Crypto market maturation:** As institutional participation grows, trend persistence may shorten β€” monitor average winning trade duration annually - **Correlation regime shift:** In extreme macro stress (global recession), crypto may correlate highly with equities, breaking assumed diversification - **Halving cycle change:** If Bitcoin halving impact weakens over future cycles, the macro timing assumptions underlying the strategy weaken - **Mitigation:** Annual live performance review β€” if 12-month live Sharpe drops below 0.8, trigger full strategy reassessment ### Behavioral Risks - **FOMO additions:** Adding to positions outside pyramid rules during parabolic moves β€” worst entries in trend following are late parabolic entries - **Holding through regime change:** Refusing to accept trend reversal signals due to bullish conviction β€” trailing stop removes discretion - **Overtrading during sideways market:** Taking low-quality setups out of impatience β€” enforced minimum signal score of 70 gates trade frequency --- ## πŸ€– SECTION 8 β€” Execution & Automation Design ### Order Management Workflows - Weekly signal scan runs Sunday evening using weekly close data - Qualifying setups reviewed against open positions for correlation and capital availability - Entry orders placed as limit orders at Monday open Β±0.5% of signal trigger price - Stop-loss order placed as stop-market simultaneously with entry fill confirmation - Trailing stop updated manually each Sunday based on new ATR calculation (weekly update sufficient for position-level trades) ### Broker / Exchange Integrations - **Primary exchange:** Binance (deepest liquidity, lowest fees, robust API) - **Secondary exchange:** Coinbase Advanced Trade (US-regulated backup, withdrawal reliability) - Python ccxt library for exchange-agnostic API integration across both platforms - Portfolio tracker synced to both exchanges via API for unified position view ### Monitoring Systems - Weekly Sunday dashboard: open positions P&L, current trailing stop levels, new qualifying setups - Daily price alert: notify if any open position hits within 5% of trailing stop (preparation alert) - On-chain monitoring: Glassnode / CryptoQuant alerts for active address divergence on held assets ### Alerting Mechanisms - Telegram bot: position fills, stop triggers, weekly scan summary, drawdown breach warnings - Email alert: drawdown breaches (-10%, -15%, -20% thresholds) - Price alerts on TradingView as manual backup layer for all stop levels ### Operational Safeguards - Two-factor authentication on all exchange accounts β€” mandatory - Hardware wallet for any position value exceeding $5,000 per asset (exchange custody risk) - Weekly CSV export of all open positions and trade history to local backup - API keys set to trade-only permissions β€” withdrawal disabled on trading API keys - Kill switch: Python script to cancel all open orders and place market sell on all positions simultaneously --- ## πŸš€ SECTION 9 β€” Scaling & Optimization Roadmap ### Optimization Process - **Phase 1 (Months 1–2):** Paper trade live signals β€” track how real prices compare to backtest fill assumptions - **Phase 2 (Months 3–5):** Deploy $5,000 (20% of capital) β€” validate slippage, exchange behavior, and stop execution - **Phase 3 (Month 6+):** Full $25,000 deployment if Phase 2 Sharpe β‰₯ 1.0 over minimum 8 completed trades ### Strategy Evolution Framework - Semi-annual review: compare live performance vs walk-forward baseline - If winning trade average holding period decreases significantly year-over-year β†’ trend persistence weakening β†’ shorten Donchian channel lookback - Track on-chain signal predictive value annually β€” recalibrate weight if correlation to outcome weakens - Maintain strict rule change log β€” every modification documented with rationale and evidence ### Capital Scaling Rules - Scale from $25K to $50K after 2 consecutive profitable quarters above Sharpe 1.3 - At $100K+, introduce futures overlay (CME BTC futures) for hedging during bear regime rather than going fully to cash - At $250K+, expand universe to top-20 crypto β€” deeper bench of qualifying setups, better diversification - Above $500K, position sizes begin impacting smaller cap alt liquidity β€” shift universe bias toward BTC, ETH, BNB only ### Diversification Opportunities - Add short-trend-following layer using inverse perpetuals during confirmed bear regimes (BTC below 200 DMA for 30+ days) - Explore DeFi yield on idle cash allocation (25% cash reserve) β€” deploy in stablecoin pools at β‰₯ 8% APY while awaiting new entries - Investigate cross-asset expansion: add gold and energy commodity trend following to reduce crypto-only concentration at larger capital levels --- ## 🧾 SECTION 10 β€” Final Trading Framework Report ### 1. Strategy Summary - Position-level crypto trend following across top-10 assets by market cap - Donchian Channel breakout entry with ATR trailing stop and pyramiding on winners - BTC macro filter suppresses entries during bear market regimes - Spot-only, API-automated, weekly management frequency ### 2. Primary Source of Edge - Trend persistence in crypto driven by halving cycles, retail FOMO, and institutional accumulation phases - Pyramiding into winners compounds returns on the subset of trades that become large multi-week trends - Systematic exit via trailing stop captures majority of trend without requiring perfect top prediction ### 3. Biggest Risk Factor - Extended bear market regime β€” system will take repeated small losses on failed breakout attempts - BTC 200 DMA filter is the single most critical rule β€” removing it dramatically increases drawdown ### 4. Risk Management Rating - **7.5 / 10** - Strong position sizing, drawdown halt levels, and no-leverage rule - Exchange custody and on-chain liquidity risks are inherent to crypto β€” partially mitigable but not eliminable ### 5. Backtesting Readiness Score - **7 / 10** - Clear data pipeline, transaction cost model, and walk-forward structure defined - Crypto backtest history is short β€” 5-year data covers only ~1.5 halving cycles, limiting statistical power ### 6. Portfolio Robustness Assessment - **Moderate Robustness** - 4-position diversification and correlation controls reduce single-asset risk - During market-wide crypto crashes all positions correlate β€” portfolio robustness is primarily provided by cash allocation and halt rules, not diversification ### 7. Automation Readiness Rating - **8.5 / 10** - ccxt library makes multi-exchange automation straightforward - Weekly management frequency reduces automation complexity compared to intraday systems - Hardware wallet custody requirement adds manual step β€” semi-automated rather than fully automated ### 8. Scalability Potential - **High up to $250,000** in top-10 crypto universe without market impact - BTC alone can absorb several million in position size β€” ETH similar - Smaller alts (MATIC, LINK, DOT) face liquidity ceilings at $50K+ position sizes ### 9. Key Optimization Priorities - Validate BTC 200 DMA filter impact on drawdown reduction β€” likely highest single-rule impact in backtest - Test pyramid addition timing (1.5R vs 2R vs 2.5R trigger) for return vs stability tradeoff - Evaluate on-chain confirmation filter β€” does it improve win rate enough to justify data dependency? - Test weekend entry suppression rule β€” check if Friday-close signals underperform weekday signals ### 10. Final Strategic Recommendations - The BTC macro filter is non-negotiable β€” never bypass it regardless of individual asset signal strength - Accept that trend following will have losing streaks of 5–8 consecutive trades β€” this is structural, not a system failure - Pyramid rules are the highest-leverage element of this system β€” execute them mechanically and resist the urge to take profits early on strong winners - Crypto exchange risk is real β€” hardware wallet custody and secondary exchange allocation are risk management steps, not optional enhancements - Do not benchmark against crypto bull market returns β€” benchmark against risk-adjusted returns including drawdown; a 60% return with 20% drawdown is superior to 120% return with 60% drawdown --- **Framework Status: READY FOR PAPER TRADE VALIDATION** **Estimated Live-Ready Timeline: 8–10 weeks from backtest completion**
πŸ€– GPT

Algorithmic Trading Framework Builder

Add to Cart
Instant accessInstant access
Usage rightsCommercial use
Money-back guaranteeMoney‑back
By purchasing this prompt, you agree to our terms of service
GPT-5.5
Tested icon
Guide icon
4 examples icon
Free credits icon
Many traders have profitable ideas but struggle to convert them into structured, testable, and scalable trading systems ⚠️ ✨ What You Receive: πŸ“ˆ Trading strategy architecture πŸ€– Signal generation framework βš–οΈ Risk management system design πŸ“Š Backtesting methodology πŸ’° Position sizing framework πŸ” Performance analytics blueprint πŸš€ Deployment & monitoring roadmap πŸš€ Transform trading ideas into systematic, repeatable trading frameworks.
...more
Added 4 weeks ago
Report
Browse Marketplace