MQL5 Forex EA based on candle properties

MQL5 指标 专家 外汇

工作已完成

执行时间2 天
客户反馈
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.
员工反馈
Great specifications, constant and clear communication. A pleasure to work with.

指定

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.


附加的文件:

反馈

1
开发者 1
等级
(37)
项目
59
27%
仲裁
25
20% / 52%
逾期
10
17%
工作中
2
开发者 2
等级
(7)
项目
6
0%
仲裁
5
0% / 100%
逾期
1
17%
空闲
3
开发者 3
等级
(65)
项目
95
36%
仲裁
11
27% / 45%
逾期
14
15%
空闲
4
开发者 4
等级
(2444)
项目
3081
66%
仲裁
77
48% / 14%
逾期
340
11%
空闲
5
开发者 5
等级
(158)
项目
175
43%
仲裁
6
0% / 67%
逾期
8
5%
空闲
6
开发者 6
等级
(16)
项目
25
52%
仲裁
1
0% / 0%
逾期
4
16%
工作中
7
开发者 7
等级
(47)
项目
71
45%
仲裁
3
0% / 100%
逾期
0
工作中
8
开发者 8
等级
(204)
项目
209
28%
仲裁
0
逾期
3
1%
空闲
9
开发者 9
等级
(2106)
项目
2677
62%
仲裁
114
46% / 25%
逾期
420
16%
繁忙
10
开发者 10
等级
(489)
项目
558
33%
仲裁
27
44% / 44%
逾期
8
1%
已载入
11
开发者 11
等级
(4)
项目
9
11%
仲裁
2
50% / 50%
逾期
0
空闲
12
开发者 12
等级
(261)
项目
426
38%
仲裁
86
44% / 19%
逾期
71
17%
已载入
13
开发者 13
等级
(3)
项目
6
17%
仲裁
1
0% / 100%
逾期
1
17%
空闲
14
开发者 14
等级
(64)
项目
107
68%
仲裁
1
100% / 0%
逾期
2
2%
空闲
15
开发者 15
等级
(3)
项目
3
33%
仲裁
0
逾期
0
工作中
16
开发者 16
等级
(267)
项目
542
50%
仲裁
55
40% / 36%
逾期
225
42%
工作中
17
开发者 17
等级
(59)
项目
67
6%
仲裁
27
19% / 37%
逾期
5
7%
已载入
18
开发者 18
等级
(568)
项目
641
41%
仲裁
22
55% / 32%
逾期
47
7%
工作中
相似订单
Dear All, I need an RISK to REWARD Ratio expert advisor for top to bottom, support and resistance and order block strategy. If the developer has any good risk to reward strategy, I will apprecaite. Kindly provide me the EA, I will test it on my demo account fm- And the payment gets released upon the results The EA should also be able to give TRUE and honest back test results. The ea should work on all Major and Minor
Modify MT4 EA 30+ USD
Experienced developer needed to modify an EA that was coded incorrectly. The changes are rudimentary which should take an experienced developer a minimal amount of time to complete. This EA consist of common indicators with entry and exit instructions . The developer must exhibit strong ability to guarantee the STOP LOSS and TRAILING STOP are effective. Therefore, The indicators will be checked in the Strategy Tester
I need EA Expert Advisor bot , I need Trading pad or panel, for pending order only sells stops and buys stops with the TP points and SL points and lot size and price entry, I can provide you the image of a pad or panel
I have an existing Indicator that i want to add a license into, i have the source code also and i need it as fast as possible, there will be more projects like this to come if this is done well
I'd like mt4 indicators to be converted into trading bot, these indicators produces buy and sell signal I want them to be automatic bot that also have circles of which I know what they and I'll explain what must the bot analyze
Nt8 30+ USD
i'm searching a way to define which IP address is using by NT8 cause i'm using a multiple IPs machine (for my daily job) and I'd need to have a further confirmation that I'm using the correct IP address with NT8 could anyone explain explain me how to do it for a fee
CRT bot 30 - 50 USD
I want a programmer to program an expert advisor that will follow CRT trading strategy. Which spoting previous candle high and low, then wait for the either of the level to be sweep without the candle closing below the level enter a position at the spot and target opposing liquidity
I need a developer with FxDreema experience to build an MT5 EA that: Manages recovery zones with pending buy/sell orders. Implements trailing stops, pre-defined profit lines, and dynamic lot sizing. Supports money management based on account balance and lot size and money value. Offers options for continuous or stop trading. The developer must provide the source code and FxDreema link . More specific details will be
If you can deliver, you can bid your price. 1. Decompile the MT4/MT5 EA: - Decompile the provided .ex4 (for MT4) or .ex5 (for MT5) file into the original .mq4/.mq5 source code. - Ensure that the entire logic and functionality are preserved during decompilation. 2. Remove Expiration Limitations: - Locate and remove or bypass any code that imposes an expiration date or limits the usage of the bot. - Test to
I want to create a screener And I want a bridge which connect excess or trading pivot point camrilla r4 breakout with vwap When market open first 5 minutes candle should close above vwap and r4

项目信息

预算
110+ USD
开发人员
99 USD
截止日期
 3 天