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
등급
(289)
프로젝트
361
30%
중재
37
27% / 65%
기한 초과
10
3%
로드됨
게재됨: 10 코드
2
개발자 2
등급
(111)
프로젝트
184
25%
중재
25
16% / 76%
기한 초과
16
9%
무료
3
개발자 3
등급
(22)
프로젝트
21
10%
중재
4
25% / 75%
기한 초과
0
무료
4
개발자 4
등급
(162)
프로젝트
209
61%
중재
10
80% / 0%
기한 초과
0
무료
게재됨: 1 코드
5
개발자 5
등급
(329)
프로젝트
515
19%
중재
35
46% / 31%
기한 초과
34
7%
작업중
6
개발자 6
등급
(2)
프로젝트
3
33%
중재
3
33% / 33%
기한 초과
0
무료
7
개발자 7
등급
(2350)
프로젝트
2956
63%
중재
125
44% / 26%
기한 초과
429
15%
무료
8
개발자 8
등급
(33)
프로젝트
35
20%
중재
5
40% / 40%
기한 초과
0
무료
게재됨: 1 코드
9
개발자 9
등급
(327)
프로젝트
332
71%
중재
2
100% / 0%
기한 초과
0
무료
게재됨: 1 코드
10
개발자 10
등급
(1)
프로젝트
1
0%
중재
1
0% / 100%
기한 초과
0
무료
11
개발자 11
등급
(6)
프로젝트
7
0%
중재
2
0% / 100%
기한 초과
0
작업중
12
개발자 12
등급
(628)
프로젝트
739
34%
중재
49
53% / 39%
기한 초과
15
2%
작업중
13
개발자 13
등급
(45)
프로젝트
46
24%
중재
34
9% / 85%
기한 초과
10
22%
무료
14
개발자 14
등급
프로젝트
0
0%
중재
1
0% / 0%
기한 초과
0
작업중
게재됨: 2 코드
15
개발자 15
등급
(437)
프로젝트
648
53%
중재
35
63% / 20%
기한 초과
7
1%
작업중
16
개발자 16
등급
(5)
프로젝트
8
13%
중재
3
0% / 33%
기한 초과
2
25%
무료
게재됨: 1 코드
17
개발자 17
등급
(369)
프로젝트
459
55%
중재
24
58% / 17%
기한 초과
31
7%
무료
18
개발자 18
등급
(60)
프로젝트
94
43%
중재
4
0% / 100%
기한 초과
4
4%
무료
19
개발자 19
등급
(162)
프로젝트
289
35%
중재
18
22% / 61%
기한 초과
43
15%
무료
20
개발자 20
등급
(8)
프로젝트
9
56%
중재
0
기한 초과
0
무료
21
개발자 21
등급
(618)
프로젝트
1429
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 코드
24
개발자 24
등급
(2676)
프로젝트
3418
68%
중재
77
48% / 14%
기한 초과
343
10%
작업중
게재됨: 1 코드
25
개발자 25
등급
(515)
프로젝트
554
53%
중재
13
69% / 15%
기한 초과
3
1%
무료
26
개발자 26
등급
(574)
프로젝트
945
47%
중재
309
58% / 27%
기한 초과
125
13%
무료
비슷한 주문
Request for an Existing Automated Trading System (Expert Advisor) I am looking to acquire an existing, fully functional Expert Advisor (EA) that trades Forex CFDs, with the option of trading other CFDs if the strategy supports them safely. Performance objectives Target average net monthly return: 1.5%. A consistent 1.0% monthly return may be considered if the system demonstrates strong risk control and credible
Hi All, I am looking for a bot EA which makes good profit. If any having please share it for TEST. After proper TESTING only I will make the payment, no cheating no fraud. Please do not waste the time also
Allow me to set the daily trading bias manually to BUY or SELL. Check my defined 4H and 1H trend-alignment conditions. Execute entries based on my 15-minute pullback and continuation rules. Trade only between 06:00 and 16:00 Nigeria time, Monday to Friday. Calculate lot size based on my chosen risk percentage and stop-loss distance. Automatically place stop-loss and take-profit orders. Enforce my daily trade limits
Hi, I’m looking for a **ready-made MT5 scalping EA specifically for Gold (XAUUSD)**. My main requirement is an **HTF scalping strategy**, so I’m looking for an existing robot that is already developed and can be tested before I make the purchase. I’m not looking to build one from scratch at this stage. I would like to first test the EA on a **demo account** to see how it performs under live market conditions and
EMA Pin Bar EA 30 - 100 USD
I would like an EA that implements the strategy below: 1. It requires a 6 EMA, 18EMA, 50EMA and 200SMA 2. Trend filter: 50 is above 200 for a buy. 50 below 200 for a sell 3. FOR A BUY: After candle close, if 6 has crossed above 18 and trend filter is a buy: a. if the last candle was a pin bar (body is less than 50% of candle size, and upper wick is less than 10% of candle size) b. check if the candle is within 10
Title: Custom M5 Gold (XAUUSD Cent) Scalper EA with Daily Profit Target and Strict Risk Control 1. OVERVIEW & OBJECTIVE We need an Expert Advisor (EA) developed for MT4 and MT5 to trade XAU/USD Cent (XAUUSDc on HFM / HF Markets). The EA must operate fully autonomously on M5 charts, targeting micro-pips (3 to 5 cent movements) per trade. The core philosophy is "set-and-forget" with absolute risk protection to prevent
Hi, I’m looking for a **ready-made MT5 scalping EA specifically for Gold (XAUUSD)**. My main requirement is an **HTF scalping strategy**, so I’m looking for an existing robot that is already developed and can be tested before I make the purchase. I’m not looking to build one from scratch at this stage. I would like to first test the EA on a **demo account** to see how it performs under live market conditions and
Are you able to build one bot for stock and one for ninja trader and tell me the win rate on it. I need ninja trader bot that enter buy and exit according the move to do not stay long in the market in each entry . That can follow the smart money concept or other if you have a good one
Hi there I need an developer to create a ea for mt5 and mt4 but the ea should be an fast connect ea meaning by taping the ea then automatically it connect to mt5 chart same in mt4 It should place order using invisible buy and invisible sell when the bid price breakout in 1 point Automatically it place an order depends on which direction and invisible stop loss in points , please reply if you can
EA 35+ USD
Project Title: Development of a Custom Breakout Expert Advisor (EA) with Dynamic Trailing Stop, Advanced Security Filters, and On-Screen Dashboard for MT5 Project Description: Overview: I am looking for an experienced MQL5 developer to build a fully automated Trading Robot (Expert Advisor) for MetaTrader 5 based on a pending orders breakout strategy with strict dynamic risk management and customized time/profit

프로젝트 정보

예산
100 - 200 USD
기한
로 5 일