This prompt guides the design of an algorithmic trading strategy. To use it effectively:
1. Fill Placeholders: Replace all {PARAM_NAME} placeholders (e.g., {ASSET}, {ENTRY_VOL_THRESHOLD_PCT}) with specific values relevant to your strategy. Do not leave any placeholder empty.
2. Asset Selection: Clearly specify BTCUSDT or ETHUSDT for {ASSET} and BTC or ETH for {SPOT_ASSET}.
3. Volatility Metric: Choose a precise volatility metric for {VOLATILITY_METRIC} (e.g., 'Historical Volatility (20-period ATR)', 'Binance BVOL Index').
4. Direction: Define {ENTRY_DIRECTION} as 'Long', 'Short', or 'Both'.
5. Position Management Rule: Specify a clear rule for {POSITION_MANAGEMENT_RULE} (e.g., 'weighted average down', 'simple average down').
Expected output will include a detailed breakdown of algorithmic logic, required Binance API calls, precise risk management calculations with automated actions, and suggested backtesting parameters. The strategy assumes a 100% spot holding of the chosen asset as a baseline.
How to create Binance Futures Algorithmic Trading prompt for Volatility-Triggered Martingale Strategy
AI prompt created by PromptsRadar
Instructions
PromptsRadar
2026-06-02
Perplexity
As an expert algorithmic trading strategist, design a comprehensive volatility-triggered martingale overlay strategy for Binance Futures (USDT-M) to achieve leveraged exposure to a primary cryptocurrency asset. This strategy operates atop an assumed 100% spot baseline of the chosen asset, aiming to amplify returns during favorable volatility conditions while managing combined risk.
Strategy Objective:
Generate algorithmic logic for dynamic leveraged long/short exposure based on specific volatility conditions, employing sequential, martingale-like position sizing with robust margin management and defined risk limits.
Platform: Binance Futures (USDT-M) using perpetual futures contracts.
Strategy Components:
1. Asset Selection:
* Primary Leveraged Asset: {ASSET} Perpetual Futures (e.g., BTCUSDT or ETHUSDT).
* Corresponding Spot Baseline: {SPOT_ASSET} (e.g., BTC or ETH).
2. Volatility Trigger (Entry/Exit Logic):
* Volatility Metric: Monitor {VOLATILITY_METRIC} (e.g., Historical Volatility, BVOL index, Implied Volatility, Custom Indicator).
* Entry Conditions:
* Initial Entry: Trigger a new position when {VOLATILITY_METRIC} drops below {ENTRY_VOL_THRESHOLD_PCT}% or shows significant compression/downtrend over {ENTRY_VOL_COMPRESSION_PERIODS} periods.
* Direction: Initiate {ENTRY_DIRECTION} positions (Long, Short, or Both).
* Exit Conditions:
* Profit Target: Close entire position upon {PROFIT_TARGET_PCT}% gain on total position value.
* Stop Loss: Close entire position upon {STOP_LOSS_PCT}% loss on total position value.
* Volatility Reversal: Close position if {VOLATILITY_METRIC} surges above {EXIT_VOL_THRESHOLD_PCT}% or shows strong expansion/downtrend over {EXIT_VOL_EXPANSION_PERIODS} periods.
* Time-Based: Close position if profit/loss targets not hit within {TIME_BASED_EXIT_PERIODS} periods.
3. Martingale Position Sizing:
* Initial Tranche: Allocate {INITIAL_CAPITAL_PCT}% of dedicated futures trading capital.
* Subsequent Tranches (Scaling In): Add a new tranche if price moves adversely by {PRICE_DEVIATION_PCT}% and volatility conditions remain favorable or acceptable.
* Tranche Sizing Multiplier: Each subsequent tranche is {TRANCHE_SIZE_MULTIPLIER}x the preceding tranche.
* Maximum Tranches: Limit to {MAX_TRANCHES} open tranches.
* Position Management: Upon adding a new tranche, implement {POSITION_MANAGEMENT_RULE} (e.g., weighted average down).
4. Margin Management and Risk Control:
* Margin Mode: {MARGIN_MODE} (Cross Margin or Isolated Margin).
* Leverage: Target effective leverage for overall position {TARGET_EFFECTIVE_LEVERAGE}x.
* Margin Cost Accounting: Track funding rates, estimated interest, and potential liquidation fees.
* Loan-to-Value (LTV) / Margin Ratio Alerts:
* Alert Threshold: Trigger alert if LTV/Maintenance Margin Ratio reaches {LTV_ALERT_THRESHOLD_PCT}%.
* Forced Unwind: Automatically reduce position if LTV/Maintenance Margin Ratio reaches {LTV_UNWIND_THRESHOLD_PCT}% to manage liquidation risk.
* Maximum Drawdown: Define {MAX_PORTFOLIO_DRAWDOWN_PCT}% absolute maximum drawdown for the futures portfolio, triggering strategy halt if exceeded.
Deliverables:
1. Detailed algorithmic logic flow for entry, scaling, and exit signals.
2. Outline necessary Binance API calls for order execution, position monitoring, and margin management.
3. Detailed risk management calculations and proposed automated actions.
4. Suggested parameters and metrics for an initial backtesting phase.
Share on Socials