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
(37)
Projects
59
27%
Arbitration
25
20% / 52%
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%
Working
4
Developer 4
Rating
(2423)
Projects
3047
66%
Arbitration
77
48% / 14%
Overdue
340
11%
Free
5
Developer 5
Rating
(156)
Projects
173
43%
Arbitration
6
0% / 67%
Overdue
8
5%
Free
6
Developer 6
Rating
(15)
Projects
25
52%
Arbitration
0
Overdue
4
16%
Working
7
Developer 7
Rating
(45)
Projects
67
45%
Arbitration
3
0% / 100%
Overdue
0
Working
8
Developer 8
Rating
(197)
Projects
201
27%
Arbitration
0
Overdue
3
1%
Free
9
Developer 9
Rating
(2080)
Projects
2641
61%
Arbitration
113
45% / 26%
Overdue
418
16%
Working
10
Developer 10
Rating
(454)
Projects
513
33%
Arbitration
25
40% / 48%
Overdue
7
1%
Loaded
11
Developer 11
Rating
(4)
Projects
9
11%
Arbitration
2
50% / 50%
Overdue
0
Free
12
Developer 12
Rating
(253)
Projects
408
38%
Arbitration
86
43% / 19%
Overdue
70
17%
Loaded
13
Developer 13
Rating
(3)
Projects
6
17%
Arbitration
1
0% / 100%
Overdue
1
17%
Free
14
Developer 14
Rating
(63)
Projects
106
68%
Arbitration
1
100% / 0%
Overdue
2
2%
Free
15
Developer 15
Rating
(3)
Projects
3
33%
Arbitration
0
Overdue
0
Working
16
Developer 16
Rating
(265)
Projects
539
50%
Arbitration
55
40% / 36%
Overdue
224
42%
Working
17
Developer 17
Rating
(52)
Projects
62
6%
Arbitration
23
22% / 39%
Overdue
4
6%
Loaded
18
Developer 18
Rating
(568)
Projects
641
41%
Arbitration
21
57% / 29%
Overdue
47
7%
Working
Similar orders
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
I'm looking for professional developer for my project.I'm having indicators source code , i want to convert it into MT4 EA .it is having some basic inputs such as lot size,TP,SL,B.E,trailing,News filter features along with some special inputs.detailed strategy will be discussed in chat room.i prefer Indian developers who speaks hindi

Project information

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