Overview
Market Watch is an intelligent market monitoring system that protects your positions and captures extreme volatility opportunities. It analyzes real-time market movements across multiple symbols and automatically responds with four protective and opportunistic layers.
π NEW in v2.0: Auto-Trade now includes built-in DCA, custom stop-loss, and maximum hold time protection!
π― Core Features
1. Market Movement Monitoring
- Continuously analyzes price movements across configured symbols
- Calculates average market movement percentage
- Detects crashes (downward) and pumps (upward) movements
- Logs all movements to file for historical analysis
2. Four-Layer Response System
Layer 1: Alert Broadcasting π’
Purpose: Keep you informed of significant market movements
- Sends alerts to Telegram/Discord when threshold is breached
- Includes detailed movement data per symbol
- Acts as early warning system
Layer 2: Emergency Close π‘οΈ
Purpose: Protect existing positions during extreme movements
- Automatically closes positions moving against you
- Crash β Closes all LONG positions
- Pump β Closes all SHORT positions
- Respects minimum hold time to avoid premature exits
Layer 3: Trade Locking π
Purpose: Prevent new trades during high volatility
- Locks new trade signals when volatility exceeds threshold
- Auto-unlocks when market stabilizes
- Protects capital during uncertain periods
Layer 4: Auto-Trade π° ENHANCED
Purpose: Capitalize on extreme reversal opportunities
- Automatically places trades during extreme movements
- Buys the dip on crashes (Long)
- Shorts the peak on pumps (Short)
- π Built-in DCA for dollar-cost averaging
- π Custom stop-loss protection
- π Maximum hold time safety
βοΈ Configuration
Basic Configuration
MarketWatch:
Enabled: true
# -----------------------------------------------------------
# Symbols to Monitor
# -----------------------------------------------------------
Symbols:
- "BTCUSDT"
- "ETHUSDT"
- "SOLUSDT"
- "BNBUSDT"
# Add more symbols as needed
# -----------------------------------------------------------
# Analysis Settings
# -----------------------------------------------------------
Candles: 10 # Number of 1-min candles to analyze
# 10 candles = 10 minutes of data
# -----------------------------------------------------------
# Layer Thresholds (in %)
# -----------------------------------------------------------
AverageMovementPercent: 1.1 # Alert threshold
AverageMovementEmergencyClose: 0.6 # Emergency close threshold
LockPercent: 0.3 # Lock trades threshold (0 = disabled)
# -----------------------------------------------------------
# Emergency Close Settings
# -----------------------------------------------------------
EmergencyCloseMinHoldTime: 20 # Minimum minutes before emergency close
# 0 = Apply immediately
π Enhanced Auto-Trade Configuration
# -----------------------------------------------------------
# Auto-Trade on Extreme Volatility (ENHANCED v2.0)
# -----------------------------------------------------------
AutoTrade:
Enabled: true # Enable/disable automatic trade execution
Threshold: 1.8 # % average movement to trigger auto-trade
# Must be higher than alert threshold
Direction: "Both" # Trading direction:
# "Long" β Buy dips only
# "Short" β Short pumps only
# "Both" β Trade both directions
Symbols: # Symbols allowed for auto-trading
- "BTCUSDT" # (can differ from monitor symbols)
- "ETHUSDT"
- "SOLUSDT"
InitialAmount: 100 # Initial order size per symbol (USDT)
# π Maximum Hold Time Protection
MaximumHoldTime: 180 # Maximum minutes to hold auto-trade
# Trade closes after this duration
# regardless of P&L
# 0 = no time limit
# Examples:
# 60 = 1 hour max
# 120 = 2 hours max
# 180 = 3 hours max
# -----------------------------------------------------------
# π Stop-Loss Configuration (Auto-Trade Specific)
# -----------------------------------------------------------
StopLoss:
Enabled: true # Enable stop-loss for auto-trades
StopLossPercent: 4 # Stop-loss % from average entry
# Calculated from:
# - Average entry (if DCA enabled)
# - Initial entry (if DCA disabled)
# Examples:
# 4 = Close at -4% loss
# 5 = Close at -5% loss
# Works for BOTH Long and Short
# -----------------------------------------------------------
# π Built-in DCA for Auto-Trades
# -----------------------------------------------------------
DCASettings:
enabled: true # Enable DCA for auto-trades
max_orders: 5 # Total orders including initial
# Example: 1 initial + 4 DCA orders
size_multiplier: 1.2 # Each DCA order size multiplier
# 1.0 = same size
# 1.2 = 20% larger each time
# 1.5 = 50% larger each time
price_deviation_percent: 1.0 # % price drop to trigger next DCA
# Example: 1.0 = every 1% move
# Lower = more aggressive
# Higher = more conservative
π Configuration Parameters Explained
Core Settings
Symbols
- What: List of trading pairs to monitor for volatility
- Example:
["BTCUSDT", "ETHUSDT"] - Tip: Include major coins for best market representation
- Note: Monitor symbols can differ from auto-trade symbols
Candles
- What: Number of 1-minute candles to analyze
- Default: 10 (= 10 minutes)
- Range: 5-20 recommended
- Tip: Higher = smoother but slower response
AverageMovementPercent
- What: Alert broadcast threshold
- Default: 1.1%
- Purpose: Get notified of significant movements
- Tip: Set based on typical market volatility
AverageMovementEmergencyClose
- What: Emergency position close threshold
- Default: 0.6%
- Purpose: Protect from larger adverse movements
- Tip: Should be lower than alert threshold
- Warning: Too low = frequent emergency closes
EmergencyCloseMinHoldTime
- What: Minimum minutes a trade must be open before emergency close
- Default: 20 minutes
- Purpose: Prevent closing trades during normal entry volatility
- Examples:
0= Apply emergency close immediately20= Trade must be at least 20 minutes old60= Trade must be at least 1 hour old
- Tip: Set to 15-30 minutes for scalping, 60+ for swing trades
LockPercent
- What: Volatility threshold to lock new trades
- Default: 0.3%
- Purpose: Prevent entering during choppy markets
- Special: Set to
0to disable locking feature - Tip: Keep lower than emergency close threshold
π Auto-Trade Settings
AutoTrade.Threshold
- What: Extreme movement threshold to trigger auto-trades
- Default: 1.8%
- Purpose: Capture reversal opportunities
- Tip: Should be highest threshold (2x-3x alert threshold)
- Warning: Too low = too many trades, too high = missed opportunities
AutoTrade.Direction
- Options:
"Long"- Only buy dips (crashes)"Short"- Only short pumps"Both"- Trade both directions
- Recommended:
"Both"for maximum opportunities - Conservative:
"Long"(safer in bull markets)
AutoTrade.InitialAmount
- What: USDT amount for initial auto-trade entry per symbol
- Default: 100 USDT
- Example: 3 symbols Γ $100 = $300 initial capital per event
- Tip: Start conservative, increase as confidence grows
π AutoTrade.MaximumHoldTime
- What: Maximum minutes to hold an auto-trade position
- Default: 180 minutes (3 hours)
- Purpose: Force exit after time limit regardless of P&L
- Examples:
60= Close after 1 hour (scalping)120= Close after 2 hours (day trading)180= Close after 3 hours (swing trading)0= No time limit (not recommended)
- Tip: Match to your trading style and market conditions
- Why Important: Prevents holding losing positions indefinitely
π AutoTrade.StopLoss.StopLossPercent
- What: Stop-loss percentage from average entry price
- Default: 4%
- Calculation:
- With DCA: Calculated from average entry of all filled orders
- Without DCA: Calculated from initial entry price
- Examples:
4= Close at -4% loss (recommended)3= Close at -3% loss (tighter)5= Close at -5% loss (looser)
- Works for Both Directions:
- Long: Triggers when price drops 4% from average entry
- Short: Triggers when price rises 4% from average entry
- Tip: With 5x leverage, 4% stop = 20% capital loss
π AutoTrade.DCASettings.max_orders
- What: Total number of orders including initial entry
- Default: 5 (1 initial + 4 DCA)
- Examples:
3= 1 initial + 2 DCA (conservative)5= 1 initial + 4 DCA (balanced)7= 1 initial + 6 DCA (aggressive)
- Tip: More orders = better average but higher capital requirement
π AutoTrade.DCASettings.size_multiplier
- What: Multiplier for each subsequent DCA order size
- Default: 1.2 (20% larger)
- Examples:
1.0= Equal sizing ($100, $100, $100...)1.2= Pyramid sizing ($100, $120, $144...)1.5= Aggressive pyramid ($100, $150, $225...)
- Tip: 1.2 balances risk and averaging efficiency
π AutoTrade.DCASettings.price_deviation_percent
- What: Price movement % to trigger next DCA order
- Default: 1.0% (every 1% drop for long, 1% rise for short)
- Examples:
0.5= Very aggressive (triggers often)1.0= Balanced (recommended)2.0= Conservative (less frequent)
- Tip: Lower values = more DCA orders filled faster
π¬ How It Works - Real Example
Scenario: Market Crash with New Features
Time: 10:00 AM - Market starts dropping rapidly
BTC: -2.8% in 10 minutes
ETH: -3.1% in 10 minutes
SOL: -2.5% in 10 minutes
Average: -2.8%
System Response (in order):
Step 1: Alert (1.1% threshold) β
π¨ Market Crash detected!
Average movement: -2.8%
- BTCUSDT: -2.8%
- ETHUSDT: -3.1%
- SOLUSDT: -2.5%
Alert sent to Telegram/Discord
Step 2: Emergency Close (0.6% threshold) β
β οΈ Emergency close triggered!
Closing all LONG positions to prevent further losses
Existing long positions closed (if older than 20 min)
Step 3: Lock Trades (0.3% threshold) β
π Trades locked due to high volatility
No new signals will be executed
System prevents random entries during chaos
Step 4: Auto-Trade Triggered (1.8% threshold) β
π Auto-trade triggered at -2.8%!
Entry 1 (Initial): -2.8% movement
ββ BTCUSDT: $100 @ $93,000
ββ ETHUSDT: $100 @ $2,800
ββ SOLUSDT: $100 @ $175
Total: $300 invested
Stop-Loss set at: -4% from entry
Max hold time: 180 minutes
Step 5: π DCA Activates (If crash continues)
10:05 AM: Market drops to -3.8%
DCA Entry 2 triggered (1% gap from -2.8%)
ββ BTCUSDT: $120 @ $92,000
ββ ETHUSDT: $120 @ $2,770
ββ SOLUSDT: $120 @ $173
Total invested: $660
Average entry: -3.3%
Stop-Loss updated: -4% from new average
10:10 AM: Market drops to -4.8%
DCA Entry 3 triggered
ββ BTCUSDT: $144 @ $91,000
ββ ETHUSDT: $144 @ $2,740
ββ SOLUSDT: $144 @ $171
Total invested: $1,092
Average entry: -3.8%
Stop-Loss updated: -4% from new average
Step 6: Recovery Phase
10:20 AM: Market stabilizes at -3.0%
10:35 AM: Market recovers to +1.5%
π Auto-trades in profit as market recovers!
Position Summary:
ββ Average entry: -3.8%
ββ Current price: +1.5%
ββ Total swing: 5.3%
ββ Profit: ~$95-120 (with leverage)
ββ Time held: 35 minutes
π Trades unlocked - volatility normalized
Step 7: π Protection Scenarios
Scenario A: Stop-Loss Triggered
If market continued to -7.8% instead of recovering:
ββ Average entry: -3.8%
ββ Stop-loss: -7.8% (4% below average)
ββ Current: -8.0%
ββ Action: π¨ CLOSE ALL AUTO-TRADES
ββ Reason: "Auto-trade stop-loss triggered: -8.0% β€ -7.8%"
ββ Loss: ~$160 (protected from worse)
Scenario B: Max Hold Time
If market went sideways for 3+ hours:
ββ Entry time: 10:00 AM
ββ Current time: 1:05 PM
ββ Held for: 185 minutes
ββ Max hold: 180 minutes
ββ Action: π¨ CLOSE ALL AUTO-TRADES
ββ Reason: "Maximum hold time exceeded (185min > 180min)"
ββ Exit at current P&L (whatever it is)
π‘ Configuration Strategies
Conservative (Low Risk)
MarketWatch:
AverageMovementPercent: 1.5 # Less frequent alerts
AverageMovementEmergencyClose: 0.8 # Tighter protection
EmergencyCloseMinHoldTime: 30 # Longer hold time
LockPercent: 0.4 # More aggressive locking
AutoTrade:
Enabled: true
Threshold: 3.0 # Only extreme events
Direction: "Long" # Only buy dips
InitialAmount: 50 # Smaller positions
MaximumHoldTime: 60 # 1-hour max (quick exits)
StopLoss:
Enabled: true
StopLossPercent: 3 # Tighter stop-loss
DCASettings:
enabled: true
max_orders: 3 # Fewer DCA levels
size_multiplier: 1.0 # Equal sizing (safer)
price_deviation_percent: 1.5 # Wider gaps
Balanced (Recommended)
MarketWatch:
AverageMovementPercent: 1.1
AverageMovementEmergencyClose: 0.6
EmergencyCloseMinHoldTime: 20
LockPercent: 0.3
AutoTrade:
Enabled: true
Threshold: 1.8
Direction: "Both"
InitialAmount: 100
MaximumHoldTime: 180 # 3-hour max
StopLoss:
Enabled: true
StopLossPercent: 4 # Balanced protection
DCASettings:
enabled: true
max_orders: 5 # Good depth
size_multiplier: 1.2 # Pyramid sizing
price_deviation_percent: 1.0 # Balanced gaps
Aggressive (High Risk/Reward)
MarketWatch:
AverageMovementPercent: 0.8 # More alerts
AverageMovementEmergencyClose: 0.4 # Quicker protection
EmergencyCloseMinHoldTime: 10 # Shorter hold time
LockPercent: 0.2 # Sensitive locking
AutoTrade:
Enabled: true
Threshold: 1.5 # Lower threshold
Direction: "Both"
InitialAmount: 200 # Larger positions
MaximumHoldTime: 240 # 4-hour max (more room)
StopLoss:
Enabled: true
StopLossPercent: 5 # Looser stop-loss
DCASettings:
enabled: true
max_orders: 7 # More DCA levels
size_multiplier: 1.5 # Aggressive pyramid
price_deviation_percent: 0.8 # Tighter gaps
Scalping Strategy
MarketWatch:
Candles: 5 # Faster response (5 min)
AverageMovementPercent: 0.8
AverageMovementEmergencyClose: 0.5
EmergencyCloseMinHoldTime: 5 # Very short holds
LockPercent: 0.2
AutoTrade:
Enabled: true
Threshold: 1.5
Direction: "Both"
InitialAmount: 50 # Smaller, frequent
MaximumHoldTime: 30 # 30-min max (scalping)
StopLoss:
Enabled: true
StopLossPercent: 2 # Tight stop
DCASettings:
enabled: false # No DCA for scalping
Swing Trading Strategy
MarketWatch:
Candles: 15 # Slower, smoother (15 min)
AverageMovementPercent: 2.0
AverageMovementEmergencyClose: 1.0
EmergencyCloseMinHoldTime: 120 # 2 hours minimum
LockPercent: 0.5
AutoTrade:
Enabled: true
Threshold: 3.5 # Only major events
Direction: "Both"
InitialAmount: 500 # Larger positions
MaximumHoldTime: 1440 # 24-hour max
StopLoss:
Enabled: true
StopLossPercent: 6 # Wider stop
DCASettings:
enabled: true
max_orders: 5
size_multiplier: 1.2
price_deviation_percent: 2.0 # Wider gaps
π Capital Requirements & Risk
Maximum Exposure Calculation
Configuration:
InitialAmount: 100
max_orders: 5
size_multiplier: 1.2
Symbols: 3 (BTC, ETH, SOL)
Per Symbol:
Order 1: $100
Order 2: $100 Γ 1.2 = $120
Order 3: $120 Γ 1.2 = $144
Order 4: $144 Γ 1.2 = $173
Order 5: $173 Γ 1.2 = $208
Total per symbol: $745
All Symbols:
3 symbols Γ $745 = $2,235 maximum per event
Multiple Events:
2 simultaneous events: $4,470
3 simultaneous events: $6,705
Recommended capital: $10,000-15,000
(allows 4-6 simultaneous events + reserve)
Risk Per Event
With Stop-Loss at 4%:
ββ Capital deployed: $745 per symbol
ββ Max loss (if stopped): $745 Γ 4% Γ 5 (leverage) = $149
ββ Total max loss (3 symbols): ~$447
Without Stop-Loss (liquidation):
ββ Could lose entire $2,235 π
Stop-loss saves: $1,788 per bad event! β
π Expected Performance (Updated with DCA)
Based on Different Crash Depths:
Quick Reversal (-2% to -3%, 70% of events)
Movement: -2% β +1.5% (3.5% swing)
Capital: $300 (initial only, no DCA triggered)
Leverage: 5x
Position value: $1,500
Profit: $1,500 Γ 3.5% = $52.50
Time: 5-15 minutes
Frequency: 2-3 per week
Weekly: 2.5 Γ $52.50 = $131
Monthly: $525
Yearly: $6,300
Medium Crash with DCA (-4% to -6%, 25% of events)
Movement: -5% β +2% (7% swing from average)
Initial: $300 (5x) = $1,500
DCA 1-2: $420 (spot) = $420
Total position value: $1,920
Average entry: -4%
Leverage profit: $1,500 Γ 9% = $135
Spot profit: $420 Γ 7% = $29
Total: $164
Frequency: 1 per week
Monthly: 4 Γ $164 = $656
Yearly: $7,872
Deep Crash with Full DCA (-7% to -10%, 5% of events)
Movement: -8% β +3% (11% swing from average)
Initial: $300 (5x) = $1,500
Full DCA: $1,045 (spot)
Total position value: $2,545
Average entry: -5%
Leverage profit: $1,500 Γ 14% = $210
Spot profit: $1,045 Γ 11% = $115
Total: $325
Frequency: 2 per month
Monthly: 2 Γ $325 = $650
Yearly: $7,800
Total Annual Projection:
Conservative estimate with 5x leverage:
ββ Quick reversals: $6,300
ββ Medium crashes: $7,872
ββ Deep crashes: $7,800
ββ Total: ~$21,972 per year π
Starting capital: $10,000
ROI: ~220% annually
Accounting for losses (stop-loss hits):
ββ Gross profit: $21,972
ββ Stop-loss losses: -$2,500 (estimated 10% of events)
ββ Net profit: ~$19,472 (195% ROI)
β οΈ Important Warnings
1. Auto-Trade Risk Management
Capital Requirements
Never allocate more than 20% of trading capital per event
Example:
ββ Total capital: $10,000
ββ Max per event: $2,000
ββ Your max exposure: $2,235
ββ Status: β οΈ Slightly over, reduce to 2 symbols or smaller amounts
Stop-Loss is MANDATORY
# β DANGEROUS
StopLoss:
Enabled: false
# β
SAFE
StopLoss:
Enabled: true
StopLossPercent: 4
Why: Without stop-loss, a -10% crash could liquidate your entire position with 5x leverage.
Maximum Hold Time Protection
Without max hold time:
ββ Position could be held indefinitely
ββ Capital locked in losing trades
ββ Miss other opportunities
With max hold time (180 min):
ββ Forces evaluation every 3 hours
ββ Frees capital for better opportunities
ββ Prevents emotional holding
2. DCA Capital Management
With aggressive DCA (7 orders, 1.5x multiplier):
Total capital needed per symbol: ~$1,600
Total for 3 symbols: ~$4,800
If you only have $5,000:
ββ One bad event could use 96% of capital
ββ No reserve for other trades
ββ High stress
Recommendation:
ββ Have 3-5x max exposure in total capital
ββ $5,000 capital β max $1,000-1,500 per event
3. Multiple Simultaneous Events
Scenario: Two -3% crashes on same day
Event 1 (10:00 AM): $2,235 deployed
Event 2 (2:00 PM): $2,235 deployed
Total: $4,470 in active positions
If both hit stop-loss:
ββ Loss: ~$894 in one day
If both profit:
ββ Profit: ~$400-600 in one day
4. Leverage Warnings
With 5x Leverage:
Stop-Loss at 4%:
ββ Price movement: -4% from average
ββ Leveraged loss: -4% Γ 5 = -20% of position
ββ Actual loss: $745 Γ 20% = $149 per symbol
Stop-Loss at 10%:
ββ Price movement: -10% from average
ββ Leveraged loss: -10% Γ 5 = -50% of position
ββ Actual loss: $745 Γ 50% = $372 per symbol (DANGEROUS)
Liquidation (approx -20% move):
ββ TOTAL LOSS of entire position π
Key Takeaway: The 4% stop-loss with 5x leverage is designed to limit losses to about 20% of deployed capital, well before liquidation.
π§ Troubleshooting
Auto-Trade Not Triggering
Check:
AutoTrade.Enabled: true- Movement exceeds
AutoTrade.Threshold - Direction matches movement (crash requires Long/Both)
- Symbols are configured correctly
- Check logs for "π Auto-trade triggered" messages
Common Issues:
# Issue: Threshold too high
Threshold: 3.0
Actual movement: -2.5%
Solution: Lower to 2.0 or 1.8
# Issue: Wrong direction
Direction: "Long"
Movement: +3% (pump)
Solution: Change to "Both" or "Short"
DCA Not Triggering
Check:
DCASettings.enabled: true- Price has moved
price_deviation_percentfrom last entry - Haven't reached
max_ordersyet - Check logs for "DCA Entry X triggered"
Example:
Entry 1: $95,000 @ -1.8%
DCA gap: 1.0%
DCA 2 triggers at: $94,050 (1% lower than $95,000)
Current price: $94,500
Status: DCA not triggered yet (only -0.5% from entry)
Stop-Loss Triggering Too Early
Symptoms:
All auto-trades closing quickly
Logs show: "π¨ AUTO-TRADE STOP-LOSS TRIGGERED"
Causes & Solutions:
# Cause 1: Stop-loss too tight
StopLossPercent: 2
Average entry: -3%
Triggers at: -5% (too close!)
Solution: Increase to 4-5%
# Cause 2: High leverage amplifies movement
Leverage: 10x
Small -2% move = -20% loss
Solution: Reduce leverage to 5x or lower
Maximum Hold Time Closing Profitable Trades
Symptoms:
Trade showing +5% profit
Age: 181 minutes
Action: Closed anyway
Reason: "Maximum hold time exceeded"
This is NORMAL behavior!
- Maximum hold time is a safety feature
- Forces taking profits/losses at regular intervals
- Prevents emotional holding
If you want longer holds:
# For swing trading
MaximumHoldTime: 1440 # 24 hours
# For no limit (not recommended)
MaximumHoldTime: 0
π Best Practices
1. Start Conservative
Week 1: Testing Phase
AutoTrade:
Enabled: true
Threshold: 3.0 # High threshold (fewer trades)
InitialAmount: 25 # Very small amount
Symbols: ["BTCUSDT"] # Single symbol only
MaximumHoldTime: 60 # 1-hour max (quick exit)
StopLoss:
StopLossPercent: 3 # Tight stop
DCASettings:
enabled: false # No DCA initially
Week 2-4: If Successful
AutoTrade:
Threshold: 2.5
InitialAmount: 50
Symbols: ["BTCUSDT", "ETHUSDT"] # Add second symbol
MaximumHoldTime: 120
DCASettings:
enabled: true
max_orders: 3 # Limited DCA
Month 2+: Scale Up
AutoTrade:
Threshold: 1.8
InitialAmount: 100
Symbols: ["BTCUSDT", "ETHUSDT", "SOLUSDT"]
MaximumHoldTime: 180
DCASettings:
max_orders: 5 # Full DCA
2. Monitor First Week Closely
Daily Checklist:
- [ ] Review all auto-trade executions
- [ ] Check if stop-loss levels are appropriate
- [ ] Verify DCA entries occurred at correct levels
- [ ] Confirm max hold time is reasonable
- [ ] Calculate actual profit/loss vs expected
- [ ] Adjust thresholds if needed
3. Document Your Results
Date: 2026-02-01
Event: Market crash -2.8%
Auto-Trade Execution:
ββ Entry: -2.8% @ 10:15 AM
ββ DCA 1: -3.8% @ 10:25 AM
ββ DCA 2: -4.8% @ 10:35 AM
ββ Exit: +1.2% @ 11:30 AM (max hold time)
ββ Time held: 75 minutes
ββ Capital: $660
ββ Profit: $89
Notes:
- Max hold time worked well
- Could have gained more if held longer
- But forced exit prevented potential reversal loss
4. Adjust for Market Conditions
Bull Market
Direction: "Long" # Focus on buying dips
Threshold: 2.0 # More opportunities
MaximumHoldTime: 240 # Hold longer for trends
Bear Market
Direction: "Short" # Focus on shorting pumps
Threshold: 2.5 # More selective
MaximumHoldTime: 120 # Quick exits
High Volatility Period
Threshold: 2.5 # Be more selective
StopLossPercent: 3 # Tighter stops
max_orders: 3 # Less DCA
Low Volatility Period
Threshold: 1.5 # Capture smaller moves
StopLossPercent: 5 # Wider stops
max_orders: 5 # More DCA opportunities
5. Regular Reviews
Weekly:
- Win rate of auto-trades
- Average profit per trade
- Stop-loss hit rate
- Max hold time effectiveness
- DCA performance (how often filled, ROI)
Monthly:
- Which symbols perform best
- Optimal threshold level
- Best time of day for auto-trades
- Capital efficiency
- Strategy adjustments needed
Quarterly:
- Overall ROI
- Risk-adjusted returns
- Compare vs manual trading
- Refine configuration
- Update strategy document
π Advanced Tips
1. Time-Based Adjustments
# Asian Session (Lower volatility)
AutoTrade:
Threshold: 1.5
MaximumHoldTime: 240
# US Session (Higher volatility)
AutoTrade:
Threshold: 2.0
MaximumHoldTime: 120
2. Symbol-Specific Settings (Future Feature)
# Concept for future implementation
AutoTrade:
SymbolSettings:
BTCUSDT:
InitialAmount: 150 # Larger for BTC
StopLossPercent: 4
SOLUSDT:
InitialAmount: 75 # Smaller for altcoins
StopLossPercent: 5 # Wider stop (more volatile)
3. Correlation Management
Don't auto-trade highly correlated pairs simultaneously:
Bad: BTC, ETH, BNB all at once (highly correlated)
ββ If BTC crashes, all three crash together
ββ All positions hit stop-loss
ββ 3x the loss
Better: BTC, SOL, MATIC (less correlated)
ββ Diversification helps
4. Volatility Regime Detection
Calculate recent average movement:
ββ Last 24h avg: 0.8%
ββ Current threshold: 1.8%
ββ Ratio: 2.25x normal volatility
If market is unusually calm:
ββ Consider lowering threshold temporarily
If market is unusually volatile:
ββ Consider raising threshold
ββ Tighten stop-loss
ββ Reduce leverage
π Support & Feedback
Log Levels for Debugging
Level Purpose
ββββββββββββββββββββββββββββββββββββ
info Normal operations
debug Detailed flow
warn Potential issues
error Failures and emergencies
Important Log Messages
# Auto-Trade Execution
π Auto-trade triggered at -2.8%
π Placing LONG orders (buying the dip)
# DCA Triggers
πͺ DCA Entry 2 triggered @ -3.8%
π₯ DCA Entry 3 triggered @ -4.8%
# Stop-Loss
π¨ AUTO-TRADE STOP-LOSS TRIGGERED!
current_pnl=-4.50, stop_loss_threshold=-4.00
# Max Hold Time
π¨ AUTO-TRADE MAX HOLD TIME EXCEEDED - Force closing
trade_age=185, max_hold=180, current_pnl=+1.20
# Protection
β° Emergency close skipped - minimum hold time not met
β
Auto-trade within max hold time limit
When Reporting Issues Include:
- Full Market Watch configuration
- Relevant log excerpts with timestamps
- Market conditions at time of issue
- Expected vs actual behavior
- Symbol and specific trade details
- Screenshots of positions/orders
π Quick Start Checklist
Phase 1: Setup (Day 1)
- [ ] Copy configuration example
- [ ] Set
Enabled: true - [ ] Configure 3-5 monitor symbols
- [ ] Set conservative thresholds
- [ ] Configure AutoTrade with 1 symbol, $25
- [ ] Enable stop-loss (4%)
- [ ] Set maximum hold time (60 min)
- [ ] Disable DCA initially
Phase 2: Initial Testing (Week 1)
- [ ] Test alerts with Telegram/Discord
- [ ] Verify emergency close works
- [ ] Observe lock/unlock behavior
- [ ] Wait for first auto-trade event
- [ ] Verify stop-loss triggers correctly
- [ ] Confirm max hold time works
- [ ] Review first trade results
Phase 3: Enable DCA (Week 2)
- [ ] Enable DCA with max_orders: 3
- [ ] Set price_deviation: 1.0%
- [ ] Monitor DCA triggering
- [ ] Verify average entry calculation
- [ ] Check stop-loss with DCA positions
- [ ] Evaluate profitability
Phase 4: Scale Up (Month 2+)
- [ ] Increase InitialAmount gradually
- [ ] Add more symbols (up to 3)
- [ ] Increase max_orders to 5
- [ ] Optimize thresholds based on data
- [ ] Fine-tune hold times
- [ ] Maximize capital efficiency
π Summary
What Market Watch Does:
β
Monitors market for extreme volatility (crashes/pumps)
β
Alerts you via Telegram/Discord
β
Protects existing positions (emergency close)
β
Prevents bad entries (lock feature)
β
Captures opportunities (auto-trade)
β
Averages down intelligently (DCA)
β
Protects capital (stop-loss)
β
Forces discipline (max hold time)
π Key Enhancements in v2.0:
- Built-in DCA - Automatically average down on continued crashes
- Custom Stop-Loss - Auto-trade specific protection (4% from average)
- Maximum Hold Time - Time-based exits prevent indefinite holding
- Better Capital Management - Clear risk limits per event
- Enhanced Logging - Detailed information for debugging
Success Formula:
1. Start small ($25-50 per symbol)
2. Test thoroughly (1-2 weeks)
3. Monitor closely (daily reviews)
4. Scale gradually (weekly adjustments)
5. Document everything (track performance)
6. Adapt to market (change with conditions)
Your system can now turn -3% crashes into +5% profits while protecting you from -10% disasters! π―
Last Updated: February 2026
Version: 2.0 (Enhanced Auto-Trade with DCA, Stop-Loss, and Max Hold Time)
Happy Trading! ππ