改为自己的mt5api

This commit is contained in:
2026-07-11 02:42:55 +08:00
commit 0764a9a07f
48 changed files with 13282 additions and 0 deletions
+64
View File
@@ -0,0 +1,64 @@
# GENESIS — Apollo Strategy C Configuration
# MA Crossover Trend Following — runs alongside Hermes + Ares without interference
bridge:
url: "http://127.0.0.1:8000"
timeout_seconds: 15
mt5_api:
url: "MT5_BRIDGE_URL env var"
api_key: "MT5_BRIDGE_KEY env var"
telegram:
chat_id: "YOUR_TELEGRAM_CHAT_ID"
# Symbols Apollo watches (trend following works best on trending pairs)
symbols:
- "EURUSDxx"
- "GBPUSDxx"
- "USDJPYxx"
- "XAUUSDxx"
- "GBPJPYxx"
# MA Crossover parameters
indicators:
fast_ma_period: 9 # Fast MA — golden/death cross
slow_ma_period: 21 # Slow MA
ma_method: "EMA" # EMA or SMA
signal_timeframe: "M5" # M5 for entries
trend_timeframe: "H1" # H1 for trend direction filter
trend_ma_period: 50 # H1 SMA50 — only trade in trend direction
atr_period: 14 # ATR for dynamic SL
risk:
risk_pct: 0.01 # 1% risk per trade
min_rr_ratio: 1.5 # Minimum R:R
sl_atr_multiplier: 1.5 # SL = ATR × this value
tp_atr_multiplier: 3.0 # TP = ATR × this value
max_spread_pips: 1.5
block_news_minutes: 45 # Slightly less strict than Ares (trend can absorb news)
block_medium_news: false
strictness:
# Trend following is MORE patient — requires H1 trend alignment
require_trend_alignment: true # H1 MA must agree with signal direction
min_ma_separation_pct: 0.001 # MAs must be at least 0.1% apart to confirm crossover
min_adx: 20 # Minimum trend strength (lower than Ares — trend needs less extreme)
cooldown_seconds: 120 # 2min cooldown between signals (prevent whipsaw)
sessions:
# Trend following works best during high-liquidity sessions
allowed:
- {start: 7, end: 20} # London + NY
journal:
path: "/var/log/apollo/trade_journal.jsonl"
cache:
path: "/tmp/genesis_cache.json" # Shared with Hermes + Ares
strategy:
name: "Apollo"
version: "1.0"
comment: "APOLLO-v1" # Distinguishes from GENESIS-v2 and ARES-v1
magic_number: 20250515
+51
View File
@@ -0,0 +1,51 @@
# GENESIS — Strategy B (Ares) Configuration
# Controls ONLY Strategy B. Strategy A (Hermes) is completely untouched.
bridge:
url: "http://127.0.0.1:8000"
timeout_seconds: 15
mt5_api:
url: "MT5_BRIDGE_URL env var"
api_key: "MT5_BRIDGE_KEY env var"
telegram:
chat_id: "YOUR_TELEGRAM_CHAT_ID"
symbols:
- "EURUSDxx"
- "XAUUSDxx"
- "GBPUSDxx"
risk:
risk_pct: 0.01 # 1% risk per trade
max_simultaneous: 1 # Max 1 open position
min_rr_ratio: 1.5 # Minimum R:R
block_news_minutes: 60 # Block X minutes before high-impact events
block_medium_news: true # Also block medium-impact
# BB+RSI EA pip settings (mirrors MQL5 EA inputs)
sl_pips: 20
tp_pips: 40
strictness:
min_confluence_count: 3 # N conditions must align before signalling
required_timeframes: ["H1", "H4"] # All must agree on direction
min_adx: 22
rsi_oversold: 30
rsi_overbought: 70
sessions:
allowed:
- {start: 7, end: 21} # London + NY UTC hours
journal:
path: "/var/log/ares/trade_journal.jsonl"
cache:
path: "/tmp/genesis_cache.json" # Shared with Hermes — zero extra API calls
strategy:
name: "Ares"
version: "1.0"
comment: "ARES-v1" # MT5 order comment — distinguishes from GENESIS-v2
+75
View File
@@ -0,0 +1,75 @@
# GENESIS — Artemis Strategy E Configuration
# Ichimoku Kumo Breakout — H1 timeframe, high-quality low-frequency signals
# Complements: Ares (BB+RSI M1), Apollo (MA Cross M5), Athena (BB+RSI M5)
bridge:
url: "http://127.0.0.1:8000"
timeout_seconds: 15
mt5_api:
url: "MT5_BRIDGE_URL env var"
api_key: "MT5_BRIDGE_KEY env var"
telegram:
chat_id: "YOUR_TELEGRAM_CHAT_ID"
symbols:
- "EURUSDxx"
- "GBPJPYxx" # Ichimoku originated in Japan — JPY pairs are ideal
- "GBPUSDxx"
- "USDJPYxx"
- "XAUUSDxx"
ichimoku:
tenkan_period: 9 # Conversion Line — short-term trend
kijun_period: 26 # Base Line — medium-term trend / SL reference
senkou_b_period: 52 # Slow cloud boundary
displacement: 26 # Kumo is plotted 26 bars AHEAD of price
# Signal quality gates
require_cloud_color_alignment: true # Buy only if future cloud is green (SpanA > SpanB)
confirmation_bars: 1 # Must close outside Kumo for N full bars
require_chikou_confirmation: true # Chikou Span must be above/below price
require_price_above_kijun: true # Price above Kijun for buys, below for sells
confirmation:
use_rsi: true
rsi_period: 14
rsi_buy_threshold: 50 # RSI > 50 for buys
rsi_sell_threshold: 50 # RSI < 50 for sells
use_awesome_oscillator: false # AO is optional — disabled by default (RSI is enough)
ao_fast: 5
ao_slow: 34
risk:
risk_pct: 0.0075 # 0.75% per trade — higher quality signal justifies larger size
min_rr_ratio: 2.0 # H1 signals justify higher R:R requirement
sl_kijun_buffer: 0.0002 # SL placed just below/above Kijun-sen + buffer
use_kumo_sl: true # Alternative: SL at near edge of Kumo
tp_multiplier: 2.5 # TP = SL distance × 2.5
max_spread_pips: 2.0 # H1 allows wider spread tolerance
block_news_minutes: 60
block_medium_news: false
strictness:
cooldown_seconds: 300 # 5 min cooldown — H1 signals are rare, no need to spam
signal_timeframe: "H1"
trend_timeframe: "D1" # Daily trend context (optional double-check)
sessions:
# Ichimoku works best during liquid sessions
allowed:
- {start: 7, end: 21}
journal:
path: "/var/log/artemis/trade_journal.jsonl"
cache:
path: "/tmp/genesis_cache.json"
strategy:
name: "Artemis"
version: "1.0"
comment: "ARTEMIS-v1" # Unique tag — 5th strategy
magic_number: 20250517
+68
View File
@@ -0,0 +1,68 @@
# GENESIS — Athena Strategy D Configuration
# BB+RSI Mean Reversion on M5 — faster signals than Ares (M1 strict)
# Complements: Ares (M1 strict), Apollo (MA Trend), Hermes (free AI)
bridge:
url: "http://127.0.0.1:8000"
timeout_seconds: 15
mt5_api:
url: "MT5_BRIDGE_URL env var"
api_key: "MT5_BRIDGE_KEY env var"
telegram:
chat_id: "YOUR_TELEGRAM_CHAT_ID"
symbols:
- "EURUSDxx"
- "GBPUSDxx"
- "XAUUSDxx"
- "USDJPYxx"
- "GBPJPYxx"
indicators:
bb_period: 20
bb_deviation: 2.0
bb_ma_method: "SMA"
rsi_period: 14
rsi_oversold: 30
rsi_overbought: 70
signal_timeframe: "M5" # M5 — faster than Ares (M1), captures intraday moves
trend_timeframe: "H4" # H4 context filter — broader than Ares (M15)
trend_ma_period: 50
atr_period: 14
volume_ma_period: 20 # Volume confirmation (OBV direction)
risk:
risk_pct: 0.005 # 0.5% — half of Ares/Apollo (more signals, smaller size)
min_rr_ratio: 1.5
sl_atr_multiplier: 1.2 # Tighter SL than Ares (M5 ATR is smaller)
tp_atr_multiplier: 2.5 # TP slightly lower (M5 moves less than M1 extremes)
max_spread_pips: 1.5
block_news_minutes: 30 # Less strict than Ares (M5 recovers faster)
block_medium_news: false
strictness:
# Athena is SIMPLER than Ares — only 2 hard conditions (BB + RSI)
# ADX is a soft bonus, not a gate — allows trading in quieter markets too
require_band_close: true # Candle must CLOSE outside BB (not just wick)
soft_adx_bonus: true # ADX > 18 adds confidence but doesn't block
require_h4_context: true # H4 SMA50 must agree with direction
cooldown_seconds: 90 # 90s between signals per symbol
max_signals_per_hour: 4 # Rate limit — prevents overtrading on choppy M5
sessions:
allowed:
- {start: 6, end: 20} # Slightly wider than Ares
journal:
path: "/var/log/athena/trade_journal.jsonl"
cache:
path: "/tmp/genesis_cache.json"
strategy:
name: "Athena"
version: "1.0"
comment: "ATHENA-v1" # Unique tag — distinguishes from GENESIS-v2, ARES-v1, APOLLO-v1
magic_number: 20250516
+51
View File
@@ -0,0 +1,51 @@
# GENESIS — Hephaestus Strategy F Configuration
# Grid + Martingale — EXTREME RISK — circuit breakers MANDATORY
# confirm_risk_acknowledged MUST be true before strategy runs
strategy:
name: "Hephaestus"
version: "1.0"
comment: "HEPH-v1"
magic_number: 20250518
confirm_risk_acknowledged: true # SET TO true ONLY AFTER READING WARNING
bridge:
url: "http://127.0.0.1:8000"
timeout_seconds: 15
mt5_api:
url: "MT5_BRIDGE_URL env var"
api_key: "MT5_BRIDGE_KEY env var"
telegram:
chat_id: "YOUR_TELEGRAM_CHAT_ID"
symbol: "EURUSDxx" # Single pair only — never multi-pair for grid
direction: "both" # "buy_only", "sell_only", "both"
grid:
initial_lot: 0.01 # START TINY — martingale compounds fast
martingale_multiplier: 1.5 # 1.5x safer than 2x. 2x will blow account in 6 levels
max_lot_per_order: 0.20 # Hard cap — never exceeded regardless of martingale
grid_spacing_pips: 20 # Distance between grid levels
max_grid_levels: 4 # HARD LIMIT — level 4 = 0.01 × 1.5³ = 0.034 lot
take_profit_pips: 15 # TP per individual trade
basket_tp_pips: 25 # Close all if total basket profit ≥ this
circuit_breakers:
max_equity_drawdown_pct: 8.0 # Kill all if equity drops 8% from peak
max_daily_loss_pct: 4.0 # Stop for day if daily loss ≥ 4%
max_consecutive_losses: 4 # Reset grid after 4 consecutive losing levels
cooldown_after_reset_sec: 600 # 10 min cooldown before restarting grid
max_spread_pips: 1.5 # No new levels if spread too wide
max_total_lots: 0.5 # Total exposure cap across all grid levels
sessions:
allowed:
- {start: 7, end: 20} # Only trade during liquid hours
journal:
path: "/var/log/hephaestus/trade_journal.jsonl"
cache:
path: "/tmp/genesis_cache.json"
+92
View File
@@ -0,0 +1,92 @@
# GENESIS — Zeus Strategy G Configuration
# ICT Smart Money: Liquidity Sweep + FVG + Order Block on M5
# Three-layer sequential confirmation: Sweep → FVG → OB
bridge:
url: "http://127.0.0.1:8000"
timeout_seconds: 15
mt5_api:
url: "MT5_BRIDGE_URL env var"
api_key: "MT5_BRIDGE_KEY env var"
telegram:
chat_id: "YOUR_TELEGRAM_CHAT_ID"
symbols:
- "EURUSDxx"
- "GBPUSDxx"
- "GBPJPYxx"
- "XAUUSDxx"
ict:
entry_timeframe: "M5" # Entry signals
context_timeframe: "M15" # Structure analysis
liquidity:
swing_lookback: 5 # Bars each side for pivot detection
sweep_tolerance: 0.0003 # Price must exceed level by this to count
require_rejection: true # Close must return inside structure (rejection wick)
session_highs_lows: true # Also detect previous session H/L sweeps
fvg:
min_gap_pips: 1.5 # Minimum FVG size to count
max_age_bars: 10 # Ignore FVGs older than N bars
require_unmitigated: true # FVG must not have been filled yet
order_block:
max_age_bars: 15 # Stale OBs ignored
min_body_ratio: 0.35 # Candle body must be ≥35% of full range
max_wick_ratio: 0.40 # Total wick ≤40% of full range
structure:
swing_lookback: 5
bos_bars: 2 # Bars to confirm structure break
confluence:
min_score: 65 # 0-100 — minimum to generate signal
max_daily_trades: 2 # ICT is low frequency — 5-15 signals/month
allow_third_if_score_ge: 90
killzone:
enabled: true
london: {start: 8, end: 11} # GMT hours
ny: {start: 13, end: 16}
scoring:
bos_strength: 20
sweep_quality: 15
fvg_presence: 15
ob_quality: 20
killzone: 10
mtf_confluence: 10
ob_freshness: 10
risk:
risk_pct: 0.0075 # 0.75% per trade
min_rr: 2.0
sl_ob_buffer: 0.0002 # SL placed just below/above OB + buffer
tp_multiplier: 2.5
max_spread_pips: 2.0
cooldown_seconds: 120
circuit_breakers:
max_equity_drawdown_pct: 15.0
max_daily_loss_pct: 6.0
max_consecutive_losses: 4
sessions:
allowed:
- {start: 7, end: 21}
journal:
path: "/var/log/zeus/trade_journal.jsonl"
cache:
path: "/tmp/genesis_cache.json"
strategy:
name: "Zeus"
version: "1.0"
comment: "ZEUS-v1"
magic_number: 20250519