MQL5 Forex EA based on candle properties

MQL5 Indicadores Experts Forex

Trabalho concluído

Tempo de execução 2 dias
Comentário do 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.
Comentário do desenvolvedor
Great specifications, constant and clear communication. A pleasure to work with.

Termos de Referência

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.


Arquivos anexados:

Respondido

1
Desenvolvedor 1
Classificação
(37)
Projetos
59
27%
Arbitragem
24
21% / 54%
Expirado
10
17%
Trabalhando
2
Desenvolvedor 2
Classificação
(7)
Projetos
6
0%
Arbitragem
5
0% / 100%
Expirado
1
17%
Livre
3
Desenvolvedor 3
Classificação
(64)
Projetos
93
37%
Arbitragem
11
27% / 45%
Expirado
14
15%
Livre
4
Desenvolvedor 4
Classificação
(2405)
Projetos
3019
65%
Arbitragem
77
47% / 14%
Expirado
340
11%
Trabalhando
5
Desenvolvedor 5
Classificação
(149)
Projetos
165
41%
Arbitragem
5
0% / 80%
Expirado
8
5%
Trabalhando
6
Desenvolvedor 6
Classificação
(14)
Projetos
24
50%
Arbitragem
0
Expirado
4
17%
Trabalhando
7
Desenvolvedor 7
Classificação
(45)
Projetos
67
45%
Arbitragem
3
0% / 100%
Expirado
0
Livre
8
Desenvolvedor 8
Classificação
(192)
Projetos
196
27%
Arbitragem
0
Expirado
3
2%
Livre
9
Desenvolvedor 9
Classificação
(2060)
Projetos
2617
61%
Arbitragem
113
45% / 26%
Expirado
418
16%
Ocupado
10
Desenvolvedor 10
Classificação
(433)
Projetos
491
33%
Arbitragem
25
40% / 48%
Expirado
7
1%
Carregado
11
Desenvolvedor 11
Classificação
(4)
Projetos
9
11%
Arbitragem
2
50% / 50%
Expirado
0
Livre
12
Desenvolvedor 12
Classificação
(251)
Projetos
402
38%
Arbitragem
82
41% / 20%
Expirado
70
17%
Carregado
13
Desenvolvedor 13
Classificação
(3)
Projetos
6
17%
Arbitragem
1
0% / 100%
Expirado
1
17%
Livre
14
Desenvolvedor 14
Classificação
(63)
Projetos
106
68%
Arbitragem
1
100% / 0%
Expirado
2
2%
Livre
15
Desenvolvedor 15
Classificação
(3)
Projetos
3
33%
Arbitragem
0
Expirado
0
Trabalhando
16
Desenvolvedor 16
Classificação
(262)
Projetos
536
50%
Arbitragem
55
40% / 36%
Expirado
224
42%
Trabalhando
17
Desenvolvedor 17
Classificação
(50)
Projetos
56
7%
Arbitragem
18
17% / 39%
Expirado
3
5%
Ocupado
18
Desenvolvedor 18
Classificação
(566)
Projetos
639
41%
Arbitragem
21
57% / 29%
Expirado
45
7%
Carregado
Pedidos semelhantes
Looking to create Ea virtual trailing stop based on ATR indicator multiplied + spread distance multiplied.Need to calculate average distance for multiple orders on same rules.Basement for trailing would be trailing only when order profit trailing distance reached.Additionaly i would like to have automatic switch over for higher timeframe trailing on same basement rules when higher timeframe reached necessary
PLEASE NOT THAT MY BUDGET IS 60usd FOR BOTH MT4 AND MT4 PLATFORMS The EA should have 1. An option that I can change it parameters, that's the period, method and application 2. The EA should sell when on every bullish candle that closes under the MA 3. The EA should buy on every bearish candle that forms Above the EA. It's should close trades on reverse cross. I mean when it's in a buy trade and crosses the MA for a
MT4 to Telegram 30 - 50 USD
Hello, I want to add a system send messages to Telegram Send a message with a specific picture and details of the new signal When closing with a profit, send the details of the closing and profit with a specific picture And close with a loss and send a specific picture, in addition to the details of the closure and the amount of the loss
Hi Dear developpers, I've an EA that was working very well with the previous versions of MT4. But since, they have updated their platforms, my EA it's not working anymore. I've tried to use those old MT4 versions but there are just temporary. So i've decided to updated this EA so i can use it on the newest version of MT4 (1420) and those who will come after it. I also want to implement new inputs in it. I also want
I will like the indicator to send notification to mobile when the indicator changes color and is increase upward when positive and decreasing downwards when negative including fisplaying arrows on the chart ,red for negative and green for positive
Hey greetings My pleasure to met you all .I would like to convert a public tradingview pinescript indicator to MT5 Expert Advisor based on my. Requirements/specification.Kindly bid and let discuss about the project
Please convert the Pine Script below into MQL4 Indicator: // @version= 5 // This source code is subject to the terms of the Mozilla Public License 2.0 at https://mozilla.org/MPL/2.0/ // © KivancOzbilgic //created by: @Anil_Ozeksi //developer: ANIL ÖZEKŞİ //author: @kivancozbilgic strategy ( 'Twin Optimized Trend Tracker' , 'TOTT' , overlay = true ) src = input ( close , title = 'Source' ) length = input.int ( 40
A robot 30 - 65 USD
Hi I am looking for developer who can make me Mt4 Ea i have 2types of analysis methods i want to add and also want to attach image with Ea like when i attach my to any currency pair the chart changes to my picture Of robot which i attached to my Ea and for proper all settings i want add i will tell u message me
hi.. i have a pin script (TV) but some lines in the code needs to be fixed,,, i will attach the file thanks very much in advance, Also there will be more project in front, so I need a very dedicated developer
I need an Expert Advisor that can read trade signals from a Telegram Channel and then execute those trades. My telegram bot has admin access to the Telegram Channel The EA needs the following functionality: Position Size: Auto: + Have fixed lot size set in settings. + Have lot size by % of account (set in settings) Manual: + From lot size set in trade signals message. + From lot size by % of account from trade

Informações sobre o projeto

Orçamento
110+ USD
Desenvolvedor
99 USD
Prazo
para 3 dias