GhostRider Documentation - The-OmniLabs/gunbot-mfride GitHub Wiki
GhostRider Strategy Documentation
Overview
GhostRider is an advanced futures trading strategy designed to predict and ride market waves with precision. Built for the volatile futures markets, it combines multiple timeframe analysis, dynamic profit management, and sophisticated risk controls to maximize trading opportunities.
Strategy Type: Futures Trading
Market: Futures Markets
License Compatibility: Ultimate Gunbot licenses (ultimate, promoultimate, br, mm, monthlyUltimate, yearlyUltimate)
Core Strategy Features
- Multi-timeframe Analysis: Uses short (5m), medium (240m), and long (1440m) timeframes for comprehensive market analysis
- Dynamic Profit Management: Auto-adjusting profit targets based on market conditions
- Advanced Risk Controls: Multiple stop-loss mechanisms and position sizing controls
- Scalping Capabilities: Optional scalping mode for quick profit extraction
- DCA Management: Intelligent dollar-cost averaging with dynamic multipliers
Parameter Reference Tables
1. Basic Trading Configuration
Parameter | Default | Type | Description | Performance Impact |
---|---|---|---|---|
PAIR_NAME | USDT-BTC | String | Trading pair in Gunbot format | Determines which asset to trade |
TRADE_MODE | auto | Select | Trading direction (auto/long/short) | Controls market bias - 'auto' adapts to conditions |
MF_TRADING_LIMIT | 50 | String | Minimum base amount per trade | Higher values = fewer but larger trades |
MF_CAPITAL | 500 | String | Total allocated margin per cycle | Recommended 100x Trading Limit for optimal leverage |
MIN_VOLUME_TO_SELL | 0.1 | String | Minimum volume for sell orders | Prevents failed orders due to exchange minimums |
2. Timeframe Configuration
Parameter | Default | Options | Description | Performance Impact |
---|---|---|---|---|
PERIOD | 5 | 1,5,15,30,60,240 | Short timeframe (minutes) | Lower = more reactive, higher frequency trades |
PERIOD_MEDIUM | 240 | 1,5,15,30,60,240 | Medium timeframe (minutes) | Determines medium-term trend analysis |
PERIOD_LONG | 1440 | 60,240,360,720,1440 | Long timeframe (minutes) | Sets overall market trend bias |
3. Profit & Loss Management
Parameter | Default | Range | Description | Performance Impact |
---|---|---|---|---|
AUTO_GAIN | true | Boolean | Auto-adjust profit targets | Maximizes profits in trending markets |
MIN_AUTO_PROFIT | 0.3% | 0.1-10% | Minimum auto-gain threshold | Lower = more frequent exits, higher = patient for larger moves |
MIN_AUTO_PARTIAL_PROFIT | 0.3% | 0.1-10% | Minimum partial profit threshold | Controls when to take partial profits |
PROFIT_QUOTIENT | 2 | 1-10 | Auto-gain profit multiplier | Higher = more aggressive profit targets |
PARTIAL_PROFIT_QUOTIENT | 2 | 1-10 | Partial profit multiplier | Controls partial profit aggressiveness |
GAIN | 2% | 1-10% | Manual profit target | Fixed profit target when auto-gain disabled |
ENABLE_TRAILING | true | Boolean | Enable trailing stop-loss | Maximizes profits while protecting gains |
TRAILING_SPREAD | 1% | 1-10% | Trailing stop distance | Tighter = more protection, looser = more profit potential |
RIDE_PROFIT_WAVE | true | Boolean | Hold after profit targets met | Extends profitable trades for maximum gains |
4. Stop Loss Configuration
Parameter | Default | Range | Description | Performance Impact |
---|---|---|---|---|
ENABLE_STOP_LOSS | false | Boolean | Activate stop-loss protection | Limits drawdowns but may cut profitable trades short |
STOP_LOSS_SELL_TYPE | partial | partial/full | Stop-loss execution method | 'partial' preserves some position, 'full' exits completely |
STOP_LOSS_PERCENTAGE | 2% | 0.1-20% | Loss threshold for stop-loss | Lower = tighter risk control, higher = more tolerance |
STOP_LOSS_THRESHOLD | 50% | 1-100% | Capital percentage to maintain | Controls position sizing after stop-loss |
5. Execution & Automation
Parameter | Default | Range | Description | Performance Impact |
---|---|---|---|---|
BUY_ENABLED | true | Boolean | Enable buying behavior | Disabling stops new positions |
SELL_ENABLED | true | Boolean | Enable selling behavior | Disabling holds positions indefinitely |
STOP_AFTER_SELL | false | Boolean | Pause after sell execution | Prevents immediate re-entry |
ENABLE_DCA_MULTIPLIER | false | Boolean | Dynamic DCA volume adjustment | Adapts position sizing to market conditions |
MAX_DCA_MULTIPLIER | 3 | 1-10 | Maximum DCA multiplier | Higher = more aggressive averaging down |
DCA_QUOTIENT | 1 | 1-20 | Consecutive buys allowed | Controls trade frequency in price regions |
BATTLEGROUND_DCA_QUOTIENT | 1 | 1-20 | Buys below battleground | More aggressive DCA in lower regions |
ENFORCE_DCA_MIN_STEP | false | Boolean | Minimum DCA step distance | Prevents clustering of orders |
ENFORCE_DCA_MIN_STEP_QUOTIENT | 3 | 1-20 | DCA step size multiplier | Controls minimum distance between DCAs |
ENABLE_SCALPING | false | Boolean | Enable scalping mode | Reduces positions on market movements |
6. Technical Indicators & Strategy Behavior
Parameter | Default | Range | Description | Performance Impact |
---|---|---|---|---|
BASE_DCA_PERCENT | 0.5% | 0.05-5% | Base DCA trigger distance | Lower = more frequent DCA, higher = more selective |
LAUNCHPAD_TRADE_INDEX | 3 | 1-10 | Long entry aggressiveness | Lower = more aggressive long entries |
FIREWALL_TRADE_INDEX | 3 | 1-10 | Short entry aggressiveness | Lower = more aggressive short entries |
LAUNCHPAD_CLOSE_RANGE | 2 | 1-10 | Short position close level | Lower = quicker short exits |
FIREWALL_CLOSE_RANGE | 2 | 1-10 | Long position close level | Lower = quicker long exits |
DYNAMIC_TRADE_X | false | Boolean | Auto-adjust trade frequency | Increases trade frequency based on market conditions |
MS | 100% | 1-100% | Momentum sell threshold | Capital usage threshold for pump detection |
SR | 30% | 1-100% | Soft reduction threshold | Margin ratio for position reduction |
SCALPING_RATIO | 10% | 0-100% | Upper region capital allocation | Limits capital for scalping trades |
SCALPING_SELL_AMOUNT | 0.5 | 0.1-1 | Scalping sell percentage | Portion of position to sell during scalping |
SCALPING_UPPER_SELL_AMOUNT | 0.75 | 0.1-1 | Upper region sell percentage | More aggressive selling in upper regions |
Usage Scenarios
Scenario 1: Conservative Long-Term Trading
Best For: Stable markets, risk-averse traders
PERIOD: 15 (slower reactions)
PERIOD_MEDIUM: 240 (4-hour trend)
PERIOD_LONG: 1440 (daily trend)
GAIN: 3% (higher profit targets)
TRAILING_SPREAD: 2% (wider trailing)
ENABLE_STOP_LOSS: true
STOP_LOSS_PERCENTAGE: 1.5% (tight risk control)
DCA_QUOTIENT: 3 (more selective DCA)
BASE_DCA_PERCENT: 1% (less frequent DCA)
Expected Performance: Lower trade frequency, higher win rate, controlled drawdowns
Scenario 2: Aggressive Scalping
Best For: High volatility, active monitoring
PERIOD: 1 (fastest reactions)
PERIOD_MEDIUM: 15 (short-term trend)
PERIOD_LONG: 240 (medium-term bias)
GAIN: 1% (quick profit targets)
TRAILING_SPREAD: 0.5% (tight trailing)
ENABLE_SCALPING: true
SCALPING_RATIO: 50% (more scalping capital)
SCALPING_SELL_AMOUNT: 0.8 (aggressive profit taking)
DYNAMIC_TRADE_X: true (adaptive frequency)
Expected Performance: High trade frequency, quick profits, requires active monitoring
Scenario 3: Balanced Multi-Timeframe
Best For: Most market conditions, balanced approach
PERIOD: 5 (default reactivity)
PERIOD_MEDIUM: 240 (4-hour analysis)
PERIOD_LONG: 1440 (daily trend)
AUTO_GAIN: true (adaptive profits)
PROFIT_QUOTIENT: 2.5 (moderate aggression)
RIDE_PROFIT_WAVE: true (extend winners)
ENABLE_TRAILING: true (protect gains)
DCA_QUOTIENT: 2 (moderate DCA)
Expected Performance: Balanced risk/reward, adapts to market conditions
Scenario 4: High-Leverage Recovery
Best For: Underwater positions, recovery mode
ENABLE_DCA_MULTIPLIER: true
MAX_DCA_MULTIPLIER: 5 (aggressive averaging)
BATTLEGROUND_DCA_QUOTIENT: 5 (heavy lower DCA)
ENFORCE_DCA_MIN_STEP: true (controlled spacing)
STOP_LOSS_THRESHOLD: 25% (aggressive position management)
MS: 50% (early momentum selling)
SR: 20% (early soft reduction)
Expected Performance: Aggressive position building, higher risk/reward
Scenario 5: Trend Following
Best For: Strong trending markets
PERIOD_LONG: 1440 (daily trend focus)
LAUNCHPAD_TRADE_INDEX: 1 (aggressive longs)
FIREWALL_TRADE_INDEX: 1 (aggressive shorts)
RIDE_PROFIT_WAVE: true (extend trends)
TRAILING_SPREAD: 3% (wide trailing for trends)
GAIN: 5% (larger profit targets)
AUTO_GAIN: true (adaptive to trend strength)
Expected Performance: Large profits in trends, may struggle in ranging markets
Risk Management Guidelines
Position Sizing
- MF_CAPITAL should be 100x MF_TRADING_LIMIT for optimal leverage
- Never risk more than 2-5% of total portfolio per strategy instance
- Monitor margin usage and adjust MF_CAPITAL accordingly
Stop Loss Strategy
- Enable ENABLE_STOP_LOSS for risk-averse trading
- Set STOP_LOSS_PERCENTAGE between 1-3% for most scenarios
- Use STOP_LOSS_THRESHOLD to control position sizing after losses
DCA Management
- Start with DCA_QUOTIENT of 1-2 for beginners
- Increase BASE_DCA_PERCENT in highly volatile markets
- Enable ENFORCE_DCA_MIN_STEP to prevent order clustering
Profit Taking
- Use AUTO_GAIN in trending markets
- Set TRAILING_SPREAD based on market volatility
- Enable RIDE_PROFIT_WAVE for maximum trend capture
Performance Optimization Tips
- Timeframe Selection: Match timeframes to market volatility
- Profit Targets: Lower targets in ranging markets, higher in trending
- DCA Strategy: More aggressive in strong trends, conservative in chop
- Scalping: Enable only with sufficient capital and monitoring
- Stop Losses: Tighter in uncertain markets, wider in confirmed trends
Community & Support
🚀 Join the MFANYA STRATEGY Community:
Demo
🚀 Checkout the Demo:
This documentation is designed to help you maximize the potential of the GhostRider strategy. Always test parameters in a safe environment before deploying to live trading.