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
Оценка
(74)
Проекты
73
47%
Арбитраж
2
50% / 50%
Просрочено
2
3%
Свободен
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
Оценка
(300)
Проекты
448
65%
Арбитраж
5
40% / 0%
Просрочено
4
1%
Работает
8
Разработчик 8
Оценка
(247)
Проекты
440
34%
Арбитраж
56
36% / 38%
Просрочено
161
37%
Занят
9
Разработчик 9
Оценка
(481)
Проекты
510
53%
Арбитраж
10
60% / 20%
Просрочено
3
1%
Свободен
10
Разработчик 10
Оценка
(34)
Проекты
50
44%
Арбитраж
4
25% / 25%
Просрочено
14
28%
Свободен
11
Разработчик 11
Оценка
(261)
Проекты
423
38%
Арбитраж
86
44% / 19%
Просрочено
70
17%
Занят
12
Разработчик 12
Оценка
(2440)
Проекты
3075
66%
Арбитраж
77
48% / 14%
Просрочено
340
11%
Свободен
13
Разработчик 13
Оценка
(16)
Проекты
29
48%
Арбитраж
0
Просрочено
6
21%
Свободен
14
Разработчик 14
Оценка
(266)
Проекты
540
50%
Арбитраж
55
40% / 36%
Просрочено
224
41%
Работает
15
Разработчик 15
Оценка
(66)
Проекты
143
34%
Арбитраж
10
10% / 60%
Просрочено
26
18%
Свободен
16
Разработчик 16
Оценка
(564)
Проекты
933
47%
Арбитраж
302
59% / 25%
Просрочено
125
13%
Загружен
Похожие заказы
Trading robots are programs, which operate according to underlying algorithms. An algorithm is a set of actions that need to be performed in response to certain events. For example, the most common task in algo trading is the identification of the "New bar" event. When the event occurs, the robot checks the emergence of trading signals and acts accordingly. Before you decide to program or order a trading robot, you
Hello, I am looking for developer who develops me a renko trading robo with following requirement Time :1 sec Box assignment method : Percentage change LTP Source : Close/OHLC Auto Break-even setup option after certain box Trialling Profit Pips after certain box profit with auto Sl set in PIPs Auto open reverse trade after hitting Sl with given conditions . It is very simple trading tool
At bot 30+ USD
Help me to trade create orders for me and analyze the markets and decide when is a good time to buy or sell. Determine which pairs are best to use to trade with and indicate trading signals to me
I currently have a Forex trading script in .txt format that I want to be converted to a functional/working robot (in .mq4), without altering the strategy of the script. The strategy of the script is already in and shouldn't be changed unless with mutual understanding
Hi, Can you develop the Scalper EA based on Market indicator. EA should open the buy trade at the buy arrow and at every DOT. Close the buy trade with few Pips TP (profit after commission) and SL at opposite Sell arrow. EA should open the SELL trade at the sell arrow and at every DOT. Close the sell trade with few Pips TP (profit after commission) and SL at opposite Buy arrow. Provide the source code at the end
Hey greetings, It my pleasure to met you . I need a MT4 develop that can develop an EA based on alert . If you are a professional MT4 programmer you can kindly bid for this project and let proceed
Hello, I want an ( EXPERT ADVISER that can run automated) that will use CCI as the main entry and ATR as the exit. When the CCI is greater than the custom value of 0, you buy and when the CCI is less than the custom value -0, you sell. ATR Exit - profit of 1.0 and exit as .05 (Please, let it be modifiable) The time frame can be 15 or 5 minutes (variable) EMA 20 DAYS OR 480 (can be disabled) Spread should not be more
Hi, I would like to create an EA similar to this link: https://www.mql5.com/en/market/product/33508?source=External#description Drawdown 5% Scalping! Ability to avoid big price drop that can hurt capital! stable! bid and ask price different is 0.5
Qwuick Fix 85+ USD
I need a couple options added to an existing EA. I’m in need of an input option to modify pending orders, ensures live positions are correlated with pending orders, and provide an oversight that EA is running smoothly. I also need a calendar feature added to an existing input option for scheduling trades. This project is a side project to do on your own time with a 3-day window due date on Sunday – Monday by next
I am looking for an experienced expert to develop an Expert Advisor based on my idea. We can discuss the details in private messages. Please apply only if you are available now, as I need this project completed within one day

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

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