MQL5 Forex EA based on candle properties

MQL5 Indicateurs Experts Forex

Tâche terminée

Temps d'exécution 2 jours
Commentaires du client
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.
Commentaires de l'employé
Great specifications, constant and clear communication. A pleasure to work with.

Spécifications

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.


Dossiers :

Répondu

1
Développeur 1
Évaluation
(37)
Projets
59
27%
Arbitrage
25
20% / 52%
En retard
10
17%
Travail
2
Développeur 2
Évaluation
(7)
Projets
6
0%
Arbitrage
5
0% / 100%
En retard
1
17%
Gratuit
3
Développeur 3
Évaluation
(65)
Projets
95
36%
Arbitrage
11
27% / 45%
En retard
14
15%
Gratuit
4
Développeur 4
Évaluation
(2435)
Projets
3067
66%
Arbitrage
77
48% / 14%
En retard
340
11%
Gratuit
5
Développeur 5
Évaluation
(158)
Projets
175
43%
Arbitrage
6
0% / 67%
En retard
8
5%
Gratuit
6
Développeur 6
Évaluation
(16)
Projets
25
52%
Arbitrage
1
0% / 0%
En retard
4
16%
Travail
7
Développeur 7
Évaluation
(47)
Projets
70
44%
Arbitrage
3
0% / 100%
En retard
0
Travail
8
Développeur 8
Évaluation
(202)
Projets
206
27%
Arbitrage
0
En retard
3
1%
Gratuit
9
Développeur 9
Évaluation
(2090)
Projets
2652
62%
Arbitrage
114
45% / 25%
En retard
419
16%
Occupé
10
Développeur 10
Évaluation
(472)
Projets
534
33%
Arbitrage
27
41% / 44%
En retard
8
1%
Chargé
11
Développeur 11
Évaluation
(4)
Projets
9
11%
Arbitrage
2
50% / 50%
En retard
0
Gratuit
12
Développeur 12
Évaluation
(259)
Projets
420
38%
Arbitrage
86
44% / 19%
En retard
70
17%
Occupé
13
Développeur 13
Évaluation
(3)
Projets
6
17%
Arbitrage
1
0% / 100%
En retard
1
17%
Gratuit
14
Développeur 14
Évaluation
(64)
Projets
107
68%
Arbitrage
1
100% / 0%
En retard
2
2%
Gratuit
15
Développeur 15
Évaluation
(3)
Projets
3
33%
Arbitrage
0
En retard
0
Travail
16
Développeur 16
Évaluation
(266)
Projets
540
50%
Arbitrage
55
40% / 36%
En retard
224
41%
Travail
17
Développeur 17
Évaluation
(56)
Projets
65
6%
Arbitrage
26
19% / 35%
En retard
4
6%
Chargé
18
Développeur 18
Évaluation
(568)
Projets
641
41%
Arbitrage
21
57% / 29%
En retard
47
7%
Travail
Commandes similaires
I am looking for a programmer to develop a an expert advisor that can trade signals from telegram. The signals format is Buy XAUUSD and Sell XAUAUD. I want the system to just submit the orders at market price instantly as soon it is received and manage the trades according to the following parameters; Also sample of telegram signal is attached. EA PARAMETERS Trading Time (GMT): This defines the specific time window
Location: Remote Employment Type:[Full-time/Part-time] About Us At Riskeys, we are transforming the trading experience with our state-of-the-art Smart Trading Keypad for MetaTrader 4/5. Our mission is to empower traders with innovative risk management tools, providing them with the speed, precision, and efficiency they need to succeed in today’s fast-paced financial markets. As we continue to push the boundaries of
hello programmers, I have a code from Pine language it is an indicator code, I need to convert it to Mql5. within the conversion process to EA i want to use that indicator as a signals which triggers the EA to open positions and optimize it to place TP,SL i will explain the buy signal and sell signal, I need to use also 2 Moving averages 20,50 as a buy and sell triggers once they cross. A long with it i will ask for
I am looking for a highly skilled and experienced developer who can assist with converting six Pine Script strategies into NinjaTrader. The goal is to seamlessly transition these scripts while preserving their original functionality and ensuring they operate efficiently on the NinjaTrader platform. If you have the expertise and are interested in this project, please reach out. I am looking forward to collaborating
Hi there new to this but need some assistance. I need someone to code a very simple indicator/EA (I don't know which one is going to be) with these specifications 1) I need the indicator to create a buffer line between the high and low of the printed candle, the high and low is based on the highest point or lowest point the candle has gone, not the close but the actual wick per say. 2) once the candle is created the
The EA should place take profit at the order opening price when X points of loss are reached, I already I have my own EA I just need a dev that ad what I ask previously to it, will be verry cool. Thanks
Hello, I am looking for a developer to reconstruct an indicator that is currently in an ex4 file into an mq4 file. The indicator provides buy and sell signals with entry points, Stop Loss, and TP1, TP2, and TP3. However, the indicator has some errors, and I would like to correct them. Unfortunately, since I only have the ex4 file, it's not possible to make these corrections directly. Therefore, I would like to
very simple rule buy rate 2 sl 1 if market reach 3 sl 2 market reach 4 sl 3 sl hit reverse trade open too with same 1:1 trail sl system if sl hit reverse trade open with same sl trail function 1 input open trade with buy or sell option 2 sl in pip .............xyz 3 lot size ............. xyz 4 distance from sl when sl trail one step [main point] Iam buying in rate of 2 my sl is 1 market reach 3 my sl is 2 market
Purpose: 1. The EA should catch the trend and follow it up or down. 2. The EA must use volitile and volume (strong money flow/ATR or ADX. Feel free to come up with suggestions for indicators we can use. 3. EA must have a minimal Draw down at 3-5% MT4 EA Inputs • Lot size = 0.1 • Use Dynamic Lots = true/false • Risk Percentage of your balance= 2% • Min Allowed Lot Decimals = 0.1 or 0.01 or 1 • SL pips = 100 • TP Pips
I’m looking for someone experienced with Think or Swim to create a backtesting script for an in-the-money Iron Condor strategy using options on the SPX. The strategy involves setting up 10 contracts of an Iron Condor with a 10-point spread width and a net credit requirement of $11 per contract. The goal is to backtest the performance over the last three years, focusing on trades where the SPX closes outside a

Informations sur le projet

Budget
110+ USD
Pour le développeur
99 USD
Délais
à 3 jour(s)