Jasmine
- Experts
- 버전: 1.0
# JasmineEA Release 1.0
## Overview
JasmineEA Release 1.0 is a multi-strategy portfolio EA designed for gold (XAUUSD). It runs 15 independent sub-strategies across M15, M30 and H1 timeframes. Each sub-strategy can hold at most one position, and the portfolio can be limited to a maximum number of concurrent legs.
The release build uses English external inputs and supports hedging/netting accounts, automatic symbol-suffix matching, independent leg switches, per-leg risk weights, cost filtering and custom order comments.
## Execution Logic
- Each leg evaluates signals only when a new bar appears on its own timeframe.
- Signals are calculated on the last closed bar to avoid repainting.
- Entry is executed at market on the first tick of the next bar.
- SL and TP are attached at entry; positions exit only by SL/TP.
- No trailing stop, time-based exit, opposite-signal exit, averaging, grid or martingale.
- Each leg uses its own magic number and can hold at most one position.
- `InpMaxOpenLegs` limits the total number of concurrent legs (default: 7).
- On netting accounts, the EA falls back to a single-position mode to avoid volume and margin conflicts.
## The 15 Sub-Strategies
SL/TP values are multiples of ATR14, not fixed point distances.
Weight is the default risk weight; effective risk = risk level × weight.
| Leg | TF | Family | Parameters | Long Logic | Short Logic | SL/TP | Weight |
|---:|---|---:|---|---|---|---:|---:|
| 0 | M30 | 39 | 19 / 22.0046 / 15 | SMA19 > SMA22 > SMA15 | SMA19 < SMA22 < SMA15 | 0.25 / 4.0 | 0.94 |
| 1 | M30 | 39 | 19 / 22.1114 / 14 | SMA19 > SMA22 > SMA14 | SMA19 < SMA22 < SMA14 | 0.25 / 5.0 | 1.00 |
| 2 | M30 | 31 | 8 / 3 / 14 | Donchian8 width > 3×ATR14 and close breaks above upper band | Same width filter and close breaks below lower band | 2.0 / 2.0 | 1.60 |
| 3 | M15 | 25 | 120 / 2.5 / 40 | Z-score120 > 2.5 | Z-score120 < -2.5 | 0.5 / 3.0 | 1.00 |
| 4 | M15 | 25 | 134 / 2.5 / 28 | Z-score134 > 2.5 | Z-score134 < -2.5 | 0.5 / 1.5 | 1.00 |
| 5 | M30 | 31 | 10 / 3 / 50 | Donchian10 width > 3×ATR50 and close breaks above upper band | Same width filter and close breaks below lower band | 2.0 / 3.0 | 1.41 |
| 6 | M30 | 37 | 9 / 3.15 / 12 | EMA9 > EMA3 > EMA12 | EMA9 < EMA3 < EMA12 | 1.25 / 4.0 | 1.34 |
| 7 | M15 | 7 | 16 / 250 / 1 | CCI16 < -250 | CCI16 > 250 | 0.75 / 2.0 | 1.25 |
| 8 | H1 | 9 | 120 / 0.002 / 5 | 120-bar ROC > 0.2% | 120-bar ROC < -0.2% | 0.75 / 1.5 | 0.50 |
| 9 | M15 | 34 | 34 / 0.75 / 50 | Close < Donchian34 lower band - 0.75×ATR50 | Close > Donchian34 upper band + 0.75×ATR50 | 0.75 / 3.0 | 1.27 |
| 10 | M15 | 12 | 200 / 3 / 10 | Close breaks above Bollinger Bands 200 upper band (3σ) | Close breaks below lower band | 3.0 / 0.5 | 0.60 |
| 11 | M30 | 12 | 72 / 2.5 / 7 | Close breaks above Bollinger Bands 72 upper band (2.5σ) | Close breaks below lower band | 3.0 / 0.5 | 0.60 |
| 12 | M30 | 31 | 89 / 4 / 7 | Donchian89 width > 4×ATR7 and close breaks above upper band | Same width filter and close breaks below lower band | 3.0 / 0.5 | 0.60 |
| 13 | H1 | 46 | 72 / 0.75 / 7 | CMF72 > 0.075 | CMF72 < -0.075 | 3.0 / 0.5 | 0.60 |
| 14 | H1 | 39 | 72 / 120 / 5 | SMA72 > SMA120 > SMA5 | SMA72 < SMA120 < SMA5 | 3.0 / 0.5 | 0.42 |
Notes:
- Period parameters are truncated to integers, e.g. `22.0046 → 22`, `3.15 → 3`.
- `p3` is not used by any of the current 15 legs; `p0/p1/p2` are used as shown above.
- Legs 0/1 use small SL and large TP; legs 10–14 use large SL and small TP to improve win rate and portfolio stability.
- Every leg can be enabled/disabled independently, and every leg has its own risk weight.
## External Parameters
| Parameter | Default | Description |
|---|---|---|
| `InpSymbolBase` | empty | Empty = current chart symbol; set `XAUUSD` for gold-only trading |
| `InpRiskLevel` | 1.0% | 12 risk levels: 0.1%–3.0% |
| `InpLotMode` | Risk % | Risk percentage / fixed lot |
| `InpFixedLot` | 0.01 | Used in fixed-lot mode |
| `InpMinAtrSpread` | 3.0 | Cost gate: minimum ATR14/spread ratio |
| `InpUseCostGate` | true | Enable cost gate |
| `InpMaxOpenLegs` | 7 | Maximum concurrent legs; 0 = unlimited |
| `InpBoosterCount` | 5 | Number of booster legs (0–5) |
| `InpLegWeights` | r01_04 | Risk weights for the 15 legs |
| `InpDDStopPct` | 0.0 | Equity drawdown pause percentage; 0 = off |
| `InpMagic` | 20261115 | Base magic number; each leg adds its index |
| `InpOrderComment` | Jasmine | Order comment, max 31 characters |
| `InpFillMode` | AUTO | AUTO / FOK / IOC / RETURN / BOC |
| `InpLeg0`–`InpLeg14` | true | Independent switches for the 15 legs |
## Safety Filters
The EA skips new entries when:
- Free margin is insufficient.
- The market is closed or outside the trading session.
- The calculated lot is below the minimum volume.
- The order would exceed the symbol volume limit.
- SL/TP distance is below the minimum stop distance.
- The leg already has a position (hedging) or the symbol already has a position (netting).
## Recommended Usage
- Recommended account: start with a 10,000 cent account.
- Recommended symbol: XAUUSD / XAUUSDc / XAUUSDm.
- Recommended chart: M15.
- Fully backtest and validate on a demo account before live use.
- Start live trading with low risk: 0.1%–0.3%, then increase gradually only after stable results.
- Use a low-spread, low-commission account.
- For gold-only live trading, set `InpSymbolBase` to `XAUUSD`.
## Risk Disclosure
Past performance does not guarantee future results and is not a promise of profit. Leverage, risk level, slippage, spread, commission, liquidity and volume limits can significantly affect live results. Always test on a demo account first and control risk.
