Gold (XAUUSD) M1 MSS Strategy (Funded Account)

MQL5 Experts

Specification

📌 General

🔸 Pair: XAUUSD (Gold)
🔸 Timeframe: M1 only
🔸 Strategy: Funded account
❌ No over-trading

📊 Trade Frequency Rules

🔹 One win OR one loss per day only
🔹 If trade goes Break-Even, another trades allowed same day
🔹 If trade hits TP or SL, trading must stop for that day
🔹 Only one active trade at a time

💰 Risk & Reward

🔹 Risk per trade: 1%
🔹 Risk–Reward (RR): 1:3
🔹 Break-Even rule:
At 1:1 RR
SL must move to 1:0.25
🔹 All risk parameters must be adjustable

💧 LIQUIDITY SWEEP RULES – UPDATED & FINAL (EA READY)

1️⃣ Candle Scope

•Consider only closed candles

•Lookback range = last 50 candles

•Ignore the current running candle

2️⃣ HIGH / LOW Definition (WITH OPPOSITE CONFIRMATION INCLUDED)

🔺 HIGH

A candle is a VALID HIGH if:

•On the LEFT side of the candle:

  °Minimum 2 candles must       exist
  °More than 2 candles is allowed

•On the RIGHT side of the candle:

°Minimum 2 candles must exist
°More than 2 candles is allowed

•The High of all left-side candles is lower than the middle candle high

•The High of all right-side candles is lower than the middle candle high

✅ Important (UPDATED):

•The RIGHT-side candles are ALSO used as the opposite candles

•No separate opposite-candle search is required

🔻 LOW

A candle is a VALID LOW if:

•On the LEFT side of the candle:

°Minimum 2 candles must exist
°More than 2 candles is allowed

•On the RIGHT side of the candle:

°Minimum 2 candles must exist
°More than 2 candles is allowed

•The Low of all left-side candles is higher than the middle candle low

•The Low of all right-side candles is higher than the middle candle low

✅ Important (UPDATED):

•The RIGHT-side candles are ALSO used as the opposite candles

•No separate opposite-candle calculation

3️⃣ Opposite Candle Body
Condition (APPLIED TO RIGHT SIDE)

•The RIGHT-side candles must be:

°In the opposite direction of   the High / Low

  »High → bearish candles
  »Low → bullish candles

°Each candle must have:

   »Body ≥ 30% of its total   candle

•Gap between candles is allowed

•All candles must be within last 50 candles

4️⃣ Single & Multiple High / Low

•Single High / Low → valid

•Multiple Highs / Lows → valid

•Highs or lows formed in the same area:

  °Treat as one liquidity zone

5️⃣ Sweep Rule (ONLY AFTER CONFIRMED HIGH / LOW)

A sweep is valid only after the High / Low is confirmed using the rules above.

Sweep is valid if:

•Price breaks above the High or below the Low

•Wick sweep OR full candle
close break → both valid

•Wick size, body size, pip distance do not matter

6️⃣ Time Validity Rule

•High / Low candle → within last 50 candles

•Right-side (opposite) candles → within last 50 candles

•Sweep candle → within last 50 candles

•If any part is older than 50 candles → ❌ INVALID

7️⃣ Final Validity Condition

A liquidity sweep is VALID only if:

•A valid High or Low is formed

•The right-side candles:

  »Confirm structure

  »Act as opposite candles
   
  »Have ≥30% body

•A sweep happens after this structure

•Everything occurs within last 50 candles

📐 MSS VALIDATION RULES (EA-READY)

1️⃣ Pre-Condition

•A liquidity sweep MUST have occurred first

•MSS without a sweep → INVALID

2️⃣ Identify the “Last Opposite-Direction Candle”

•If price sweeps above a High → identify the last BEARISH candle before the sweep

•If price sweeps below a Low → identify the last BULLISH candle before the sweep

3️⃣ MSS Break Level

•Bullish MSS → the HIGH of the last bullish candle

•Bearish MSS → the LOW of the last bearish candle

4️⃣ Break Condition (Core Rule)

MSS is VALID ONLY IF:

•The price BREAKS the level of the last opposite-direction candle

•The breaking candle CLOSES beyond that level

5️⃣ Opposite-Candle Restriction

From the sweep until the break is completed:

•❌ NO opposite-direction candles are allowed

•If any opposite-direction candle appears → MSS INVALID

6️⃣ Wick-Only Rule

•If the level is broken only by a wick

•And the candle does NOT close beyond the level → MSS INVALID

7️⃣ Single Attempt Rule

•One MSS attempt per sweep only

•Once validated or invalidated → no re-checking

✅ FINAL VALIDATION LOGIC

MSS is VALID ONLY WHEN ALL are TRUE:

•Liquidity sweep confirmed

•Last opposite-direction candle identified

•Candle CLOSES beyond that candle’s level

•No opposite-direction candle appears before the break

•Anything missing → MSS INVALID ❌

🔄 RETRACEMENT & ENTRY RULES (EA-READY)

1️⃣ Pre-Condition

•A VALID MSS must be confirmed first

•Any retracement or entry before MSS → INVALID

2️⃣ Fibonacci Drawing Rule

•Fibonacci MUST be drawn only after a valid MSS

•Only one Fibonacci is allowed per setup

3️⃣ Fibonacci Anchor Rules

🔹 Bullish Setup

•Draw Fibonacci from:

  °LOW of the sweep candle          → MSS break level

  °MSS break level = price level where the candle CLOSES beyond structure

🔹 Bearish Setup

•Draw Fibonacci from:

  °HIGH of the sweep candle → MSS break level

  °MSS break level = price  level where the candle
CLOSES beyond structure

4️⃣ Entry Level Rule

•Entry is allowed ONLY at the 0.55 Fibonacci level

•Any other Fibonacci level → NOT allowed

5️⃣ Retracement Type Rule

•Wick retracement to 0.55 is VALID

•Body retracement is also valid

•Candle does NOT need to close at 0.55

6️⃣ First Retracement Rule (Critical)

•ONLY the FIRST retracement to the 0.55 level is valid

•After the first touch:

  °Trade executed OR

  °Trade missed

•No second or late retracement allowed

7️⃣ Late Entry Invalidation Rule

The setup becomes INVALID if:

•The first retracement does NOT touch 0.55, AND

•Price breaks the range with a CANDLE BODY, AND

•Price later retraces back to the 0.55 level

📌 In this case → ENTRY NOT ALLOWED

8️⃣ Wick Sweep Exception

•Wick-only sweep of the range is ALLOWED

•Only a BODY CLOSE break invalidates the setup

9️⃣ Late Entry Rule

•Any retracement to 0.55 after invalidation → ❌ NOT allowed

✅ FINAL EA ENTRY VALIDATION

An entry is VALID ONLY WHEN ALL are TRUE:

•MSS is valid

•Fibonacci drawn after MSS

•Fibonacci anchors are correct

•FIRST retracement touches 0.55

•No candle-body range break before the touch

•Anything missing → ENTRY INVALID ❌

🛑 STOP LOSS (SL) RULES 

1️⃣ Mandatory Stop Loss Rule

•Every trade MUST have a Stop Loss

•No-SL trades are strictly NOT allowed

•If SL cannot be placed → TRADE NOT ALLOWED

2️⃣ Stop Loss Placement Rule

•Stop Loss MUST be placed inside the sweep candle range

•Buy Trade

  °SL must be BELOW the LOW of the sweep candle

•Sell Trade

°SL must be ABOVE the HIGH of the sweep candle

3️⃣ Maximum Stop Loss Size Rule (ATR Based)

•Use ATR (20) on the 1-HOUR timeframe

•Calculate the current ATR(20, 1H) value

•Maximum allowed SL size = 2 × ATR(20, 1H)

4️⃣ SL Size Validation

•If the required SL distance is LESS than or EQUAL to the maximum allowed SL → ✅ Trade allowed

•If the required SL distance is GREATER than the maximum allowed SL → ❌ TRADE NOT ALLOWED

✅ FINAL EA DECISION LOGIC

A trade is VALID ONLY WHEN ALL are TRUE:

•Stop Loss is defined

•SL is inside the sweep candle range

•SL distance ≤ 2 × ATR(20) on 1H timeframe

If any condition fails → NO TRADE 

📰 HIGH-IMPACT NEWS FILTER RULES (FULLY AUTOMATIC)

1️⃣ News Source & Detection

•EA must automatically read high-impact news from an economic calendar

•News data must be:

°Real-time
°Broker-server-time synchronized

•Manual news time input is NOT allowed

•All news timing must be handled fully automatically

2️⃣ Restricted High-Impact News Events

NO trades are allowed during these events:

•NFP (Non-Farm Payrolls)

•CPI (Consumer Price Index)

•FOMC Meetings / Statements

•Interest Rate Decisions

•Federal Reserve Chair (Powell) Speeches

°Only HIGH-IMPACT (red folder) news must be filtered

°Medium / low impact news are ignored

3️⃣ Time-Based No-Trade Window

For each detected high-impact news event:

•❌ No trades 15 minutes BEFORE the news release

•❌ No trades 15 minutes AFTER the news release

📌 Total blocked time per event = 30 minutes

4️⃣ Trade Blocking Logic

•If current time is inside the news block window:

  °❌ No market orders
  °❌ No pending orders
  °❌ No order modifications

•Existing trades may continue (no forced close unless defined separately)

5️⃣ Multiple News Events Handling

•If multiple high-impact news events occur on the same day:

   °Apply the 15 min before / 15 min after rule to EACH event

•If block windows overlap:
   
  °Trading remains fully blocked until all windows end

6️⃣ EA Decision Condition

Trading is ALLOWED ONLY IF:

•Current server time is outside all high-impact news block windows

If inside any window → NO TRADE ❌

🔹 Strict rule-based execution only

📦 Deliverables

🔹 MT5 EA files:
.mq5 source file
.ex5 compiled file
🔹 Fully adjustable inputs:
•Risk %
•RR
°Break-even level
•One trede per day
•Max SL pips 
🔹 Clean, readable, well-commented code
🔹 Full source-code ownership
🧪 Testing & Payment Conditions
🔹 Demo testing mandatory
🔹 Mini bug fixes included
🔹 EA must:
Follow all rules exactly
Show profitable demo performance
🔹 Final payment only after demo approval
🔹long time support 

⭐ Quality Expectations

🔹 Strictly designed for funded account rules
🔹 Discipline > frequency
❌ No hidden logic
❌ No repainting
❌ No over-trading

Responded

1
Developer 1
Rating
(75)
Projects
110
51%
Arbitration
25
28% / 52%
Overdue
9
8%
Working
2
Developer 2
Rating
Projects
0
0%
Arbitration
1
0% / 100%
Overdue
0
Free
3
Developer 3
Rating
(2653)
Projects
3370
68%
Arbitration
77
48% / 14%
Overdue
342
10%
Free
Published: 1 code
4
Developer 4
Rating
(60)
Projects
87
29%
Arbitration
24
13% / 58%
Overdue
7
8%
Working
5
Developer 5
Rating
(1)
Projects
0
0%
Arbitration
5
0% / 80%
Overdue
0
Free
6
Developer 6
Rating
(58)
Projects
90
43%
Arbitration
4
0% / 100%
Overdue
3
3%
Working
7
Developer 7
Rating
(22)
Projects
29
3%
Arbitration
4
25% / 0%
Overdue
3
10%
Working
8
Developer 8
Rating
(64)
Projects
83
28%
Arbitration
9
33% / 56%
Overdue
9
11%
Free
Published: 1 code
9
Developer 9
Rating
(271)
Projects
553
50%
Arbitration
57
40% / 37%
Overdue
227
41%
Working
10
Developer 10
Rating
(3)
Projects
5
20%
Arbitration
2
50% / 0%
Overdue
0
Working
Published: 22 codes
11
Developer 11
Rating
(168)
Projects
200
48%
Arbitration
3
33% / 33%
Overdue
2
1%
Free
12
Developer 12
Rating
Projects
0
0%
Arbitration
0
Overdue
0
Free
13
Developer 13
Rating
(6)
Projects
7
14%
Arbitration
1
0% / 100%
Overdue
1
14%
Free
14
Developer 14
Rating
Projects
0
0%
Arbitration
0
Overdue
0
Free
15
Developer 15
Rating
(32)
Projects
33
61%
Arbitration
1
100% / 0%
Overdue
1
3%
Working
Published: 5 codes
16
Developer 16
Rating
Projects
0
0%
Arbitration
0
Overdue
0
Free
17
Developer 17
Rating
(6)
Projects
6
0%
Arbitration
2
50% / 0%
Overdue
1
17%
Free
18
Developer 18
Rating
Projects
0
0%
Arbitration
0
Overdue
0
Free
19
Developer 19
Rating
Projects
0
0%
Arbitration
0
Overdue
0
Free
20
Developer 20
Rating
(53)
Projects
74
26%
Arbitration
30
10% / 63%
Overdue
22
30%
Free
Similar orders
Need trading robot 50 - 70 USD
I need a robot for trading gold and currencies . I need to use it with metatrader 4 and 5 . My budget is not high . Max . 70 USD. I need to be able to start and stop it at any time without restrictions
am looking for an experienced MQL5 developer to build a high-frequency trading Expert Advisor (EA) for XAUUSD (Gold) on M1 and M5 timeframes . The EA must include advanced execution logic, dynamic pending orders, risk management, and news/session filters. Clean, efficient, and well-documented code is required. Strategy type: Scalping (fast trades, quick profit). Very fast execution logic (optimized for speed). Goal
Title: MT5 EA Needed – Prop‑Firm Compliance Tool (SL/TP at Entry, 60‑Second Hold, Daily Profit Cap, 0.5% XAUUSD Risk) Description: I need an MT5 Expert Advisor that enforces prop‑firm compliance rules for Instant Funding accounts. The EA must NOT trade automatically — it should only monitor and control my manual XAUUSD trading. I trade all sessions, so there should be no time restrictions. MY TRADING STYLE (Important
​1. Project Overview ​ Asset: XAUUSD (Gold) ​ Timeframe: M1 (1-Minute) for execution; M5/M15 for trend filtering. ​ Objective: Execute high-frequency scalps during peak liquidity (London/NY overlap) to capture 10–30 pip movements with high precision. ​ Core Logic: The "Poverty Bot" strategy relies on Mean Reversion combined with Momentum Burst (Price Action + RSI/EMA filters). ​2. Strategy Logic (The "Poverty"
I need any highly profitable robot which can trade small account like 50-100USD and any currency pair(s) The robot should avoid trading around news time and have good risk management. It should use any strategy which is profitable and not those unacceptable by brokers. Demo versions will be required before selection
Hi, I hope you doing Greate, Let me share details , so the original EA already working but you can check and verify everything fine.First you verify that all original EA features are working correctly then add a user dashboard showing the number of detected zones, buy sell both none status, and an on off button. also ensure mitigated zones disappear properly and that trades follow the zone rules, and integrate the
I need a high-speed Expert Advisor (EA) for MT5 designed specifically for XAUUSD (Gold) scalping. The bot should focus on fast entries and quick profits with high efficiency. Main requirements: 1. Symbol: XAUUSD (Gold only). 2. Platform: MetaTrader 5. 3. Strategy type: Scalping (fast trades, quick profit). 4. The bot should open trades frequently based on fast market movements. 5. Small Take Profit (quick profit
Gold_m1_ob_bot. 30+ USD
import MetaTrader5 as mt5 import pandas as pd import time from datetime import datetime # ================== CONFIG ================== SYMBOL = "XAUUSD" TIMEFRAME = mt5.TIMEFRAME_M1 LOT = 0.01 MAX_OBS = 12 # keeps signals frequent ATR_PERIOD = 14 IMPULSE_FACTOR = 1.5 # strong candle = impulse SESSION_START = 8 # GMT (London open) SESSION_END = 20 # GMT (NY close) MAX_SPREAD = 30 #
I have existing compiled indicator and script files (EX4) and would like to have them recreated in both MQL4. ⚠️ Important: This project is NOT for decompiling or reverse engineering. Instead, the goal is to: Analyze the behavior and output of the provided files Recreate equivalent functionality from scratch Deliverables: 1 MQL4 indicator source code (.mq4) 1 MQL4 script source code (.mq4) Requirements: The recreated
I need a good programmer to help convert an existing indicator to a trading EA that can work on both MT4 and MT5. The expected features on the EA is as follows: Max Spread: Magic Number: Take Profit: Stop Loss: Trailing Stop: Fixed Lot Size: Money Management: false/true Min Lot Size: Max Lot Size: Risk to Trade %: Daily Profit Target %: Add news filter. Get my jobs with source code

Project information

Budget
40 - 150 USD
Deadline
from 5 to 30 day(s)