






# D1H4 Swing Universal - Multi-Timeframe Swing Trading Bot
## Overview
D1H4 Swing Universal is an advanced swing trading strategy based on multi-timeframe analysis using Daily (D1) and 4-Hour (H4) charts. This bot emphasizes trend quality assessment through ADX filtering, MACD, and RSI combination, featuring robust entry conditions and flexible profit protection with breakeven and trailing stop functionality.
## Key Features
### 🎯 Three Operating Modes
- **LongOnly**: Buy positions only
- **ShortOnly**: Sell positions only
- **Both**: Bidirectional trading
### 📊 Multi-Timeframe Analysis
- **D1 EMA 200**: Major trend identification
- **H4 EMA 50**: Medium-term trend filter
- **ADX**: Trend strength and quality assessment (rising trend confirmation)
### 🎪 High-Precision Entry Conditions
**Buy Entry:**
- D1 above EMA 200
- H4 above EMA 50 (with deviation limit)
- ADX above threshold and rising
- DI+ greater than DI-
- MACD Golden Cross + one of the following:
- MACD < 0 (cross below zero line)
- RSI crossing above 50 from below
**Sell Entry:**
- Opposite conditions of buy
### 💰 Solid Risk Management
- **Risk Percentage Control**: Set risk per trade as % of account balance
- **Maximum Lot Limit**: Prevents excessive position sizing
- **Cool Down Feature**: Configurable waiting period after entry/close
- **ATR-Based Stop Loss**: Adapts to market volatility
### 🛡️ Advanced Exit Management
- **Risk-Reward Settings**: Target profit as multiple of risk
- **Breakeven Function**: Moves to breakeven + buffer upon reaching specified R-value
- **Trailing Stop**: Follows H4 EMA - ATR buffer after reaching specified R-value
## Parameter Descriptions
### Mode Control
- **Strategy Mode**: Trading direction selection (LongOnly/ShortOnly/Both)
### Money Management
- **Risk % per Trade**: Risk percentage per trade (recommended: 0.5-2.0%)
- **Max Lots**: Maximum lot size limit (recommended: 10.0)
- **Cool Down Hours**: Interval between entries (hours)
- **Cool Down Ref**: Cool down reference point (from entry/from close)
### Trend Filter
- **Daily EMA Period**: D1 trend determination EMA (default: 200)
- **H4 EMA Period**: H4 trend determination EMA (default: 50)
- **ADX Period**: ADX period (default: 14)
- **ADX Threshold**: Minimum ADX value (default: 20)
- **ADX Slope Tolerance**: ADX rising trend tolerance (default: -0.5)
- **EMA Deviation (Pips)**: Allowable deviation from H4 EMA (default: 150 pips)
### Indicator Settings
- **MACD Fast/Slow/Signal**: MACD settings (12/26/9)
- **RSI Period/Threshold**: RSI settings (14/50)
- **ATR Period**: ATR period (14)
### Exit Strategy
- **ATR SL Multiplier**: Stop loss ATR multiplier (default: 2.0)
- **Min SL Pips**: Minimum stop loss (default: 45 pips)
- **Risk Reward Ratio**: Risk-reward ratio (default: 2.0)
- **BE Trigger (R)**: Breakeven trigger R-value (default: 1.2)
- **Trailing Trigger (R)**: Trailing start R-value (default: 2.2)
- **Trailing ATR Buffer**: Trailing ATR buffer multiplier (default: 0.5)
## Recommended Settings
### Currency Pairs
- Major pairs such as GBPUSD, EURUSD, AUDUSD, NZDUSD
- Markets with clear trending characteristics
### Timeframe
- **Must run on H4 chart**
### Initial Parameters
- **Risk %**: 1.0%
- **Cool Down**: 24 hours
- **Strategy Mode**: LongOnly or Both (depending on market conditions)
- **Risk Reward**: 2.0 or higher recommended
## Important Notes
⚠️ Backtest results represent past performance and do not guarantee future results
⚠️ Please test thoroughly on a demo account before using in live trading
⚠️ It is recommended to disable automated trading during major economic announcements
⚠️ Always implement proper risk management
## Developer's Note
This bot employs a solid swing trading strategy that emphasizes trend quality. The ADX rising trend check aims to capture the early stages of trends. When combined with proper risk management, this strategy is designed for stable long-term operation.
**Disclaimer**: Use of this bot is at your own risk. The developer assumes no responsibility for trading results.
---
⭐ If you find this useful, please leave a rating and review!










.jpg)



.png)








.png)


