MQL5 Forex EA based on candle properties

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

Время выполнения 2 дня
Отзыв от заказчика
Juan was amazing to work with. He went above and beyond in everything. He added some extra features, was very patient, and delivered in a really fast and precise way. Would really recommend.
Отзыв от исполнителя
Great specifications, constant and clear communication. A pleasure to work with.

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

Hello everyone,

Kindly I need an EA for forex to buy and sell based on candle properties and an indicator.

This expert advisor should check to open positions at the closing of each candle as per the set timeframe. The EA should open a buy order when there are 2 consecutive bull candles (uptrend), and opens a sell order when there are 2 consecutive bear candles (downtrend) in the specific timeframe. The EA should close open positions when either the take profit (TP) or Stop loss (SL) are reached.

However, there are some conditions to opening positions

 The EA will have 1 indicator: ATR.

 Below are some of the calculations that need to be calculated at the closing of each candle for the constraints with their respective abbreviations. Please use the same abbreviations to make it easier for current and future development.

 

  •            Spread (SP)
  •            Closing candle price (CCP): the closing price of the closing candle.
  •            Recent Duration (RD): duration set as a timeframe for below calculations
  •            Highest price (HPRD) /Highest opening or closing price/ calculated for the RD
  •            Lowest price (LPRD) / Lowest opening or closing price/ calculated for the RD
  •            Longest downtrend (LDT) / Pips / calculated for the RD

  o Difference between highest value and lowest value of 1 or more consecutive red candles

(Highest high and lowest low and NOT highest open and lowest close)

  •            Longest uptrend (LUT) / Pips / calculated for the RD

o   Difference between highest value and lowest value of 1 or more consecutive green candles (highest high and lowest low and NOT highest open and lowest close)

  •            Current trend range (CTR) /Pips/ calculated for all the candles before the closing candle and including the closing candle that have the same direction as the closing candle.

o   For bull candles CTR = highest close of all candles in the range – lowest low of all candles in the range

o   For bear candles CTR = highest high of all candles in the range – lowest close of all candles in the range

Indicator Input

  •         ATR: Period

General Inputs for opening positions

  •            Specify the timeframe
  •            Specify up to 6 trading pairs to look for positions
  •            Recent duration (RD): duration set as a timeframe for below calculations
  •            Max number of open positions: Set the max number of open positions at the same time
  •            Lot size (LS): Set the lot size for opening positions

Conditions

1.       Closing candle properties

  • Closing candle body size{absolute(open-close)} should be:
  • {ATR(at closing candle)*2>Closing candle body size>10 pips}
  • Bull closing candle upper shadow should be less than the body: (high-close) < (close-open)
  • Bear closing candle lower shadow should be less than the body: (close-low) < (open-close)
  • Bear candle closing price should be lower than lowest low of any of the current trend’s candles
  • Bull candle closing price should be higher than highest high of any of the current trend’s candles

2.       Minimum ATR

  • ATR minimum (ATRMin): Set the ATRMin to 50 pips. Only open positions if ATR(calculated at closing candle)>ATRmin

3.       Stop loss

  • Stop loss (SL) : Calculate and set Stop loss for all open orders to = ATR(calculated at closing candle)} pips

4.       Take profit

  • Take profit (TP): Calculate and set the take profit for all open orders to = (2 * ATR (calculated at closing candle)) – Spread (calculated at closing candle)
  • Take profit minimum (TPmin): Set the TPmin to 20 Pips. Only open positions if TP>Tpmin

5.       Recent high/low

For buy orders

  •           CCP + TP < HPRD
  •           CCP > HPRD + ATR

For sell orders

  •            CCP – TP > LPRD
  •            CCP < LRPD – ATR

6.       Current trend range

For buy orders

  •            CTR+ TP < LUT
  •            CTR > (LUT + ATR)

For sell orders

  •            CTR – TP < LDT
  •            CTR > (LDT - ATR)

 

Attached you can find some examples in order to better convey the different componenets and calculations.

Kindly use same abbreviations when defining objects to make it easier for current and future development.


Файлы:

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

1
Разработчик 1
Оценка
(37)
Проекты
59
27%
Арбитраж
25
20% / 52%
Просрочено
10
17%
Работает
2
Разработчик 2
Оценка
(7)
Проекты
6
0%
Арбитраж
5
0% / 100%
Просрочено
1
17%
Свободен
3
Разработчик 3
Оценка
(64)
Проекты
93
37%
Арбитраж
11
27% / 45%
Просрочено
14
15%
Работает
4
Разработчик 4
Оценка
(2423)
Проекты
3047
66%
Арбитраж
77
48% / 14%
Просрочено
340
11%
Свободен
5
Разработчик 5
Оценка
(156)
Проекты
173
43%
Арбитраж
6
0% / 67%
Просрочено
8
5%
Свободен
6
Разработчик 6
Оценка
(15)
Проекты
25
52%
Арбитраж
0
Просрочено
4
16%
Работает
7
Разработчик 7
Оценка
(45)
Проекты
67
45%
Арбитраж
3
0% / 100%
Просрочено
0
Работает
8
Разработчик 8
Оценка
(197)
Проекты
201
27%
Арбитраж
0
Просрочено
3
1%
Свободен
9
Разработчик 9
Оценка
(2080)
Проекты
2641
61%
Арбитраж
113
45% / 26%
Просрочено
418
16%
Работает
10
Разработчик 10
Оценка
(454)
Проекты
513
33%
Арбитраж
25
40% / 48%
Просрочено
7
1%
Загружен
11
Разработчик 11
Оценка
(4)
Проекты
9
11%
Арбитраж
2
50% / 50%
Просрочено
0
Свободен
12
Разработчик 12
Оценка
(253)
Проекты
408
38%
Арбитраж
86
43% / 19%
Просрочено
70
17%
Загружен
13
Разработчик 13
Оценка
(3)
Проекты
6
17%
Арбитраж
1
0% / 100%
Просрочено
1
17%
Свободен
14
Разработчик 14
Оценка
(63)
Проекты
106
68%
Арбитраж
1
100% / 0%
Просрочено
2
2%
Свободен
15
Разработчик 15
Оценка
(3)
Проекты
3
33%
Арбитраж
0
Просрочено
0
Работает
16
Разработчик 16
Оценка
(265)
Проекты
539
50%
Арбитраж
55
40% / 36%
Просрочено
224
42%
Работает
17
Разработчик 17
Оценка
(52)
Проекты
62
6%
Арбитраж
23
22% / 39%
Просрочено
4
6%
Загружен
18
Разработчик 18
Оценка
(568)
Проекты
641
41%
Арбитраж
21
57% / 29%
Просрочено
47
7%
Работает
Похожие заказы
EA indicador Velas 30 - 50 USD
Necesito crear un EA basado en un indicador que da señal de entrada y que tenga los siguientes parametros 1. Entrar Buy o Sell en la siguiente vela de la señal dependiendo la Flecha 2. El TP para BUY sera apenas cierre en vela verde sin importar los pips que saque de ganancias puede ser que sea 1 pip o 10 o incluso salir en perdida, no importa 2. El TP para Sell sera apenas cierre en vela roja sin importar los pips
Sbhamu robot 50+ USD
The general robot trader is authorized with stock and strategies in market analysis. Robot trade profitable more income higher analysis and financial development and education management and management services and
I Need help from AI capable programmer to create a trade entering and managing system. I am today trading XAUUSD manually. I get my trading input from a signal provider. I get signals from this provider 5 to 7 times per day Same layout every time for this message that contains the signal. The signal is arriving to my telegram account, and I must set the trade at once if I want to follow from that trade-start
Forex trading market opening an account for the first time, modify you system of forex , always there for everyone,you are all welcome and for info on all platforms @ lil_johnny254 there to serve you
Looking for developers that have create and have advanced hedging ideas to add or create a new EA with. Looking for a method to get out of drawdown postions and push them to profit or breakeven. The end goal is to manage risk. Please send what you have to hire
There is a indicator in Trading View called MavilimW Ortalamalari by Kivanc fr3762. I need same indicator for MT4 as a Expert Adviser. It should work certain hours of the day and any timeframe. When the green candle closed above the 3 red lines I want to be in a long position with one target and stop loss automatically. It shouldn't take many trade until the first trade finish
I am looking to develop an Expert Advisor (EA) that offers advanced trading capabilities based on manually marked zones on MT4. The EA should be able to: Recognize manually marked zones using rectangular boxes (different colors for bullish and bearish zones). Execute trades based on specific entry types when price reaches these zones. Manage trades dynamically with features such as stop loss, take profit, breakeven
C onversion from Ninjatrader to Tradingview. This includes thorough testing and debugging to guarantee that the script functions as intended on Tradingview...If you are in for this job kindly bid
I need an urgent requirement by the developer who are able expert in designing the EA-Anil and can give best trailing result of profit in EA-Anil I am sending.Developer should design the best graphic user trader panel info, plus a buy sell input panel and should display trade result within 4-5 days of this development program
I’m looking for a developer that has understanding of scalping and HFT strategies that can make an algo that works for all brokers and prop firm LIVE accounts (like STP, ECN, DMA, Money Makers, NDD, Fast Server etc.,). I want someone that has understanding and insight in different scalping and HFT strategies, preferably something like momentum based strategies. The EA has to work on all Brokers and Prop firms like

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

Бюджет
110+ USD
Исполнителю
99 USD
Сроки выполнения
до 3 дн.