Range Breakout EA with hedge order

MQL5 Asesores Expertos

Trabajo finalizado

Plazo de ejecución 1 día
Comentario del Ejecutor
Thank you for your order, I will be glad to continue cooperation!
Comentario del Cliente
excellent work, delivered before the deadline, exactly according to specification, and made suggestions for further improvement. I can highly recommend this developer.

Tarea técnica

Trading Strategy Specification: Range Breakout

Platform: Metatrader 5 (MQL5), Forex brokers

Default Chart: EURUSD, 5m chart

Quick overview

The strategy looks for an established range in the morning session and then trades breakouts above or below that range, by opening either a long trade above the range or a short trade below the range. Take-profit and stop-loss targets are immediately set. Also, a hedge order is placed in case of stop loss. If one order has been hit, the other order is immediately terminated. Also, all orders and positions are terminated in the evening at a given time. The range and price levels of orders should be logged in the journal. Description of Algorithm

Input Parameters

Name

data type

default value

starttime

time

7:00am UTC+1

endtime

time

9:00am UTC+1

minimumrange

number

10 pips

maximumrange

number

150 pips

entrybuffer

number

5%

exitbuffer

number

2%

riskrewardratio

number

2

tradevolume

number

0.05 lots

hedgerangedivider

number

3

hedgevolumemultiplier

number

4

endofdaytime

time

8:00pm UTC+1

Step 1: Establish range in the morning session

Record the highest and the lowest encountered price in the time interval between start time and end time in two variables and calculate the resulting range. Also apply a minimum and maximum range. Log the high, low, and range in the journal.

High = highest price encountered in interal between starttime and endtime

Low = lowest price encountered in interval between starttime and endtime

Range = High - Low

if Range is higher than maximum range, then set Range = maximum range

if Range is lower than minimum range, then set Range = minimum range

Step 2: Trade Entries

Calculate the entry prices by using the range, and a buffer. The buffer is added as extra price distance above the high of the range for the long order and below the low of the range of the short order. Set the orders immediately after the time interval of step 1 is over. First, calculate price levels:

bufferrangeentry = range * entrybuffer

bufferrangeexit = range * (1+exitbuffer)

rangedivider = range / riskrewardratio

 

Place two pending stop orders with the following parameters:

1) Short Order

Direction: short

Entry Price: Low - bufferrangeentry

stop loss: High + bufferrangeexit

take profit: Entry - rangedivider

 

2) Long Order:

Direction: long

Entry: High + bufferrangeentry

Set stop loss: Low - bufferrangeexit

Set take profit: Entry + rangedivider

  Log the order prices (stop, tp, sl) and bufferrangeentry, and bufferrangeexit. If one of the orders is hit, delete the other open order and immediately place a hedge order as described in the next step.

 

Step 3: Hedge Order

Should a stop loss be hit, on the first opened position, we try to re-coup our losses with a hedge. Therefore a hedge order is placed at the stop-loss of the first opened order. Calculate the range of the hedge:

hedgerange = Range / hedgerangedivider

 

Place Long Hedge Order if 1st opened position was a short:

Direction: Long

Entry: 1st order stop loss price, immediately after

Stop loss: 1st order entry price

Take Profit: entry + hedgerange

 

OR

 

Place Short Hedge Order if 1st opened position was a long:

Direction: Short

Entry: 1st order stop loss price

Set Stop loss: 1st order entry price

set Take Profit: entry - hedgerange

 

Log price levels (entry, tp, sl) and direction in the journal.

Step 4: Close at market price at a time at the end of the day

Close all orders and positions at the given time in the endofdaytime parameter. Log this in the journal.

 

 


Han respondido

1
Desarrollador 1
Evaluación
(111)
Proyectos
184
25%
Arbitraje
25
16% / 76%
Caducado
16
9%
Libre
2
Desarrollador 2
Evaluación
(295)
Proyectos
367
30%
Arbitraje
37
27% / 65%
Caducado
10
3%
Trabaja
Ha publicado: 10 ejemplos
3
Desarrollador 3
Evaluación
(22)
Proyectos
21
10%
Arbitraje
4
25% / 75%
Caducado
0
Libre
4
Desarrollador 4
Evaluación
(13)
Proyectos
20
40%
Arbitraje
1
0% / 100%
Caducado
1
5%
Libre
5
Desarrollador 5
Evaluación
(274)
Proyectos
403
28%
Arbitraje
40
40% / 50%
Caducado
1
0%
Libre
6
Desarrollador 6
Evaluación
(2353)
Proyectos
2959
63%
Arbitraje
125
44% / 26%
Caducado
429
14%
Trabaja
7
Desarrollador 7
Evaluación
(62)
Proyectos
90
29%
Arbitraje
24
13% / 58%
Caducado
7
8%
Trabaja
8
Desarrollador 8
Evaluación
(5)
Proyectos
8
13%
Arbitraje
3
0% / 33%
Caducado
2
25%
Libre
Ha publicado: 1 ejemplo
9
Desarrollador 9
Evaluación
(467)
Proyectos
820
49%
Arbitraje
76
21% / 51%
Caducado
143
17%
Trabaja
10
Desarrollador 10
Evaluación
(52)
Proyectos
67
43%
Arbitraje
8
0% / 100%
Caducado
3
4%
Libre
11
Desarrollador 11
Evaluación
(162)
Proyectos
289
35%
Arbitraje
18
22% / 61%
Caducado
43
15%
Libre
12
Desarrollador 12
Evaluación
(10)
Proyectos
15
20%
Arbitraje
5
40% / 40%
Caducado
1
7%
Libre
13
Desarrollador 13
Evaluación
(106)
Proyectos
129
25%
Arbitraje
25
28% / 56%
Caducado
8
6%
Libre
14
Desarrollador 14
Evaluación
(12)
Proyectos
12
17%
Arbitraje
2
0% / 50%
Caducado
1
8%
Libre
15
Desarrollador 15
Evaluación
(162)
Proyectos
210
61%
Arbitraje
10
80% / 0%
Caducado
0
Libre
Ha publicado: 1 ejemplo
16
Desarrollador 16
Evaluación
(2678)
Proyectos
3428
68%
Arbitraje
78
49% / 14%
Caducado
343
10%
Libre
Ha publicado: 1 ejemplo
17
Desarrollador 17
Evaluación
(13)
Proyectos
20
40%
Arbitraje
3
0% / 67%
Caducado
3
15%
Libre
18
Desarrollador 18
Evaluación
(33)
Proyectos
35
20%
Arbitraje
5
40% / 40%
Caducado
0
Libre
Ha publicado: 1 ejemplo
19
Desarrollador 19
Evaluación
(271)
Proyectos
553
50%
Arbitraje
57
40% / 37%
Caducado
227
41%
Trabaja
20
Desarrollador 20
Evaluación
(78)
Proyectos
248
74%
Arbitraje
7
100% / 0%
Caducado
1
0%
Libre
Ha publicado: 2 artículos, 1 ejemplo
21
Desarrollador 21
Evaluación
(1931)
Proyectos
3552
88%
Arbitraje
73
40% / 15%
Caducado
268
8%
Libre
22
Desarrollador 22
Evaluación
(298)
Proyectos
478
40%
Arbitraje
105
40% / 24%
Caducado
82
17%
Trabajando
Ha publicado: 2 ejemplos
Solicitudes similares
Andrew 50 - 200 USD
Hello, I am from Tanzania. I am looking for a professional MQL5 programmer from Tanzania who can help me develop and improve my automated MT5 trading robot. The project is called SMC XAVAGE AI, and it trades XAUUSD (Gold). I would like to discuss the project with you. Are you based in Tanzania? Would it be possible to arrange a meeting or a call? Thank you
Metafix 50 - 200 USD
Here is a professional specification you can send directly to your developer. # Project Requirements Specification: MetaTrader 5 Trading Robot Development ### 1. Project Overview I want to develop an automated Forex trading robot (Expert Advisor) for MetaTrader 5 (MT5). The robot should analyse the financial markets, identify trading opportunities, and execute trades automatically based on predefined strategies. ###
1. Platform: MT4 The EA required is not linked, neither depending on trading strategy nor trading signals nor indicators. 2. Initial order is a pending order (buy stop/ sell stop) and it is created manually. It is open for a specified symbol (pair) at a specified price with a specified S/L 3. Example: buy stop 0.1 lot GBPUSD @ 1.3085 WITH S/L @1.3075 Once target price is reached, pending order will
Overview: Build an MT5 Expert Advisor that receives webhook alerts from TradingView (RayAlgo indicator) across three timeframes ( H1, M5, M1 ) for XAUUSD and executes a dual-position strategy when all three conditions align, including strict FTMO server-request limits and automated pre-market-close trade closures. 1. Webhook Receiver & Multi-Timeframe State Logic: H1 Bias State: Updates to BULLISH or BEARISH upon
I am looking for an experienced trading software developer interested in building a long-term working relationship. Im a professional Trader, Coach and Mentor, I work with traders and Student who require customized trading solutions, including automated trading bots, Expert Advisors, custom indicators, trading strategies and other algorithmic trading tools. I am looking for a technically skilled developer who can
Salman serhal 30 - 100 USD
MT5 ICT XAUUSD Sell-Only Trading Robot with Fibonacci Confirmation I am looking for an experienced MQL5 developer to create a custom Expert Advisor (EA) for MetaTrader 5, specifically for trading Gold (XAUUSD). 1. Trading Strategy The robot must use the ICT trading methodology and focus on SELL trades only. The strategy should include: * Identify important resistance and premium zones. * Use Fibonacci retracement
Objective: I am looking for an experienced MQL5 quantitative developer to code an Expert Advisor (EA) from scratch based on a fully defined, rule-based strategy, and then rigorously validate, optimize, and stress-test it before I deploy it on a live VPS environment. Note: The exact mathematical rules, indicator names, and chart screenshots will be shared privately with shortlisted candidates. Strategy Overview
Hi Team We are looking to commission an Expert Advisor (EA) for MetaTrader 5 (MT5) to trade XAUUSD (Gold) . The EA requires tight risk management with a strict $2.00 Stop Loss and a $3.00 to $5.00 Take Profit target. The goal is to achieve a 60%+ Win Rate . Please propose or implement a strategy algorithm capable of meeting the following performance requirements on XAUUSD tick data: Target Performance: $\ge 60\%$ Win
O Trading Ventures 30 - 2000 USD
a trading bot that can open and close trade by its self a stop loss of 1.2 lot size and good tp it should be able to learn trends and learn from its mistakes
JOB SPECIFICATION: Fully Automated ES/MES 5-Minute NY Opening Range Breakout EA 1. Project objective I am looking for an experienced trading algo developer to build a fully automated trading bot (EA) based on my specific 5-minute New York Opening Range Breakout strategy. The EA must identify setups, confirm breakouts, identify retests, confirm continuation, execute trades, calculate position size, place stop-loss and

Información sobre el proyecto

Presupuesto
100 - 200 USD
Plazo límite de ejecución
a 3 día(s)