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
25
20% / 52%
Caducado
10
17%
Trabaja
2
Desarrollador 2
Evaluación
(7)
Proyectos
6
0%
Arbitraje
5
0% / 100%
Caducado
1
17%
Libre
3
Desarrollador 3
Evaluación
(64)
Proyectos
93
37%
Arbitraje
11
27% / 45%
Caducado
14
15%
Trabaja
4
Desarrollador 4
Evaluación
(2423)
Proyectos
3047
66%
Arbitraje
77
48% / 14%
Caducado
340
11%
Libre
5
Desarrollador 5
Evaluación
(156)
Proyectos
173
43%
Arbitraje
6
0% / 67%
Caducado
8
5%
Libre
6
Desarrollador 6
Evaluación
(15)
Proyectos
25
52%
Arbitraje
0
Caducado
4
16%
Trabaja
7
Desarrollador 7
Evaluación
(45)
Proyectos
67
45%
Arbitraje
3
0% / 100%
Caducado
0
Trabaja
8
Desarrollador 8
Evaluación
(197)
Proyectos
201
27%
Arbitraje
0
Caducado
3
1%
Libre
9
Desarrollador 9
Evaluación
(2080)
Proyectos
2641
61%
Arbitraje
113
45% / 26%
Caducado
418
16%
Trabaja
10
Desarrollador 10
Evaluación
(454)
Proyectos
513
33%
Arbitraje
25
40% / 48%
Caducado
7
1%
Trabajando
11
Desarrollador 11
Evaluación
(4)
Proyectos
9
11%
Arbitraje
2
50% / 50%
Caducado
0
Libre
12
Desarrollador 12
Evaluación
(253)
Proyectos
408
38%
Arbitraje
86
43% / 19%
Caducado
70
17%
Trabajando
13
Desarrollador 13
Evaluación
(3)
Proyectos
6
17%
Arbitraje
1
0% / 100%
Caducado
1
17%
Libre
14
Desarrollador 14
Evaluación
(63)
Proyectos
106
68%
Arbitraje
1
100% / 0%
Caducado
2
2%
Libre
15
Desarrollador 15
Evaluación
(3)
Proyectos
3
33%
Arbitraje
0
Caducado
0
Trabaja
16
Desarrollador 16
Evaluación
(265)
Proyectos
539
50%
Arbitraje
55
40% / 36%
Caducado
224
42%
Trabaja
17
Desarrollador 17
Evaluación
(52)
Proyectos
62
6%
Arbitraje
23
22% / 39%
Caducado
4
6%
Trabajando
18
Desarrollador 18
Evaluación
(568)
Proyectos
641
41%
Arbitraje
21
57% / 29%
Caducado
47
7%
Trabaja
Solicitudes similares
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

Información sobre el proyecto

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