MQL5 Forex EA based on candle properties

MQL5 지표 전문가 Forex

작업 종료됨

실행 시간 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
등급
(2435)
프로젝트
3067
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)
프로젝트
70
44%
중재
3
0% / 100%
기한 초과
0
작업중
8
개발자 8
등급
(202)
프로젝트
206
27%
중재
0
기한 초과
3
1%
무료
9
개발자 9
등급
(2090)
프로젝트
2652
62%
중재
114
45% / 25%
기한 초과
419
16%
바쁜
10
개발자 10
등급
(472)
프로젝트
534
33%
중재
27
41% / 44%
기한 초과
8
1%
로드됨
11
개발자 11
등급
(4)
프로젝트
9
11%
중재
2
50% / 50%
기한 초과
0
무료
12
개발자 12
등급
(259)
프로젝트
420
38%
중재
86
44% / 19%
기한 초과
70
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
등급
(266)
프로젝트
540
50%
중재
55
40% / 36%
기한 초과
224
41%
작업중
17
개발자 17
등급
(56)
프로젝트
65
6%
중재
26
19% / 35%
기한 초과
4
6%
로드됨
18
개발자 18
등급
(568)
프로젝트
641
41%
중재
21
57% / 29%
기한 초과
47
7%
작업중
비슷한 주문
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

프로젝트 정보

예산
110+ USD
개발자에게
99 USD
기한
 3 일