Техническое задание
Step-by-Step Explanation of the Complete Trading EA
PHASE 1: INITIALIZATION
Step 1 - EA Startup
text
When EA is attached to chart:
1. Check if it's a new trading day (after 00:00 server time)
2. Reset daily profit counter to $0
3. Record initial account balance for drawdown calculation
4. Initialize Fibonacci sequence: [0.01, 0.02, 0.03, 0.05, 0.08, 0.13, 0.21...]
5. Set current state to "STEP_A_START"
Step 2 - Place Initial Orders
text
Current Price: 2400.00 (example)
1. Calculate BUY_STOP price = Ask + 0.400 = 2400.400
2. Calculate SELL_STOP price = Bid - 0.400 = 2399.600
3. Place BUY_STOP order: 0.01 lot @ 2400.400
4. Place SELL_STOP order: 0.01 lot @ 2399.600
5. Store "initial_price" = 2400.000
PHASE 2: ORDER TRIGGER & STEP PROGRESSION
Step 3 - First Trigger (BUY_STOP hits)
text
Price rises to 2400.400:
1. BUY_STOP triggers → Open BUY position: 0.01 lot @ 2400.400
2. Cancel pending SELL_STOP order at 2399.600
3. Place new SELL_STOP: 0.02 lot @ 2399.600
4. State changes to "STEP_A_ACTIVE"
5. Record: first_buy_entry = 2400.400
Step 4 - Step B Activation
text
Price falls to 2399.600:
1. SELL_STOP (0.02 lot) triggers → Open SELL position: 0.02 lot @ 2399.600
2. Place new SELL_STOP: 0.03 lot @ 2401.200
Calculation: first_buy_entry (2400.400) + 0.800 = 2401.200
3. Close first BUY (0.01 lot) at market price (2401.200)
4. State changes to "STEP_B_ACTIVE"
5. Fibonacci index advances to next level
Step 5 - Step C Activation
text
Price rises to 2401.200:
1. SELL_STOP (0.03 lot) triggers → Open SELL: 0.03 lot @ 2401.200
2. Place new SELL_STOP: 0.05 lot @ 2402.000
Calculation: last SELL entry (2401.200) + 0.800 = 2402.000
3. Place opposite BUY_STOP: 0.01 lot @ 2402.000
4. State changes to "STEP_C_ACTIVE"
Step 6 - Step D Activation
text
Price rises to 2402.000:
1. SELL_STOP (0.05 lot) triggers → Open SELL: 0.05 lot @ 2402.000
2. Place new SELL_STOP: 0.08 lot @ 2402.800
Calculation: last SELL entry (2402.000) + 0.800 = 2402.800
3. Place opposite BUY_STOP: 0.02 lot @ 2402.800
4. Close previous BUY (0.01 lot) at market price
5. State changes to "STEP_D_ACTIVE"
Step 7 - Step E Activation
text
Price rises to 2402.800:
1. SELL_STOP (0.08 lot) triggers → Open SELL: 0.08 lot @ 2402.800
2. Place new SELL_STOP: 0.13 lot @ 2403.600
Calculation: last SELL entry (2402.800) + 0.800 = 2403.600
3. Place opposite BUY_STOP: 0.03 lot @ 2403.600
4. Close previous BUY (0.02 lot) at market price
5. State changes to "STEP_E_ACTIVE"
Step 8 - Continue Pattern
text
This continues following Fibonacci sequence:
Step F: SELL 0.13 lot, BUY 0.05 lot, close BUY 0.03 lot
Step G: SELL 0.21 lot, BUY 0.08 lot, close BUY 0.05 lot
Step H: SELL 0.34 lot, BUY 0.13 lot, close BUY 0.08 lot
... and so on
PHASE 3: EXIT CONDITIONS
Step 9 - Continuous Monitoring (Every Tick)
A. Calculate Current Metrics:
text
1. Total open lots = Sum of all SELL lots + Sum of all BUY lots
2. Net position = SELL lots - BUY lots (could be negative if BUY > SELL)
3. Current equity profit = Total unrealized P/L in dollars
4. Daily profit = Sum of all closed trade profits today
5. Drawdown % = ((Balance - Equity) / Balance) × 100
B. Check Exit Conditions (in priority order):
Condition 1: Emergency Stop (Highest Priority)
text
If ANY open position reaches MaxLotSize (67.65 lots):
1. Immediately close ALL trades
2. Delete ALL pending orders
3. Send alert: "EMERGENCY STOP - Max lot size reached"
4. Stop EA completely (requires manual restart)
Condition 2: Daily Profit Target
text
If DailyProfit >= $50.00:
1. Close ALL open trades
2. Delete ALL pending orders
3. Send alert: "Daily target reached: $50.00"
4. Stop trading until next day (00:00 server time)
Condition 3: Maximum Drawdown
text
If DrawdownPercent >= 30%:
1. Close ALL open trades
2. Delete ALL pending orders
3. Send alert: "Max drawdown reached: 30%"
4. Stop EA completely (requires manual restart)
Condition 4: Dynamic Profit Target with Trailing
text
Check based on Total Lots:
Case A: Small Positions (0.01 - 0.10 lots)
1. If equity profit >= $0.20:
- Start trailing stop
- Close ALL opposite direction (losing) trades immediately
- Keep profitable trades open
- Trail: If profit drops $0.10 from peak → Close ALL remaining trades
- Restart cycle from Step 1
Case B: Medium Positions (0.10 - 0.30 lots)
1. If equity profit >= $3.00:
- Start trailing stop
- Close ALL opposite direction trades
- Trail: If profit drops $0.50 from peak → Close ALL
- Restart cycle
Case C: Large Positions (> 0.30 lots)
1. If equity profit >= $5.00:
- Start trailing stop
- Close ALL opposite direction trades
- Trail: If profit drops $1.00 from peak → Close ALL
- Restart cycle
C. Determine "Opposite Direction" for Trailing:
text
Example: If net position is SELL (more sell volume than buy):
- SELL trades are "main direction" (likely profitable if price rose)
- BUY trades are "opposite direction" (likely losing if price rose)
- Close ALL BUY trades first when trailing activates
PHASE 4: CYCLE RESTART
Step 10 - After Any Exit Condition Triggers
text
1. Close ALL open positions (market order)
2. Delete ALL pending orders
3. Reset Fibonacci index to beginning
4. Reset state to "STEP_A_START"
5. Wait for next tick
6. Place new initial orders:
BUY_STOP = Ask + 0.400
SELL_STOP = Bid - 0.400
7. Begin new cycle
PHASE 5: SAFETY & MONITORING
Step 11 - Continuous Safety Checks
text
Every tick, check:
1. Margin requirements: Can we place next Fibonacci lot?
2. Server connection: Are we connected?
3. Trade context: Is trading allowed?
4. Price validity: Are prices normal?
5. Order limits: Not exceeding broker's max orders
Step 12 - Logging & Reporting
text
1. Log every trade with: Time, Type, Lot, Price, Profit
2. Log every state change
3. Log every exit condition trigger
4. Daily summary at 23:59
5. Drawdown warnings at 20%, 25%, 29%
VISUAL FLOWCHART:
text
[START]
↓
[Place Initial Orders]
↓
[Wait for Trigger] → [Monitor Exit Conditions]
↓
[Order Triggers] → [Check Daily Profit] → If ≥$50 → Close All & Stop
↓
[Advance Fibonacci Step] → [Check Drawdown] → If ≥30% → Close All & Stop
↓
[Place Next Orders] → [Check Equity Profit] → If in bracket → Start Trailing
↓
[Close Opposite Trades (TP)] → [Trail Profitable Trades]
↓
[Return to Wait] → [If trail broken] → Close All & Restart
KEY POINTS TO REMEMBER:
No Stop Losses - Only profit targets and risk limits
Hedged System - Always has both BUY and SELL positions
Fibonacci Growth - Lots increase rapidly (0.01 → 0.02 → 0.03 → 0.05...)
Grid Spacing - Always 0.800 between same-direction entries
Opposite Trade Close - BUY trades close one step after entry
Multiple Exit Paths - 4 different ways to exit (emergency, daily, drawdown, profit)
Automatic Restart - After most exits, system restarts fresh
Откликнулись
1
Оценка
Проекты
556
41%
Арбитраж
30
57%
/
3%
Просрочено
57
10%
Свободен
Опубликовал: 11 примеров
2
Оценка
Проекты
27
41%
Арбитраж
3
33%
/
67%
Просрочено
3
11%
Свободен
3
Оценка
Проекты
21
19%
Арбитраж
5
40%
/
40%
Просрочено
0
Свободен
4
Оценка
Проекты
64
20%
Арбитраж
11
27%
/
55%
Просрочено
5
8%
Свободен
5
Оценка
Проекты
289
35%
Арбитраж
18
22%
/
61%
Просрочено
43
15%
Свободен
6
Оценка
Проекты
199
47%
Арбитраж
4
50%
/
25%
Просрочено
1
1%
Работает
7
Оценка
Проекты
978
74%
Арбитраж
27
19%
/
67%
Просрочено
100
10%
Свободен
Опубликовал: 1 статью, 6 примеров
8
Оценка
Проекты
26
38%
Арбитраж
6
33%
/
50%
Просрочено
0
Свободен
9
Оценка
Проекты
1
100%
Арбитраж
0
Просрочено
0
Свободен
10
Оценка
Проекты
0
0%
Арбитраж
0
Просрочено
0
Свободен
11
Оценка
Проекты
29
3%
Арбитраж
4
0%
/
100%
Просрочено
5
17%
Свободен
12
Оценка
Проекты
8
0%
Арбитраж
2
50%
/
0%
Просрочено
1
13%
Работает
13
Оценка
Проекты
3
0%
Арбитраж
0
Просрочено
0
Свободен
14
Оценка
Проекты
0
0%
Арбитраж
5
0%
/
80%
Просрочено
0
Свободен
15
Оценка
Проекты
35
40%
Арбитраж
0
Просрочено
3
9%
Свободен
16
Оценка
Проекты
0
0%
Арбитраж
0
Просрочено
0
Свободен
17
Оценка
Проекты
478
40%
Арбитраж
105
40%
/
24%
Просрочено
82
17%
Загружен
Опубликовал: 2 примера
18
Оценка
Проекты
20
0%
Арбитраж
10
0%
/
80%
Просрочено
6
30%
Свободен
19
Оценка
Проекты
247
74%
Арбитраж
7
100%
/
0%
Просрочено
1
0%
Свободен
Опубликовал: 2 статьи, 1 пример
20
Оценка
Проекты
4
100%
Арбитраж
0
Просрочено
0
Свободен
21
Оценка
Проекты
0
0%
Арбитраж
0
Просрочено
0
Свободен
22
Оценка
Проекты
0
0%
Арбитраж
0
Просрочено
0
Свободен
23
Оценка
Проекты
0
0%
Арбитраж
1
0%
/
100%
Просрочено
0
Свободен
24
Оценка
Проекты
553
50%
Арбитраж
57
40%
/
37%
Просрочено
227
41%
Работает
25
Оценка
Проекты
416
30%
Арбитраж
74
19%
/
72%
Просрочено
52
13%
Работает
26
Оценка
Проекты
14
43%
Арбитраж
0
Просрочено
3
21%
Свободен
27
Оценка
Проекты
4
25%
Арбитраж
2
0%
/
100%
Просрочено
0
Свободен
28
Оценка
Проекты
0
0%
Арбитраж
0
Просрочено
0
Свободен
Похожие заказы
I am looking for a highly skilled trading strategist and MQL5 developer with genuine experience in researching, designing, testing, and implementing systematic trading strategies. My primary interest is XAUUSD (Gold), although proven experience with other financial markets is also welcome. I am not looking for someone who simply converts trading rules into code. I want to identify a professional who understands
Trading
35+ USD
Project: XAUUSD Gold Trading Robot for MetaTrader 5 I want to develop a fully automated Expert Advisor (EA) for MetaTrader 5, designed exclusively for Gold (XAUUSD) and compatible with the Exness broker. Trading Strategy: Liquidity + CHOCH + Retest Identify important buy-side and sell-side liquidity zones using previous highs and lows, equal highs/lows, and confirmed swing points. Wait for a clear liquidity sweep
i want to fix my gold martingale bot MT5. RSI 14 ENTRY 30 BUY 70 SELL Lot 0.02 0.04 0.07 TP 150 for all SL 90 30 30 once total daily profit is 200$ stop trading stop trading once 2 consecutives total losses stop trading if spread exceeded 30 and between hour 15 & 17 PM Move SL to breakeven point once the profit exceeded 50 from from breakeven thanks
MarketMind Breakout Pro XAUUSD H1 — Donchian Breakout EA Project type: Personal EA development and backtesting Platform: MetaTrader 5 Instrument: XAUUSD Timeframe: H1 Strategy: Donchian Channel breakout with EMA 200 Project overview This project evaluates a Donchian breakout trading strategy for XAUUSD on the H1 timeframe. The system uses channel-based breakout conditions and an EMA 200 trend filter. Historical
Title: Fully Automatic MT5 Trading Bot (Expert Advisor) with Risk Management I want a fully automated trading robot (Expert Advisor) for MetaTrader 5, written in MQL5. The bot must automatically analyse market data, identify trading opportunities, execute BUY and SELL orders, manage open positions, and close trades according to predefined rules without requiring manual confirmation for each trade. Requirements
MT4 expert advisor
500+ USD
I have three indicators that operate independently. I want to combine them into one indicator with custom expert programming that automatically enters trades when a signal is generated by one of the indicators. I will pay for this service Thanks you
Existing EA: NEW_CORE_ORB_M5_v021 | MT5 | XAUUSD M5 Early-stage research prototype, not a new EA from scratch. Need an experienced MQL5 developer to audit, complete, repair, improve and test BOTH independent strategies equally: Opening Range Breakout (ORB) and Scalp. Keep code lightweight and preserve an untouched baseline. No unnecessary rewrite or complex filters. 1. ORB Strategy Verify opening-range construction
Hello International Developer, I need LIFETIME MT5 EA for XAUUSD Gold. REQUIREMENTS: 1. Lifetime bot - No expiry date, unlimited accounts, unlimited installations 2. Must include source code .mq5 file - This makes it lifetime 3. Every trade MUST have Stop Loss 300 points and Take Profit 600 points 4. No martingale, No grid, No averaging - Clean safe strategy 5. Auto lot size = 1% risk per trade for good margin growth
Expert advisor
150+ USD
Hiring: Forex Strategist & MQL5 Developer for Long-Term EA Development I am looking for an experienced Forex Strategist and MT5 (MQL5) Developer to work with me on an ongoing project to develop, test, improve, and optimize a profitable Forex Expert Advisor (EA). My Message to the Developer My budget is $150 . However, this is not intended to be a one-time payment for a finished product. I want an ongoing working
Hello developers,I am looking for an experienced MQL5 developer to create an EA based on Moving Average retest strategy with advanced recovery system.The concept is simple: Entry is based on MA close and retest. Initial trade has small TP and no SL.If price goes against the initial position, the EA should manage it using:Opposite hedge tradePending limit grid systemBasket take profitMartingale lot multiplier after
Информация о проекте
Бюджет
30 - 50 USD
Сроки выполнения
от 1 до 5 дн.