Psyche 16 Gold EA
- Experts
- Jeannot Desire Ofori
- 버전: 2.0
- 활성화: 5
Psyche 16 Gold Expert Advisor Optimized for XAUUSD
Psyche 16 Gold Expert Advisor is a fully automated trading system built around institutional market structure analysis. The indicator and the trading engine are combined into a single file — attach it to any M15 chart and it is ready to trade.
The system identifies Order Blocks, Break of Structure events, and Change of Character signals across multiple timeframes, then enters trades using triggers zones.
---
### How It Works
The EA operates on the XAUUSD M15 chart and uses three independent entry triggers, each of which can be enabled or disabled separately.
**Trigger A — Order Block Retest**
Monitors every tick for price returning to a previously identified 15-minute internal Order Block. When price touches the block within a configurable zone, the EA opens a position aligned with the prevailing trend. This is the primary entry mechanism.
**Trigger B — Order Block Formation**
Enters immediately when a new 15-minute Order Block forms on bar close. This captures the earliest possible entry after institutional activity is confirmed.
**Trigger C — Break of Structure**
Opens a position immediately when a 15-minute swing Break of Structure is confirmed. The stop loss is placed at the high or low of the candle that caused the breakout.
---
### Built-In SMC Indicator
The indicator draws all key Smart Money Concepts elements directly on the chart. All visual elements are configurable.
- Internal and Swing Structure (BOS and CHoCH labels)
- Internal and Swing Order Blocks with ATR or Cumulative Mean Range filter
- Fair Value Gaps with automatic threshold detection
- Equal Highs and Equal Lows
- Strong and Weak swing highs and lows
- Premium, Equilibrium, and Discount zones
- Daily, Weekly, and Monthly levels
- Colored or Monochrome display modes
---
### Stop Loss
Each trade places the stop loss beyond the edge of the entry Order Block. A configurable pip buffer is added to avoid stop hunting. For Trigger C entries, the stop is placed at the extreme of the BOS candle.
---
### Take Profit
Take profit is set at the nearest opposing Order Block on the H4 timeframe (configurable). The EA scans forward on the H4 chart to find the nearest significant swing level ahead of price. For sell trades, a minimum Risk-to-Reward ratio filter ensures that only setups with an acceptable reward potential receive a fixed take profit. Trades that do not meet the R:R minimum are left with an open take profit, which is then assigned automatically when a qualifying H4 level becomes available.
---
### Trailing Stop
When enabled, the trailing engine monitors 10-minute Order Blocks and advances the stop loss as new higher (bull) or lower (bear) blocks form. The trailing reference timeframe is configurable.
---
### Breakeven
When price moves a configurable number of pips in profit, the stop loss is automatically moved to the exact entry price. This locks in a risk-free position before the trailing stop takes over.
---
### Pyramiding
The EA supports adding to a winning position when a new qualifying Order Block forms beyond the original entry zone. When a pyramid position is opened, the stop loss of all existing positions in the same direction is automatically synchronized to the stop loss of the newest order. Maximum positions per direction is configurable.
---
### Risk Management
All risk controls are configurable independently.
- **Position sizing:** Each trade risks a fixed percentage of account balance. The lot size is calculated using the formula: Margin = (Contract Size x Price x Lot) / Leverage, which ensures accurate sizing across all instruments and brokers.
- **Maximum margin per trade:** Caps the margin consumed by a single trade as a percentage of balance.
- **Daily loss limit:** Stops new entries when the account has lost a defined percentage of the opening balance for the day.
- **Maximum total loss limit:** Stops new entries when cumulative drawdown from session start exceeds a defined percentage.
- **Maximum daily losing trades:** Blocks all new entries after a configurable number of losing trades have been recorded in the current day. Resets at midnight.
- **Maximum spread:** Skips entries when the current spread exceeds the defined pip threshold.
---
### Choppy Market Filter
A three-layer filter prevents entries during ranging and directionless market conditions. Each layer operates independently — if any one of them detects choppy conditions, the entry is blocked.
- **Layer 1 — SMC Swing Structure:** Blocks entries when no confirmed swing trend structure exists. Uses data already computed by the indicator at zero additional cost.
- **Layer 2 — ADX:** Blocks entries when the Average Directional Index on a configurable timeframe falls below a defined threshold. Default: H1 / period 14 / threshold 20.
- **Layer 3 — Choppiness Index:** Blocks entries when the Choppiness Index on a configurable timeframe rises above a defined threshold. All timeframes and thresholds are user-configurable, allowing you to tune the filter to your instrument and trading session.
---
### Input Parameters
**Entry Settings**
| Parameter | Default | Description |
|---|---|---|
| Trigger A: 15min OB Retest | false | Enable Order Block retest entries |
| Trigger B: 15min OB Formation | true | Enable immediate entry on new OB |
| Trigger C: 15min Swing BOS | true | Enable entry on Break of Structure |
| Max OBs to Scan | 12 | Number of Order Blocks to check per tick |
| OB Touch Zone | 0.9 | Fraction of OB height defining the entry zone |
| Require Trend Alignment | true | Only enter in the direction of the swing trend |
**Risk**
| Parameter | Default | Description |
|---|---|---|
| Risk per trade | 1.0% | Percentage of balance risked per trade |
| Max margin per trade | 70.0% | Maximum margin consumed by one trade |
| Daily loss limit | 5.0% | Stop trading after this daily drawdown |
| Max total loss limit | 10.0% | Stop trading after this session drawdown |
| Max daily losing trades | 1 | Stop trading after N losses in one day |
| Breakeven pips | 0.0 | Move SL to entry after this many pips profit |
| Min R:R (sell side) | 12.0 | Minimum reward-to-risk ratio for sell TP |
| Max spread | 118.1 pips | Skip entry when spread exceeds this value |
| Magic number | 202401 | Unique identifier for this EA's trades |
**Chop Filter**
| Parameter | Default | Description |
|---|---|---|
| Enable chop filter | true | Master switch for all chop filter layers |
| Use SMC trend check | true | Block when no swing structure confirmed |
| ADX timeframe | 15min | Timeframe for ADX calculation |
| ADX period | 14 | Lookback period for ADX |
| ADX threshold | 20.0 | Block entries when ADX is below this |
| CI timeframe | 15min | Timeframe for Choppiness Index |
| CI period | 15 | Lookback period for CI |
| CI threshold | 52| Block entries when CI is above this |
**Stop Loss**
| Parameter | Default | Description |
|---|---|---|
| SL buffer | 1.3 pip | Distance added beyond the OB edge |
**Take Profit**
| Parameter | Default | Description |
|---|---|---|
| TP timeframe | H4 | Reference timeframe for TP scanning |
| OBs to scan | 26 | Number of H4 levels scanned for TP |
**Trailing**
| Parameter | Default | Description |
|---|---|---|
| Enable trailing | true | Enable 5-minute OB trailing stop |
| Trailing timeframe | M10 | Timeframe used for trailing OBs |
| Trail buffer | 0.65 pips | Buffer beyond trailing OB edge |
| M5 swing lookback | 23 | Lookback bars for M5 engine |
**Pyramiding**
| Parameter | Default | Description |
|---|---|---|
| Enable pyramiding | true | Enable adding to winning positions |
| Max positions per direction | 2 | Maximum open trades in one direction |
---
### Requirements
- Minimum deposit = $1,000
- Recommended deposit = $5,000+
- Attach to an M15 chart only - Works on XAUUSD
- Requires a live data connection for tick processing
- Tested on Exness and FundedNext; compatible with other brokers and prop firms
---
### Notes
- The EA manages its own indicator rendering. No separate indicator file is needed.
- All input parameters for the visual indicator are included and fully customizable. I recommend you to use the default input
- The EA uses the account's actual leverage and contract size for lot calculation. No manual broker adjustments are required.
---
---
```cpp
#property copyright "Johnny Ofori: oforijohnny66@gmail.com"
#property link "https://www.mql5.com/en/market/product/175914"
#property version "2.00"
#property description "Psyche 16 Gold EA with built-in indicator. Attach to M15 chart only."
#property description "Three entry triggers: OB Retest, OB Formation, Break of Structure."
#property description "Advanced Features for all market condition."
```

