MQL5 Forex EA based on candle properties

Trabajo finalizado

Plazo de ejecución 2 días
Comentario del Cliente
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.
Comentario del Ejecutor
Great specifications, constant and clear communication. A pleasure to work with.

Tarea técnica

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.


Archivos adjuntos:

Han respondido

1
Desarrollador 1
Evaluación
(37)
Proyectos
59
27%
Arbitraje
26
19% / 54%
Caducado
10
17%
Trabaja
Ha publicado: 1 ejemplo
2
Desarrollador 2
Evaluación
(7)
Proyectos
6
0%
Arbitraje
5
0% / 100%
Caducado
1
17%
Libre
3
Desarrollador 3
Evaluación
(67)
Proyectos
97
35%
Arbitraje
11
27% / 45%
Caducado
13
13%
Libre
4
Desarrollador 4
Evaluación
(2672)
Proyectos
3408
68%
Arbitraje
77
48% / 14%
Caducado
342
10%
Libre
Ha publicado: 1 ejemplo
5
Desarrollador 5
Evaluación
(171)
Proyectos
195
42%
Arbitraje
13
8% / 54%
Caducado
9
5%
Libre
Ha publicado: 3 ejemplos
6
Desarrollador 6
Evaluación
(16)
Proyectos
26
54%
Arbitraje
1
0% / 0%
Caducado
4
15%
Trabaja
Ha publicado: 3 ejemplos
7
Desarrollador 7
Evaluación
(59)
Proyectos
91
43%
Arbitraje
4
0% / 100%
Caducado
3
3%
Trabaja
8
Desarrollador 8
Evaluación
(258)
Proyectos
267
30%
Arbitraje
0
Caducado
3
1%
Trabaja
Ha publicado: 2 ejemplos
9
Desarrollador 9
Evaluación
(2336)
Proyectos
2939
63%
Arbitraje
124
44% / 26%
Caducado
429
15%
Trabaja
10
Desarrollador 10
Evaluación
(611)
Proyectos
711
33%
Arbitraje
45
49% / 42%
Caducado
14
2%
Trabaja
11
Desarrollador 11
Evaluación
(4)
Proyectos
9
11%
Arbitraje
2
50% / 50%
Caducado
0
Libre
12
Desarrollador 12
Evaluación
(298)
Proyectos
478
40%
Arbitraje
105
40% / 24%
Caducado
82
17%
Trabajando
Ha publicado: 2 ejemplos
13
Desarrollador 13
Evaluación
(3)
Proyectos
6
17%
Arbitraje
1
0% / 100%
Caducado
1
17%
Libre
14
Desarrollador 14
Evaluación
(68)
Proyectos
111
69%
Arbitraje
1
100% / 0%
Caducado
2
2%
Libre
15
Desarrollador 15
Evaluación
(3)
Proyectos
3
33%
Arbitraje
0
Caducado
0
Trabaja
Ha publicado: 1 ejemplo
16
Desarrollador 16
Evaluación
(271)
Proyectos
553
50%
Arbitraje
57
40% / 37%
Caducado
227
41%
Trabaja
17
Desarrollador 17
Evaluación
(75)
Proyectos
80
6%
Arbitraje
46
11% / 54%
Caducado
7
9%
Trabaja
18
Desarrollador 18
Evaluación
(568)
Proyectos
641
41%
Arbitraje
25
48% / 36%
Caducado
46
7%
Trabaja
Solicitudes similares
We are seeking an experienced MQL4/MQL5 programmer to develop a high-performance, fully automated Expert Advisor (EA). The bot must execute a sophisticated multi-currency hedging strategy across correlated forex pairs. Key Responsibilities Develop Multi-Currency Logic : Build an EA capable of scanning and trading multiple currency pairs simultaneously from a single chart or setup. Implement Hedging Strategy : Code
I need an experienced MQL5 developer to create an Expert Advisor (EA) based on the trading strategy demonstrated in my video. The EA should accurately follow the entry, exit, risk management, lot size, trailing stop-loss, take-profit, and trade management rules shown. Full source code, backtesting, bug fixing, and clear input settings are required. And it should have option for Buy and Sell, then Sell only, Buy only
I am looking for an experienced MetaTrader 5 expert. I already have 3 MT5 trading accounts. I need someone to: 1. Help me choose a reliable Windows VPS. 2. Connect to my VPS remotely (AnyDesk or TeamViewer). 3. Install 3 MetaTrader 5 terminals. 4. Configure: - 1 Master Account - 2 Slave Accounts 5. Install and configure a professional Trade Copier. 6. Copy all trades from the Master account to both Slave
Hi there developer, I need someone who can create an trading ea that place order in points using an. Vps with an stop loss in 2 point behind the order price automatically it close order in 1 point if the market reverse
I have an MT4 custom indicator (.ex4) that I use regularly, and I would like an identical MT5 version. Important: I do not have the source code (.mq4). I only have the compiled MT4 indicator. I am looking for an experienced MQL developer who can recreate the indicator's functionality and appearance for MT5 by analyzing its behavior. The MT5 version should match the MT4 version as closely as possible, including
Mac200 50+ USD
I need a Trend following Bot. Here we took entries by looking at two indicator which are 200 period ema and 12 26 9 MacD. Rules for entry exit are: Buy trade: When market is above 200 ema and MacD Line cross over the signal line and this cross over happened below the zero line of MacD indicator. We simply put Buy trade. Sell trade: When market is below 200 ema and MacD line crosses below the signal line and this
I I would like to create a trading robot based on 2 ema crossing. The robot is pretty simple, it should open buy position when fast ema cross slow ema and vise versa. Also it should use martingale after the loss position. It should has expiration period inside the code and alerts l
1. The general process is: Automated online forex marketing to find potential clients -> Answering potential clients' questions -> Converting them into actual clients -> Opening accounts, depositing funds, and copying trades. 2. Developers could implement an AI Digital Twin/Shadow Agent to answer customer questions, eliminating the need for me to answer customer inquiries. 3. I have a CTA website and I'm manually
Iconic Boy 300 - 400 USD
Am looking for a bot to trade .so that I can be able to trade and become very successful and make some profit so that I cannot sleep on a empty stomach
Hello Traders and Investors, I am a professional algorithmic trading developer specialized in building high-quality Expert Advisors (EAs), Indicators, Scripts, and Trade Management Tools for MetaTrader 4 and MetaTrader 5. With extensive experience in financial markets and trading automation, I can transform your trading ideas into reliable and efficient solutions with clean, optimized, and well-structured code. My

Información sobre el proyecto

Presupuesto
110+ USD
Plazo límite de ejecución
a 3 día(s)