MQL5 Forex EA based on candle properties

MQL5 Indicators Experts Forex

Job finished

Execution time 2 days
Feedback from customer
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.
Feedback from employee
Great specifications, constant and clear communication. A pleasure to work with.

Specification

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.


Files:

Responded

1
Developer 1
Rating
(36)
Projects
59
27%
Arbitration
24
21% / 50%
Overdue
10
17%
Working
2
Developer 2
Rating
(7)
Projects
6
0%
Arbitration
5
0% / 100%
Overdue
1
17%
Free
3
Developer 3
Rating
(64)
Projects
93
37%
Arbitration
11
27% / 45%
Overdue
14
15%
Free
4
Developer 4
Rating
(2391)
Projects
3001
65%
Arbitration
76
47% / 14%
Overdue
340
11%
Working
5
Developer 5
Rating
(145)
Projects
162
41%
Arbitration
5
0% / 80%
Overdue
8
5%
Working
6
Developer 6
Rating
(14)
Projects
24
50%
Arbitration
0
Overdue
4
17%
Working
7
Developer 7
Rating
(45)
Projects
67
45%
Arbitration
3
0% / 67%
Overdue
0
Working
8
Developer 8
Rating
(185)
Projects
191
27%
Arbitration
0
Overdue
3
2%
Free
9
Developer 9
Rating
(2052)
Projects
2607
62%
Arbitration
113
45% / 26%
Overdue
417
16%
Free
10
Developer 10
Rating
(423)
Projects
480
34%
Arbitration
24
42% / 46%
Overdue
6
1%
Busy
11
Developer 11
Rating
(4)
Projects
9
11%
Arbitration
2
50% / 50%
Overdue
0
Free
12
Developer 12
Rating
(251)
Projects
402
38%
Arbitration
82
41% / 20%
Overdue
70
17%
Working
13
Developer 13
Rating
(3)
Projects
6
17%
Arbitration
1
0% / 100%
Overdue
1
17%
Free
14
Developer 14
Rating
(60)
Projects
102
67%
Arbitration
1
100% / 0%
Overdue
2
2%
Loaded
15
Developer 15
Rating
(3)
Projects
3
33%
Arbitration
0
Overdue
0
Working
16
Developer 16
Rating
(261)
Projects
535
50%
Arbitration
54
41% / 37%
Overdue
224
42%
Working
17
Developer 17
Rating
(48)
Projects
53
8%
Arbitration
19
16% / 37%
Overdue
3
6%
Busy
18
Developer 18
Rating
(566)
Projects
639
41%
Arbitration
21
57% / 29%
Overdue
45
7%
Loaded
Similar orders
We are seeking a highly experienced Forex EA Developer for our MT4 platform. The ideal candidate must meet our following criteria: Language Proficiency: Must speak English fluently - no exceptions Must write in English proficiently - no exceptions Must understand English clearly - no exceptions Availability: Must work in the Eastern Standard Time (EST) zone Developer must be available full-time for this project with
Requirements All features of indicators, plus enter into trades (buy, sell) TP and SL according to the indicator [TP1 and TP2] Can make MT5 from MT4 indicator? Add trailing stop loss trading hours trading days Max spread Possibility of Multiple charts through one window Daily profit Target [yes/no]
hello... saya menginginkan EA GRID?AVERAGING dengan kondisi : > bisa meletakan sell&buy Limit pada nilai tertentu > bisa meletakkan sell&buy stop pada nilai tertentu > bisa melakukan order sell/buy limit/stop (sesuai setting) berdasarkan Nilai RSI > bisa membatasi jumlah order > ada fungsi TP dan SL > rangkuman hasil kerja EA selama mingguan terimakasih, semoga bisa bekerjasama dengan baik
I already have the EA completed. I just need to add 2 params and fix the feature (GV) to make sure that no order is missed for any reason. Maybe GV is not enough and need to add another feature
I want the trade to trigger anytime it sees the opportunity on all time frames, sl tp should be automated and all trades should be trigger anytime on cpi news and etc
Добрый день. Мне нужно создать сигнального бота. У меня есть индикатор на Trading View, который выделяет точку интереса - спрос/предложение. (но я в нем не уверен, подойдет ли он для робота, возможно такой индикатор нужно будет написать). Нужно чтоб все зоны были экстримальные, то есть, если произойдет пробитие зоны то менялся тренд. Как я торгую? Индикатор выделяет зону. Мне нужно увидеть подтверждение в пределах
hello. I want 12 csvs file contains the trading view historial candles data from 2000 to now in 1M timeframe for this symbols: Xagusd - OANDA Wticousd - OANDA Nas100usd - OANDA Spx500usd - OANDA Us30usd - OANDA Xptusd - OANDA J225usd - OANDA Btcusd - OANDA Ethusd - OANDA Uk100gbp - OANDA De30eur - OANDA Eu50eur - OANDA Collected data should be the exact data that trading view candles reports. not from
I need a trading bot 30 - 40 USD
I'm in need of a trading bot, based on 3 mt4 indicators, which are semafor alert, reversals and bluever.I want the signals produced by the indicators to be automated and run on mt5 platform, trade anything including synthetic indices and works on any time frame
Hi Dear Expert Developer, I want to make a Indicator as Candle pattern as below; 1.Inverted Hammer (Must as per My Drawing) with notification ( only H1,H4,DAY,WEEK time frame) if match with my drawing pattern 2.Hanging Man ( Must as per Drawing) with notification ( Only H1,H4, Day, Week time frame ) if match with my drawing pattern Example, I will apply this indicator on EURUSD H1 time frame and I have open only H1
I need someone to help me convert my tradingview pinescript to mt4, I only got $20 for this and I am gonna be giving you more works ahead, Also I will be paying with cryptocurrency cause my PayPal os not working here, Don't know why

Project information

Budget
110+ USD
For the developer
99 USD
Deadline
to 3 day(s)