Gold Star Pro EA

 GoldStar Pro EA - Setup Guide & Documentation

Overview

GoldStar Pro is an advanced MetaTrader 5 Expert Advisor featuring:
- **Smart Trailing Stop System** - Automatically trails profits
- **Breakeven Protection** - Moves stop to entry after profit threshold
- **News Avoidance Filter** - Pauses trading during high-impact news
- **Pattern Recognition** - Detects Triangle, Flag, Double Bottom/Top, Support/Resistance patterns
- **Compound Risk Management** - Risk percentage based on current balance

---

## Installation Guide

### Step 1: Copy EA File
1. Open MetaTrader 5
2. Go to **File → Open Data Folder**
3. Navigate to `MQL5\Experts`
4. Copy `GoldStar_Pro_EA.mq5` into this folder

### Step 2: Compile the EA
1. In MT5, press **F4** to open MetaEditor
2. Find `GoldStar_Pro_EA.mq5` in the Navigator
3. Double-click to open it
4. Press **F7** to compile
5. Ensure "0 errors" appears in the log

### Step 3: Attach to Chart
1. Open a chart (recommended: XAUUSD, H1 timeframe)
2. In Navigator panel, find **Expert Advisors → GoldStar_Pro_EA**
3. Drag and drop onto the chart
4. Configure settings (see below)
5. Click **OK**

### Step 4: Enable Auto Trading
1. Click the **AutoTrading** button in MT5 toolbar (should be green)
2. Verify the EA shows a smiley face on the chart

---

## Input Parameters Explained

### === RISK MANAGEMENT ===

| Parameter | Default | Description |
|-----------|---------|-------------|
| **RiskPercent** | 1.0 | Percentage of account balance to risk per trade |
| **MaxDrawdownPercent** | 20.0 | Emergency stop - closes all trades if drawdown exceeds this |
| **MaxDailyTrades** | 10 | Maximum number of trades allowed per day |
| **MinRiskAmount** | 10.0 | Minimum dollar amount to risk (protects small accounts) |

### === TRAILING STOP SETTINGS ===

| Parameter | Default | Description |
|-----------|---------|-------------|
| **EnableTrailingStop** | true | Turn trailing stop on/off |
| **TrailingStopPips** | 30 | Distance of trailing stop from current price |
| **TrailingStepPips** | 10 | Minimum pips price must move before trail updates |
| **TrailingStartPips** | 20 | Profit in pips before trailing begins |
| **UseBreakeven** | true | Move stop to entry first before trailing |
| **BreakevenPips** | 15 | Profit needed to activate breakeven |
| **BreakevenPlusPips** | 3 | Pips above entry for breakeven stop |

### === NEWS AVOIDANCE ===

| Parameter | Default | Description |
|-----------|---------|-------------|
| **EnableNewsFilter** | true | Enable/disable news filtering |
| **HighImpactBuffer** | 240 | Minutes before/after high impact news (no trading) |
| **MediumImpactBuffer** | 120 | Minutes buffer for medium impact news |
| **LowImpactBuffer** | 60 | Minutes buffer for low impact news |

### === PATTERN RECOGNITION ===

| Parameter | Default | Description |
|-----------|---------|-------------|
| **UseTriangleBreakout** | true | Detect triangle breakout patterns |
| **UseFlagContinuation** | true | Detect bull/bear flag patterns |
| **UseDoubleBottomTop** | true | Detect double bottom and double top patterns |
| **UseSupportResistance** | true | Detect support/resistance breakouts |
| **PatternLookback** | 50 | Number of bars to analyze for patterns |

### === TRADING SESSIONS ===

| Parameter | Default | Description |
|-----------|---------|-------------|
| **StartTime** | "07:00" | Trading session start time (server time) |
| **EndTime** | "18:00" | Trading session end time (server time) |
| **AvoidWeekends** | true | No trading on Saturday/Sunday |

### === DISPLAY SETTINGS ===

| Parameter | Default | Description |
|-----------|---------|-------------|
| **ShowInfo** | true | Show information panel on chart |
| **ShowNews** | true | Display news events |
| **InfoXPos** | 20 | Panel X position (pixels from left) |
| **InfoYPos** | 20 | Panel Y position (pixels from top) |

---

## How the EA Works

### 1. Trade Entry Logic
The EA scans for these pattern signals:

**Triangle Breakout:**
- Detects converging highs and lows
- Enters when price breaks above/below the triangle

**Flag Continuation:**
- Identifies strong trends with consolidation
- Enters in trend direction when flag completes

**Double Bottom/Top:**
- Finds two similar lows (bullish) or highs (bearish)
- Enters on confirmation of reversal

**Support/Resistance Breakout:**
- Identifies key price levels
- Enters when price breaks through with momentum

### 2. Position Sizing
```
Risk Amount = Account Balance × (RiskPercent / 100)
Position Size = Risk Amount / (Stop Distance × Pip Value)
```

### 3. Trade Management Flow
```
Trade Opens
    ↓
Price moves in favor
    ↓
Reaches BreakevenPips → Stop moves to entry + BreakevenPlusPips
    ↓
Reaches TrailingStartPips → Trailing stop activates
    ↓
Price continues → Trail follows at TrailingStopPips distance
    ↓
Price reverses → Stop hit, profit locked
```

### 4. Emergency Stop
If account drawdown exceeds MaxDrawdownPercent:
- All positions are immediately closed
- EA stops opening new trades
- Notification is sent

---

## Recommended Settings by Account Size

### Small Account ($1,000)
```
RiskPercent: 1.0
MaxDailyTrades: 5
TrailingStopPips: 20
BreakevenPips: 10
```

### Medium Account ($1,000 - $10,000)
```
RiskPercent: 1.0
MaxDailyTrades: 8
TrailingStopPips: 30
BreakevenPips: 15
```

### Large Account ($10,000+)
```
RiskPercent: 0.5 - 1.0
MaxDailyTrades: 10
TrailingStopPips: 30
BreakevenPips: 15
```

---

## Optimized Settings (Based on Backtest Analysis)

For improved Risk:Reward ratio:

```
=== RISK MANAGEMENT ===
RiskPercent: 1
MaxDrawdownPercent: 10
MaxDailyTrades: 6

=== TRAILING STOP ===
TrailingStopPips: 15
TrailingStepPips: 5
TrailingStartPips: 10
BreakevenPips: 8
BreakevenPlusPips: 2

=== TRADING SESSIONS ===
StartTime: 07:00
EndTime: 16:00
```

---

## Troubleshooting

### EA Not Trading
1. Check AutoTrading is enabled (green button)
2. Verify trading session times
3. Check if news filter is blocking
4. Ensure MaxDailyTrades not reached

### No Smiley Face on Chart
1. Right-click chart → Expert Advisors → Allow Algo Trading
2. Tools → Options → Expert Advisors → Enable all checkboxes

### Compilation Errors
1. Ensure MT5 is updated to latest version
2. Check file is in correct folder (MQL5\Experts)

---

## Important Notes

-
- **Best Timeframes:** H1, H4
- **Best Pairs:** XAUUSD (Gold), Major Forex pairs
- **Broker:** ECN/STP broker with low spreads recommended

---

## Risk Warning

Trading forex and CFDs involves significant risk of loss. Past performance does not guarantee future results. Only trade with money you can afford to lose. This EA is a tool to assist trading, not a guarantee of profits.

---

## Version History

- **v1.00** - Initial release with full feature set

---

## Support

For questions or issues, review the MT5 Experts tab for error messages and ensure all settings are configured correctly.

**Happy Trading!** 🌟

Filtro:
Nessuna recensione
Rispondi alla recensione