Range Breakout EA in MQL5 according to spec

Spezifikation

I am looking for an EA in MQL5 that trades both sides of a range breakout and places a hedge order. Fairly straightforward!

Here is a specification:

Trading Strategy Specification: Range Breakout

Platform: Metatrader 5, 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. If one order has been hit, the other order is immediately terminated. If a trade ends in stop-loss, a hedge trade is opened immediately afterwards

 

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

endtime

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.

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 = maximumrange

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

Step 2: Trade Entries

Calculate the entry prices by using the range, and a buffer. Set the orders immediately after the time interval of step 1 is over. First, calculate price levels:

bufferrangeentry = range * (1+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


If one of the orders is hit, delete the other open order.

 

Step 3: Hedge Orders

If a stop loss has been 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

 

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 endtime parameter


Bewerbungen

1
Entwickler 1
Bewertung
(241)
Projekte
304
28%
Schlichtung
32
25% / 63%
Frist nicht eingehalten
10
3%
Beschäftigt
2
Entwickler 2
Bewertung
(103)
Projekte
160
22%
Schlichtung
23
9% / 78%
Frist nicht eingehalten
16
10%
Beschäftigt
3
Entwickler 3
Bewertung
(22)
Projekte
21
10%
Schlichtung
4
25% / 75%
Frist nicht eingehalten
0
Frei
4
Entwickler 4
Bewertung
(152)
Projekte
190
57%
Schlichtung
10
80% / 0%
Frist nicht eingehalten
0
Frei
Veröffentlicht: 1 Beispiel
5
Entwickler 5
Bewertung
(323)
Projekte
502
19%
Schlichtung
33
42% / 30%
Frist nicht eingehalten
33
7%
Beschäftigt
6
Entwickler 6
Bewertung
(2)
Projekte
3
33%
Schlichtung
3
33% / 33%
Frist nicht eingehalten
0
Frei
7
Entwickler 7
Bewertung
(2294)
Projekte
2888
63%
Schlichtung
122
44% / 25%
Frist nicht eingehalten
428
15%
Arbeitet
8
Entwickler 8
Bewertung
(33)
Projekte
35
20%
Schlichtung
5
40% / 40%
Frist nicht eingehalten
0
Frei
Veröffentlicht: 1 Beispiel
9
Entwickler 9
Bewertung
(302)
Projekte
308
69%
Schlichtung
2
100% / 0%
Frist nicht eingehalten
0
Frei
Veröffentlicht: 1 Beispiel
10
Entwickler 10
Bewertung
(1)
Projekte
1
0%
Schlichtung
1
0% / 100%
Frist nicht eingehalten
0
Frei
11
Entwickler 11
Bewertung
(6)
Projekte
7
0%
Schlichtung
2
0% / 100%
Frist nicht eingehalten
0
Arbeitet
12
Entwickler 12
Bewertung
(540)
Projekte
622
33%
Schlichtung
37
38% / 51%
Frist nicht eingehalten
11
2%
Überlastet
13
Entwickler 13
Bewertung
(45)
Projekte
46
24%
Schlichtung
34
9% / 85%
Frist nicht eingehalten
10
22%
Frei
14
Entwickler 14
Bewertung
Projekte
0
0%
Schlichtung
1
0% / 0%
Frist nicht eingehalten
0
Arbeitet
Veröffentlicht: 2 Beispiele
15
Entwickler 15
Bewertung
(428)
Projekte
623
54%
Schlichtung
30
53% / 23%
Frist nicht eingehalten
6
1%
Überlastet
16
Entwickler 16
Bewertung
(5)
Projekte
8
13%
Schlichtung
3
0% / 33%
Frist nicht eingehalten
2
25%
Frei
Veröffentlicht: 1 Beispiel
17
Entwickler 17
Bewertung
(333)
Projekte
401
52%
Schlichtung
20
55% / 15%
Frist nicht eingehalten
29
7%
Beschäftigt
18
Entwickler 18
Bewertung
(57)
Projekte
89
43%
Schlichtung
4
0% / 100%
Frist nicht eingehalten
3
3%
Arbeitet
19
Entwickler 19
Bewertung
(159)
Projekte
284
35%
Schlichtung
18
22% / 61%
Frist nicht eingehalten
42
15%
Beschäftigt
20
Entwickler 20
Bewertung
(8)
Projekte
9
56%
Schlichtung
0
Frist nicht eingehalten
0
Frei
21
Entwickler 21
Bewertung
(617)
Projekte
1427
59%
Schlichtung
31
81% / 0%
Frist nicht eingehalten
10
1%
Frei
22
Entwickler 22
Bewertung
(493)
Projekte
1022
58%
Schlichtung
30
27% / 23%
Frist nicht eingehalten
133
13%
Arbeitet
23
Entwickler 23
Bewertung
(322)
Projekte
499
67%
Schlichtung
5
40% / 0%
Frist nicht eingehalten
4
1%
Frei
Veröffentlicht: 8 Beispiele
24
Entwickler 24
Bewertung
(2629)
Projekte
3341
67%
Schlichtung
77
48% / 14%
Frist nicht eingehalten
342
10%
Frei
Veröffentlicht: 1 Beispiel
25
Entwickler 25
Bewertung
(511)
Projekte
549
53%
Schlichtung
13
69% / 15%
Frist nicht eingehalten
3
1%
Frei
26
Entwickler 26
Bewertung
(574)
Projekte
945
47%
Schlichtung
309
58% / 27%
Frist nicht eingehalten
125
13%
Frei
Ähnliche Aufträge
step by step and structure this into a full IEEE 830 / ISO/IEC/IEEE 29148 style Requirements Specification. This format will include: Introduction System Overview Functional and Performance Requirements Traceability Matrix (linking requirements to test cases) Verification and Validation Compliance Standards 1. Introduction 1.1 Purpose The purpose of this document is to define the technical requirements for the
i need an expert to help join 3 model i have in ninjatrader into one, kindly message me and i will be expecting from you and i need this work done in maximum of 4 days, so i need expert that can get it done
Hi developers, I need someone to help me create a simple EA with my indicators and trading plan... I will give you all parameters and you help me create... 2 moving averages, one candle pattern
Please a need a very good expert for this jou I want to create 2 robot one a trade manager Perfect — here’s a clean, professional order description you can post directly to an EA freelancer (MQL5). I’ve written it so it’s clear, serious, and attractive to skilled developers 👌 MQL5 Trade Manager EA – Development Request I am looking for an experienced MQL5 developer to build a robust Trade Manager Expert Advisor for
Henryy999 30 - 3000 USD
The Ai robot must help me with forex and I don't have money soon can the Ai robot give me some money and I will pay it back if the Ai robot does a good job making me rich
Hello developers. I would like to write an Expert Advisor (EA) for MT4 based on the RSI indicator. -Conditions for placing a buy order: when the RSI indicator shows a buy signal with divergence, the CCI indicator is less than -100, and the lowest price is below the lower Bollinger Band. - Conditions for placing a sell order: when the RSI indicator shows a sell signal with divergence . The CCI indicator is greater
Project Title: MT5 Algo Trading EA (Single Strategy + License Panel + Ownership + Manual Trade) --- Project Description I am looking for an experienced MT5 (MQL5) developer to create a clean, stable and professional Algo Trading EA for my company and future clients. This is a long-term business project, not a one-time personal EA. --- 1. Strategy Requirements - Only 1 single trading strategy - No martingale - No grid
write me a fast eurusd and btc scalping robot using ema trend filter m1 and m5 entries lowspread check, less trades, strict risk management fixed tp/sl ssesion filter and tick based exists
Is there someone who coded the PipJuice indicator? Here is the link: https://www.pipjuice.io/ Unfortunately, I don‘t have access to the indicator or the code. If someone have it please send me some screenshots
I want to create an intraday EA designed to trade RSI pullbacks in the direction of the dominant trend during sufficient volatility, scales out profits, and automatically stands aside when market conditions stop supporting its edge. It should have the following features and are based on the following indicators: Trade FX on M15 Enter based on RSI, EMA and ATR Scale out profits using a multi-TP structure Trade only

Projektdetails

Budget
100 - 200 USD
Ausführungsfristen
bis 5 Tag(e)