EA with market price channel strategy

MQL5 Эксперты

Работа завершена

Время выполнения 2 дня
Отзыв от заказчика
Wonderful work! Will find him next time!

Техническое задание

This EA trades with time and price actions. It takes the high and low prices of a specific period of time to form a price channel, and open positions when the price breaks through the channel area.


Setup

Default time frame = 5m

 

Channel values are calculated and stored:

  1. At the last bar close before trade session starts (e.g. With 5m timeframe and trade session starts at 11:00, calculation is performed when the 10:55 bar closes)
  2. If the EA is launched after trade session has started (e.g. Trade session starts at 11:00 but EA only launched at 12:00. Need to make sure the correct values are based on the current session)

Clear channel values when trade session ends

 

Channel value calculation:

Channel high = highest price among an hour before the trade start time
Channel low = lowest price among an hour before the trade start time
Channel depth = Channel high - Channel low

 

Parameters:
        Trade session start (server time) = 11:00
        Trade session end (server time) = 15:59

TP Factor = 0.5

Fast EMA period = 3

Signal trend EMA period = 10

Trend EMA period = 200

Use Trend EMA filter = True

 


 

During the trade session, at every bar close, 3 steps will be performed:

Step 1: Cancel any pending orders that’s going against the trend

Step 2: Create new pending orders when condition is met

Step 3: Manage any opened positions

 

Step 1: Cancel pending orders that’s going against trend

        If Fast EMA < Signal EMA, cancel any pending buy stop order

        If Fast EMA > Signal EMA, cancel any pending sell stop order

 

Step 2: Create new pending order

Buy stop order

Conditions:

  1. No existing buy stop order
  2. No existing long position
  3. Current price closes above channel high
  4. Fast EMA > Signal EMA
  5. Channel high > Trend EMA (option to enable / disable)

If all conditions are met, create 2 buy stop order (A1 and A2)

Position A1:

        Place at channel high

        TP = Open price + (Channel depth * TP Factor)

        When TP is hit, immediately set SL of position A2 to breakeven

Position A2:

        Place at channel high

 

Sell stop order

Conditions:

  1. No existing sell stop order
  2. No existing short position
  3. Current price closes below channel low
  4. Fast EMA < Signal EMA
  5. Channel low < Trend EMA (option to enable / disable)

If all conditions are met, create 2 sell stop order (B1 and B2)

Position B1:

        Place at channel low

        TP = Open price - (Channel depth * TP Factor)

        When TP is hit, immediately set SL of position B2 to breakeven

Position B2:

        Place at channel low

Manage opened positions

For Position A1 and A2:

  1. Bar closed below channel low
  2. When in profit and bar closed below the low of previous bar
  3. When in profit and bar closed below the high of previous bar

 


Lot size calculation

There are 3 options for lot size calculation.

  1. Fixed lot size
  2. Risk % per trade – e.g. if set to 0.015, in case of hitting SL the loss of the position should be 1.5% of the balance
  3. % of equity

Position A1 & B1 would have separated settings to position A2 & B2.

 

Parameters:

[A1/B1] Lot size = “Fixed lot size”

[A1/B1] Fixed lot size = 0.01

[A1/B1] Risk % per trade = 0.015

[A1/B1] % of equity = 0.02

[A2/B2] Lot size = “Fixed lot size”

[A2/B2] Fixed lot size = 0.01

[A2/B2] Risk % per trade = 0.015

[A2/B2] % of equity = 0.02

 


Other requirements

  1. Trade time adjust to daylight saving
  2. Only check and manage the pending orders and positions which have the same magic number set by this EA
Draw a rectangle that marks the bounds of the channel on the chart

Файлы:

Откликнулись

1
Разработчик 1
Оценка
(39)
Проекты
50
18%
Арбитраж
5
40% / 40%
Просрочено
0
Свободен
2
Разработчик 2
Оценка
(7)
Проекты
6
0%
Арбитраж
5
0% / 100%
Просрочено
0
Свободен
3
Разработчик 3
Оценка
(73)
Проекты
72
46%
Арбитраж
2
50% / 50%
Просрочено
1
1%
Работает
4
Разработчик 4
Оценка
(96)
Проекты
143
76%
Арбитраж
0
Просрочено
2
1%
Свободен
5
Разработчик 5
Оценка
(4)
Проекты
6
0%
Арбитраж
5
0% / 80%
Просрочено
2
33%
Свободен
6
Разработчик 6
Оценка
(68)
Проекты
111
26%
Арбитраж
17
6% / 71%
Просрочено
15
14%
Свободен
7
Разработчик 7
Оценка
(270)
Проекты
407
63%
Арбитраж
5
40% / 0%
Просрочено
4
1%
Работает
8
Разработчик 8
Оценка
(228)
Проекты
403
33%
Арбитраж
52
37% / 40%
Просрочено
146
36%
Загружен
9
Разработчик 9
Оценка
(466)
Проекты
495
53%
Арбитраж
10
60% / 20%
Просрочено
3
1%
Свободен
10
Разработчик 10
Оценка
(34)
Проекты
49
43%
Арбитраж
3
0% / 33%
Просрочено
14
29%
Свободен
11
Разработчик 11
Оценка
(250)
Проекты
400
38%
Арбитраж
82
41% / 20%
Просрочено
69
17%
Загружен
12
Разработчик 12
Оценка
(2377)
Проекты
2987
65%
Арбитраж
76
47% / 14%
Просрочено
340
11%
Работает
13
Разработчик 13
Оценка
(16)
Проекты
29
48%
Арбитраж
0
Просрочено
6
21%
Свободен
14
Разработчик 14
Оценка
(261)
Проекты
535
50%
Арбитраж
54
41% / 37%
Просрочено
224
42%
Работает
15
Разработчик 15
Оценка
(66)
Проекты
143
34%
Арбитраж
11
9% / 55%
Просрочено
26
18%
Работает
16
Разработчик 16
Оценка
(555)
Проекты
922
48%
Арбитраж
300
59% / 25%
Просрочено
123
13%
Загружен
Похожие заказы
RSI+MA 30 - 70 USD
As seen in the pictures.. Respond and I will give full specifications of what the bot should execute trades.. Please let's not watse each other's time if the pictures don't give you a hint of what is needed
I need an expert in the development of a fully automated trading robot For MetaTrader. The Trading Robot must be "Web based" so it can be accessed or used through a website, You can view a screenshot here; https://www.awesomescreenshot.com/image/48030918?key=79b0ff91455d862746e9b649341f4cdb Why do i need? Simple Enough, This is what i need from my Trading Robot EA. The Trading Robot can only be accessed through a
Maybe this indicator will make a good ea but the aggressive entry moves and conservative entry is stationary and target tp2 which will make it a 0.3:1 aggressive entry is around a 1:1 with Tp 2 I want conservative entry and do aggressive entry pls do that too with the option too switch in the settings I want sl tp and trailing stop fire filter and auto lots fixed lots I get
Hi, I would enlist bids to create an EA, based on the following steps 1. Session Time - the EA will only take a trade during the selected time window, Example 8.30pm to 11.00pm (GMT+8). The example is for a bulllish candle for Buys entry. Entry criteria 1 - A level for buys will be marked by drawing a horizontal line (Example GBPJPY 194.252 Green Line) Entry criteria 2 - A 15min or 30 min candle to close above the
Hello, I am looking for an expert MT4 MT5 Programmer to build an expert advisor that works perfectly for the two metatrader, I would like to work with an experieced full time coder who can be able to pay attention to details, I will be sharing my specifications regarding the development of this algorithm as expected in comment section, Kindly show up if you are the best fit thanks
I would like to calculate the deviations between the companies listed below with Meta Trader. Would you be interested? BETWEEN 01.00 AT NIGHT AND 00.00 OF THE NEXT DAY (FOR HOURS WHEN THE GOLD MARKET IS OPEN) *Instant comparison of prices of the same parities of different companies *Determination of deviation rates in downward or upward movements (average prices, prices below and above the average) *Detection of
Maybe this indicator will make a good ea but the aggressive entry moves and conservative entry is stationary and target tp2 which will make it a 0.3:1 aggressive entry is around a 1:1 with Tp 2 I want conservative entry and do aggressive entry pls do that too with the option too switch in the settings I want sl tp and trailing stop fire filter and auto lots fixed lots I get
The strategy is based on identifying overbought and oversold conditions across multiple timeframes. The primary indicator used is the stochastic indicator. Stochastic Settings: • %K period: 100 • %D period: 5 • Slowing: 4 •Price field : close/close For buying: • stochastic Signal line/Both Most be in the oversold zone (20 level of stochastic) on the H4, H1, 30m, 15m, 5m, and 1m timeframes. Final confirmation For a
Hello, I have an indicator on Trend View. I would like to convert it to a robot. The indicator is not very large, very simple, and works on a small time frame. Must be available Stop loss Setting goals Lot size time frame
3 Indicators from Trading View: Ghost Tangent Crossings [ChartPrime] SuperTrend [KivancOzbilgic] Trendline Breakouts With Targets [ChartPrime] Pair: XAUUSD - M15 If you can write code based on these 3 indicators, please confirm with me so I can send more detailed information about the trading order entry rules. Từ vựng Hán tự Dịch Đang tìm kiếm ... Tiếng Anh Từ điển JP

Информация о проекте

Бюджет
50 - 100 USD
Исполнителю
45 - 90 USD
Сроки выполнения
до 5 дн.