MT5 Expert Advisor – "RANGER" Range Reversion Strategy

MQL5 Experts

Spécifications

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

Répondu

1
Développeur 1
Évaluation
(558)
Projets
645
33%
Arbitrage
41
41% / 46%
En retard
11
2%
Occupé
2
Développeur 2
Évaluation
Projets
0
0%
Arbitrage
0
En retard
0
Gratuit
3
Développeur 3
Évaluation
(185)
Projets
241
20%
Arbitrage
22
50% / 18%
En retard
0
Travail
4
Développeur 4
Évaluation
(22)
Projets
21
10%
Arbitrage
4
25% / 75%
En retard
0
Gratuit
5
Développeur 5
Évaluation
(9)
Projets
13
8%
Arbitrage
3
33% / 67%
En retard
1
8%
Travail
6
Développeur 6
Évaluation
(99)
Projets
120
23%
Arbitrage
21
29% / 52%
En retard
8
7%
Travail
7
Développeur 7
Évaluation
(16)
Projets
18
44%
Arbitrage
1
0% / 100%
En retard
0
Travail
8
Développeur 8
Évaluation
(1285)
Projets
1710
49%
Arbitrage
52
71% / 12%
En retard
38
2%
Travail
9
Développeur 9
Évaluation
(12)
Projets
16
13%
Arbitrage
4
50% / 25%
En retard
4
25%
Chargé
10
Développeur 10
Évaluation
(633)
Projets
854
48%
Arbitrage
29
38% / 17%
En retard
63
7%
Travail
11
Développeur 11
Évaluation
(17)
Projets
23
39%
Arbitrage
6
33% / 50%
En retard
0
Gratuit
12
Développeur 12
Évaluation
(266)
Projets
598
35%
Arbitrage
64
20% / 58%
En retard
147
25%
Gratuit
Publié : 1 article, 22 codes
13
Développeur 13
Évaluation
Projets
0
0%
Arbitrage
0
En retard
0
Gratuit
14
Développeur 14
Évaluation
Projets
0
0%
Arbitrage
0
En retard
0
Gratuit
15
Développeur 15
Évaluation
(378)
Projets
485
24%
Arbitrage
59
54% / 25%
En retard
55
11%
Chargé
16
Développeur 16
Évaluation
(2)
Projets
2
0%
Arbitrage
0
En retard
1
50%
Gratuit
17
Développeur 17
Évaluation
(311)
Projets
557
35%
Arbitrage
79
32% / 43%
En retard
202
36%
Travail
18
Développeur 18
Évaluation
(6)
Projets
5
0%
Arbitrage
2
50% / 50%
En retard
2
40%
Gratuit
19
Développeur 19
Évaluation
(3)
Projets
6
17%
Arbitrage
1
0% / 0%
En retard
1
17%
Travail
20
Développeur 20
Évaluation
(443)
Projets
700
34%
Arbitrage
34
71% / 9%
En retard
22
3%
Gratuit
21
Développeur 21
Évaluation
(2315)
Projets
2914
63%
Arbitrage
123
44% / 25%
En retard
429
15%
Travail
22
Développeur 22
Évaluation
(32)
Projets
33
61%
Arbitrage
1
100% / 0%
En retard
1
3%
Gratuit
Publié : 5 codes
23
Développeur 23
Évaluation
(141)
Projets
150
41%
Arbitrage
3
33% / 33%
En retard
1
1%
Travail
24
Développeur 24
Évaluation
(511)
Projets
549
53%
Arbitrage
13
69% / 15%
En retard
3
1%
Gratuit
25
Développeur 25
Évaluation
Projets
0
0%
Arbitrage
0
En retard
0
Gratuit
26
Développeur 26
Évaluation
(18)
Projets
26
0%
Arbitrage
4
0% / 100%
En retard
5
19%
Gratuit
27
Développeur 27
Évaluation
(271)
Projets
553
50%
Arbitrage
57
40% / 37%
En retard
227
41%
Travail
28
Développeur 28
Évaluation
(2)
Projets
4
25%
Arbitrage
2
50% / 0%
En retard
0
Travail
Publié : 13 codes
29
Développeur 29
Évaluation
(2649)
Projets
3366
68%
Arbitrage
77
48% / 14%
En retard
342
10%
Travail
Publié : 1 code
30
Développeur 30
Évaluation
(55)
Projets
92
24%
Arbitrage
8
75% / 13%
En retard
44
48%
Gratuit
31
Développeur 31
Évaluation
Projets
0
0%
Arbitrage
0
En retard
0
Gratuit
32
Développeur 32
Évaluation
(80)
Projets
138
51%
Arbitrage
5
80% / 0%
En retard
6
4%
Gratuit
33
Développeur 33
Évaluation
Projets
0
0%
Arbitrage
0
En retard
0
Gratuit
Publié : 1 code
34
Développeur 34
Évaluation
Projets
0
0%
Arbitrage
0
En retard
0
Travail
35
Développeur 35
Évaluation
Projets
0
0%
Arbitrage
0
En retard
0
Gratuit
36
Développeur 36
Évaluation
Projets
0
0%
Arbitrage
0
En retard
0
Gratuit
37
Développeur 37
Évaluation
(8)
Projets
15
7%
Arbitrage
4
25% / 50%
En retard
1
7%
Gratuit
38
Développeur 38
Évaluation
Projets
0
0%
Arbitrage
0
En retard
0
Gratuit
Commandes similaires
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

Informations sur le projet

Budget
150+ USD

Client

(2)
Commandes passées5
Nombre d'arbitrages1