MT5 Expert Advisor – "RANGER" Range Reversion Strategy

MQL5 Experts

Specification

Description:

I need an MT5 Expert Advisor built to exactly replicate a TradingView Pine Script strategy.

This is a range mean reversion system.
All logic must be followed precisely. No optimisation, no interpretation.

The EA must behave identically to the logic below.


Market & Timeframe

  • Primary: NAS100 (but must work on any symbol)
  • Timeframe: 5-minute
  • Must work regardless of broker (handle symbol digits properly)

Core Strategy Logic

1. Indicators

  • EMA 20
  • EMA 200
  • RSI (14)

2. Range Detection

Calculate:

  • Range High = highest high over last 20 candles
  • Range Low = lowest low over last 20 candles
  • Range Mid = (high + low) / 2

3. Market Condition (Ranging Only)

Trade ONLY if:

  • Absolute distance between EMA 20 and EMA 200 ≤ 35 points
  • Absolute slope of EMA 200 over last 10 bars ≤ 10 points

4. Entry Conditions

Long Entry:

  • Price LOW touches or goes below (Range Low + 5 points)
  • Candle closes back above Range Low
  • Lower wick > candle body (wick rejection)
  • RSI ≤ 30

Short Entry:

  • Price HIGH touches or goes above (Range High - 5 points)
  • Candle closes back below Range High
  • Upper wick > candle body
  • RSI ≥ 70

5. Trade Management

Stop Loss:

  • Long: Range Low − 5 points
  • Short: Range High + 5 points

Take Profit:

  • Long: Range Mid
  • Short: Range Mid

6. Position Sizing (CRITICAL)

Each trade must risk a fixed % of account balance:

  • Risk per trade = 1% of equity
  • Lot size must be calculated based on stop distance

7. Trade Execution Rules

  • Only ONE open trade at a time
  • No hedging
  • No pyramiding

8. Re-entry Rule (VERY IMPORTANT*)

  • If a LONG trade is taken, no further LONG trades allowed until a SHORT trade occurs
  • If a SHORT trade is taken, no further SHORT trades allowed until a LONG trade occurs

This is a hard rule, not time-based.


9. Execution Details

  • Execute trades at candle close only
  • No intra-candle execution
  • Use completed bar data only

10. Additional Requirements

  • Must work on live account and strategy tester identically
  • Must handle different broker digits (e.g. 2, 3, 5 digit pricing)
  • No repainting logic
  • EA must not open duplicate trades
  • Magic number must be configurable

Deliverables

  • Fully working .ex5 file
  • Source code (.mq5)
  • Clear instructions for setup
  • Must match TradingView behaviour logically

Important Notes

  • Do NOT optimise or change the strategy
  • Do NOT add filters or improvements
  • Follow the logic exactly as written

Responded

1
Developer 1
Rating
(558)
Projects
645
33%
Arbitration
41
41% / 46%
Overdue
11
2%
Busy
2
Developer 2
Rating
Projects
0
0%
Arbitration
0
Overdue
0
Free
3
Developer 3
Rating
(185)
Projects
241
20%
Arbitration
22
50% / 18%
Overdue
0
Working
4
Developer 4
Rating
(22)
Projects
21
10%
Arbitration
4
25% / 75%
Overdue
0
Free
5
Developer 5
Rating
(9)
Projects
13
8%
Arbitration
3
33% / 67%
Overdue
1
8%
Working
6
Developer 6
Rating
(99)
Projects
120
23%
Arbitration
21
29% / 52%
Overdue
8
7%
Working
7
Developer 7
Rating
(16)
Projects
18
44%
Arbitration
1
0% / 100%
Overdue
0
Working
8
Developer 8
Rating
(1285)
Projects
1710
49%
Arbitration
52
71% / 12%
Overdue
38
2%
Working
9
Developer 9
Rating
(12)
Projects
16
13%
Arbitration
4
50% / 25%
Overdue
4
25%
Loaded
10
Developer 10
Rating
(633)
Projects
854
48%
Arbitration
29
38% / 17%
Overdue
63
7%
Working
11
Developer 11
Rating
(17)
Projects
23
39%
Arbitration
6
33% / 50%
Overdue
0
Free
12
Developer 12
Rating
(266)
Projects
598
35%
Arbitration
64
20% / 58%
Overdue
147
25%
Free
Published: 1 article, 22 codes
13
Developer 13
Rating
Projects
0
0%
Arbitration
0
Overdue
0
Free
14
Developer 14
Rating
Projects
0
0%
Arbitration
0
Overdue
0
Free
15
Developer 15
Rating
(378)
Projects
485
24%
Arbitration
59
54% / 25%
Overdue
55
11%
Loaded
16
Developer 16
Rating
(2)
Projects
2
0%
Arbitration
0
Overdue
1
50%
Free
17
Developer 17
Rating
(311)
Projects
557
35%
Arbitration
79
32% / 43%
Overdue
202
36%
Working
18
Developer 18
Rating
(6)
Projects
5
0%
Arbitration
2
50% / 50%
Overdue
2
40%
Free
19
Developer 19
Rating
(3)
Projects
6
17%
Arbitration
1
0% / 0%
Overdue
1
17%
Working
20
Developer 20
Rating
(443)
Projects
700
34%
Arbitration
34
71% / 9%
Overdue
22
3%
Free
21
Developer 21
Rating
(2315)
Projects
2914
63%
Arbitration
123
44% / 25%
Overdue
429
15%
Working
22
Developer 22
Rating
(32)
Projects
33
61%
Arbitration
1
100% / 0%
Overdue
1
3%
Free
Published: 5 codes
23
Developer 23
Rating
(141)
Projects
150
41%
Arbitration
3
33% / 33%
Overdue
1
1%
Working
24
Developer 24
Rating
(511)
Projects
549
53%
Arbitration
13
69% / 15%
Overdue
3
1%
Free
25
Developer 25
Rating
Projects
0
0%
Arbitration
0
Overdue
0
Free
26
Developer 26
Rating
(18)
Projects
26
0%
Arbitration
4
0% / 100%
Overdue
5
19%
Free
27
Developer 27
Rating
(271)
Projects
553
50%
Arbitration
57
40% / 37%
Overdue
227
41%
Working
28
Developer 28
Rating
(2)
Projects
4
25%
Arbitration
2
50% / 0%
Overdue
0
Working
Published: 13 codes
29
Developer 29
Rating
(2649)
Projects
3366
68%
Arbitration
77
48% / 14%
Overdue
342
10%
Working
Published: 1 code
30
Developer 30
Rating
(55)
Projects
92
24%
Arbitration
8
75% / 13%
Overdue
44
48%
Free
31
Developer 31
Rating
Projects
0
0%
Arbitration
0
Overdue
0
Free
32
Developer 32
Rating
(80)
Projects
138
51%
Arbitration
5
80% / 0%
Overdue
6
4%
Free
33
Developer 33
Rating
Projects
0
0%
Arbitration
0
Overdue
0
Free
Published: 1 code
34
Developer 34
Rating
Projects
0
0%
Arbitration
0
Overdue
0
Working
35
Developer 35
Rating
Projects
0
0%
Arbitration
0
Overdue
0
Free
36
Developer 36
Rating
Projects
0
0%
Arbitration
0
Overdue
0
Free
37
Developer 37
Rating
(8)
Projects
15
7%
Arbitration
4
25% / 50%
Overdue
1
7%
Free
38
Developer 38
Rating
Projects
0
0%
Arbitration
0
Overdue
0
Free
Similar orders
I am looking for an experienced MQL5 developer to improve an existing forex EA, not build a completely new robot from zero. Important note: I use GPT to help me write because my English is limited. The wording may be assisted by GPT, but the trading issues, testing observations, and improvement goals are real from my side. I need a developer who is patient, understands strategy logic well, and can explain the
Fair Value Gap Expert , Optimize the core logic for live chart . [Filters are working] Lets ace the trailing stop . Change points to pip . Project will start from next week
I am looking to develop a highly optimized and fully modular script in MQL5 specifically for detecting RSI Divergences. This script will serve as a foundational building block to be integrated into a larger, comprehensive Expert Advisor (EA) later. Therefore, execution speed, strict logic, and a clean codebase are my absolute top priorities. Here are the core technical requirements for this project: 1. MQL5
My requirement i have mention in the video. I explain it from a screen record will be more clear https://www.youtube.com/watch?v=oTCWx7tfckM Mainly RSI martingale TP/SL lot size will auto base on the profit/loss i wish to risk
We have an existing Expert Advisor (EA) for MetaTrader 4. We need to restrict the EA so it only works on specific MetaTrader account ID(s). Key Requirements: Add account ID locking functionality to the EA. EA should run only on authorized account number(s). If used on any unauthorized account, the EA should: Stop trading, and/or Display an error message (e.g., “Unauthorized Account”). Ability to easily update or add
I hope to acquire a profitable and existing expert advisor (EA) from the gold market, with complete source code, to add to our client portfolio. you can WECHAT: Faca7898 Please note EA when adding friends. It should be clarified that this does not require you to formulate or design new strategies. If you already have a verified, consistent, and production-ready EA, I am willing to purchase it immediately and engage
Hello I want a very profitable scalping EA , tight stoploss and low drawdown , for Xauusd or any pair, time frame any, daily profit 20$ minimum and minimum deposite 200$ maximum sir
I’m looking for an experienced developer to help build a trading bot for Polymarket , focused on short-term crypto prediction markets (e.g. 5–15 minute intervals). The strategy is fully rule-based and operates on binary outcome markets (YES/NO shares). The bot should be able to: monitor live market prices and probabilities, execute trades based on predefined conditions, manage positions dynamically before market
This project is to create or provide a back testable renko chart builder/EA for MT5 which must be: Back testable using strategy tester Optimisable using strategy tester Accurate in terms of price, including wicks Accurate in terms of time, with no future date issue. Able to produce both normal and median renko. The renko must have been developed by the developer OR have been used previously by the developer for off
Hi developers, I want to create a Trading Assistant. The minimum developer experience is someone who has created a Trading Assistant before. The developer has worked on more than 100 job orders The Trading Assistant uses a Risk-Reward Ratio, a movable panel, an expandable panel with a hidden menu, and a modern UI. Thank you

Project information

Budget
150+ USD

Customer

(2)
Placed orders5
Arbitrage count1