MQL5 Forex EA based on candle properties

İş tamamlandı

Tamamlanma süresi: 2 gün
Müşteri tarafından geri bildirim
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.
Geliştirici tarafından geri bildirim
Great specifications, constant and clear communication. A pleasure to work with.

İş Gereklilikleri

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.


Dosyalar:

Yanıtlandı

1
Geliştirici 1
Derecelendirme
(37)
Projeler
59
27%
Arabuluculuk
25
20% / 52%
Süresi dolmuş
10
17%
Çalışıyor
2
Geliştirici 2
Derecelendirme
(7)
Projeler
6
0%
Arabuluculuk
5
0% / 100%
Süresi dolmuş
1
17%
Serbest
3
Geliştirici 3
Derecelendirme
(65)
Projeler
95
36%
Arabuluculuk
11
27% / 45%
Süresi dolmuş
14
15%
Serbest
4
Geliştirici 4
Derecelendirme
(2435)
Projeler
3067
66%
Arabuluculuk
77
48% / 14%
Süresi dolmuş
340
11%
Serbest
5
Geliştirici 5
Derecelendirme
(158)
Projeler
175
43%
Arabuluculuk
6
0% / 67%
Süresi dolmuş
8
5%
Serbest
6
Geliştirici 6
Derecelendirme
(16)
Projeler
25
52%
Arabuluculuk
1
0% / 0%
Süresi dolmuş
4
16%
Çalışıyor
7
Geliştirici 7
Derecelendirme
(47)
Projeler
70
44%
Arabuluculuk
3
0% / 100%
Süresi dolmuş
0
Çalışıyor
8
Geliştirici 8
Derecelendirme
(202)
Projeler
206
27%
Arabuluculuk
0
Süresi dolmuş
3
1%
Serbest
9
Geliştirici 9
Derecelendirme
(2090)
Projeler
2652
62%
Arabuluculuk
114
45% / 25%
Süresi dolmuş
419
16%
Meşgul
10
Geliştirici 10
Derecelendirme
(472)
Projeler
534
33%
Arabuluculuk
27
41% / 44%
Süresi dolmuş
8
1%
Yüklendi
11
Geliştirici 11
Derecelendirme
(4)
Projeler
9
11%
Arabuluculuk
2
50% / 50%
Süresi dolmuş
0
Serbest
12
Geliştirici 12
Derecelendirme
(259)
Projeler
420
38%
Arabuluculuk
86
44% / 19%
Süresi dolmuş
70
17%
Meşgul
13
Geliştirici 13
Derecelendirme
(3)
Projeler
6
17%
Arabuluculuk
1
0% / 100%
Süresi dolmuş
1
17%
Serbest
14
Geliştirici 14
Derecelendirme
(64)
Projeler
107
68%
Arabuluculuk
1
100% / 0%
Süresi dolmuş
2
2%
Serbest
15
Geliştirici 15
Derecelendirme
(3)
Projeler
3
33%
Arabuluculuk
0
Süresi dolmuş
0
Çalışıyor
16
Geliştirici 16
Derecelendirme
(266)
Projeler
540
50%
Arabuluculuk
55
40% / 36%
Süresi dolmuş
224
41%
Çalışıyor
17
Geliştirici 17
Derecelendirme
(56)
Projeler
65
6%
Arabuluculuk
26
19% / 35%
Süresi dolmuş
4
6%
Yüklendi
18
Geliştirici 18
Derecelendirme
(568)
Projeler
641
41%
Arabuluculuk
21
57% / 29%
Süresi dolmuş
47
7%
Çalışıyor
Benzer siparişler
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

Proje bilgisi

Bütçe
110+ USD
Geliştirici için
99 USD
Son teslim tarihi
to 3 gün