Range Breakout EA in MQL5 according to spec

指定

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


応答済み

1
開発者 1
評価
(258)
プロジェクト
321
30%
仲裁
34
26% / 65%
期限切れ
10
3%
2
開発者 2
評価
(106)
プロジェクト
173
25%
仲裁
23
9% / 78%
期限切れ
16
9%
仕事中
3
開発者 3
評価
(22)
プロジェクト
21
10%
仲裁
4
25% / 75%
期限切れ
0
4
開発者 4
評価
(156)
プロジェクト
197
59%
仲裁
10
80% / 0%
期限切れ
0
仕事中
パブリッシュした人: 1 code
5
開発者 5
評価
(328)
プロジェクト
512
19%
仲裁
33
45% / 30%
期限切れ
34
7%
多忙
6
開発者 6
評価
(2)
プロジェクト
3
33%
仲裁
3
33% / 33%
期限切れ
0
7
開発者 7
評価
(2322)
プロジェクト
2925
63%
仲裁
123
45% / 25%
期限切れ
429
15%
8
開発者 8
評価
(33)
プロジェクト
35
20%
仲裁
5
40% / 40%
期限切れ
0
パブリッシュした人: 1 code
9
開発者 9
評価
(310)
プロジェクト
315
70%
仲裁
2
100% / 0%
期限切れ
0
パブリッシュした人: 1 code
10
開発者 10
評価
(1)
プロジェクト
1
0%
仲裁
1
0% / 100%
期限切れ
0
11
開発者 11
評価
(6)
プロジェクト
7
0%
仲裁
2
0% / 100%
期限切れ
0
仕事中
12
開発者 12
評価
(572)
プロジェクト
664
32%
仲裁
42
45% / 45%
期限切れ
12
2%
仕事中
13
開発者 13
評価
(45)
プロジェクト
46
24%
仲裁
34
9% / 85%
期限切れ
10
22%
14
開発者 14
評価
プロジェクト
0
0%
仲裁
1
0% / 0%
期限切れ
0
仕事中
パブリッシュした人: 2 codes
15
開発者 15
評価
(434)
プロジェクト
635
54%
仲裁
32
56% / 22%
期限切れ
6
1%
仕事中
16
開発者 16
評価
(5)
プロジェクト
8
13%
仲裁
3
0% / 33%
期限切れ
2
25%
パブリッシュした人: 1 code
17
開発者 17
評価
(362)
プロジェクト
435
54%
仲裁
21
52% / 14%
期限切れ
30
7%
仕事中
18
開発者 18
評価
(58)
プロジェクト
90
43%
仲裁
4
0% / 100%
期限切れ
3
3%
仕事中
19
開発者 19
評価
(162)
プロジェクト
289
35%
仲裁
18
22% / 61%
期限切れ
43
15%
20
開発者 20
評価
(8)
プロジェクト
9
56%
仲裁
0
期限切れ
0
21
開発者 21
評価
(618)
プロジェクト
1428
59%
仲裁
31
81% / 0%
期限切れ
10
1%
22
開発者 22
評価
(493)
プロジェクト
1022
58%
仲裁
30
27% / 23%
期限切れ
133
13%
仕事中
23
開発者 23
評価
(322)
プロジェクト
499
67%
仲裁
5
40% / 0%
期限切れ
4
1%
パブリッシュした人: 8 codes
24
開発者 24
評価
(2662)
プロジェクト
3384
68%
仲裁
77
48% / 14%
期限切れ
342
10%
仕事中
パブリッシュした人: 1 code
25
開発者 25
評価
(511)
プロジェクト
550
53%
仲裁
13
69% / 15%
期限切れ
3
1%
26
開発者 26
評価
(574)
プロジェクト
945
47%
仲裁
309
58% / 27%
期限切れ
125
13%
類似した注文
Junior EA 30+ USD
1. EA for MT5, hedging allowed. 2. Entry: 50 EMA crosses 200 EMA on H1. Buy on bullish cross, sell on bearish. 3. SL: 100 pips, TP: 200 pips. No trailing stop. 4. Lot size: 0.01 fixed. Max 3 trades at once. 5. Trade only 08:00-18:00 GMT. No trades if spread > 20 points. 6. Inputs: EMA periods, SL, TP, lot size, start/end time
I am searching professional strategy, not grid, not martingale, controlled risk, Please don't waste my time if you havent got nothing valueable to show, in first message please describe this strategy, if you will not do this, I will move you to rejected, Budget is negotiable
Specification 300 - 900 USD
looking for a highly experienced mql5 developer to build a professional trading ea based on multi timeframe top down analysis and market structure concepts the system should combine higher timeframe context with lower timeframe execution and provide both precise logic and clean visual representation on chart ⸻ core requirements • implementation of multi timeframe logic higher timeframe bias combined with lower
Trading Strategy Specification 🟢 Buy Setup Conditions: Trend Identification: The overall trend must be Bullish (Upward). (Note for the programmer: Define the bullish trend using higher highs/higher lows structure or a specific Moving Average). Fibonacci Retracement: The price must correct downwards to touch or test the 61.8% Fibonacci level , drawn from the most recent swing low to the swing high. Entry
Hey I need help with the development of my ea. I am using a built in indicator and a custom indicator. It shouldn't take too long. I will tell you the conditions and then I just need some help with the coding but I have some experience. Thanks we can chat on whatsap or telegram
I need an experienced MQL5 developer to build a semi automated trading signal system for Gold (XAUUSD) on MT5. The system is NOT a martingale or grid EA. The goal is to build a clean rule based signal engine that detects high probability setups based on predefined strategy rules and sends trading alerts with optional pending order logic. Main Requirements: 1. Signal Generation - Buy and Sell signals - Buy Limit - Buy
MT5 Expert Advisor Specification: Asian Liquidity Sweep & M5 FVG Entry ​Project Overview ​Automated Expert Advisor for EUR/USD on MT5. The strategy maps structural liquidity (Fractal Swings) for entry triggers but targets absolute session extremes for Take Profit. It enters on the first opposite M5 Fair Value Gap (FVG) and features a dynamic, user-controlled risk engine. ​1. Timezone & News Filter Requirements ​The
I am looking for an experienced MQL4/MQL5 developer to build a custom MT4 indicator from scratch or cracking my ex4 file that i provide to you. I already have an existing indicator (EX4) which produces highly accurate buy/sell signals. I want a similar indicator developed based on its observable behavior and signal structure. my existing indicator is pc id protected so you have to do PC ID security bypass and source
I am looking for an experienced MQL5 developer to build a professional Expert Advisor with the following specs: TECHNICAL REQUIREMENTS: - Platform: MetaTrader 5 (MT5) - Pairs: GBPUSD and EURUSD - Broker suffix support (e.g. GBPUSD@, EURUSD@) - Primary timeframe: M5 -Higher timeframe bias: H1 and H4 (for trend direction only) - One chart setup — manages both pairs from one chart STRATEGY: - Price action based: BOS
OBJETIVO Criar um Expert Advisor MT5 profissional para XAUUSD focado em: Consistência Baixo drawdown Scalping profissional Proteção da conta Crescimento sustentável Compatibilidade com conta micro e prop firms NÃO utilizar: Martingale Grid Hedge agressivo Recovery system Multiplicação de lotes após perda --- ATIVO XAUUSD apenas --- TIMEFRAMES Timeframe principal M5 Confirmação tendência M15 Confirmação macro opcional

プロジェクト情報

予算
100 - 200 USD
締め切り
最高 5 日