Create EA based on candles price action MT5 or MT4

MQL5 Asesores Expertos

Tarea técnica

Hello Devs!

I like to create a new EA based on the below conditions:
(Please do not bid if you have no confidence of fulfilling the codes requirements. Thanks!)
You can code MT4 or MT5 or both depending on your preference.

1. Different Magic numbers for BUY and SELL

2. Add on time filter for each day individually.
Eg: Mon = 00:01-23:59, Tue = 01:00-23:30 etc. (Monday to Sunday)
True/false to close all trades at end of trading time of this filter for each day. Eg: Tue close all trades at 23:30 True/False, Thur close all trades at 23:30 True/False and so on.
This has to be coded in EA so that no need to disable autotrading.

3. Add on news filter based on forexfactory calendar, high/mid/low impact
Eg: News filter is coded into the EA and does NOT require to turn off autotrading.
Inputs = x mins before news, x mins after news
True/false to close all orders x mins before news

4. Enable/Disable Direction LONG/SHORT/BOTH (If BOTH, means can open both directions orders as long as conditions are met. Eg: even though currently have LONG positions, EA can open SHORT when conditions are met)

5. Enable/Disable Average direction movement index filter/Average direction movement index filter wilder in MT5.

6. Enable/Disable CCI filter


Method 1 (Limit order)

EA starts calculation on current candle (Number A1)
EA processes actions on next candle B2 close.

LONG
If candle B2 is green, checks if candle A1 is green or not
If candle A1 is green, on candle B2 (green) close, EA opens LONG limit order price @ candle B2 LOW/OPEN, TP at candle B2 HIGH/CLOSE (Options to select OHCL)
(Enable/disable check previous x number of candles of same direction consecutively)
(Enable/disable opening limit price based on % of candle B2 H-L or O-C, specify %) - When disabled, EA opens limit price, when enabled EA opens based on % of B2.
Enable/disable - If limit order is not activated after x number of candles, delete pending order.
Variable parameter = x number of candles to delete pending order after


A. Enable/Disable Invalidate DOJI candles. (Need to specify threshold value of doji candlestick. Max body % vs entire candle)
Fresh restart of candle count if DOJI candle found

B. Enable/Disable Invalidate candles less than x value (High value less Low value OR Open-Close value)
Fresh restart of candle count if low value candle found

C. TP is based on limit order price and not filled order price.

D. Plus or minus points from TP price = When enabled, I can add or minus points to the TP price, when disabled it is default to original TP.


E. Continuation of orders if TP is not reached.
Opening of 2nd continuation limit order based on the parameters below:
E1. Multiplier of the candlestick value (H-L or O-C) that triggered limit order for TP (If candle B2 value is 20pips, multiplier is 2, then EA will only be allowed to check conditions after 40pips)

E2. Average open prices of all open positions and Modify TP to Average TP price of all open positions.

If another order opens, it calculates average prices again.
Disable/Enable use of average TP
OR add on to TP by points from average open price
OR add on to TP by commission double multiplier number of trades (Eg: if commission value set is 5poins, and multiplier is 2, then add on 10points to existing TP)


Method 2: (Open on candle close) with spread filter and on this method only (if exceed spread, retry for a certain amount of time and if expires wait for next)
Instead of limit order, when conditions are met, open order only if candle C3 closes below candle B2 for LONG orders.
Enable open position on candle close instead of limit order when price closed below low of candle B2
TP is H-L/O-C value of candle B2 or add on points or multiplier of candle B2 H-L or O-C value
METHOD 1 and 2 cannot run simultaneously.


F. Enable/Disable Total max number of opened positions

G. Enable/Disable Daily Profit target in $ value

H. Enable/Disable Stop opening new orders after x number of closed trades that hit TP daily (Eg: when enabled, after hitting TP for 2 cycles stop opening new orders until next day)

If both G and H enabled, whichever comes first.


Initial Lot size = 0.01 example

Lot size Increment Method 

A. 1,1,2,3,4,5,6,7,8,......

B. Multiplier (add multiplier parameter)

C. Same as initial lot size

D. New lot size is based on sum of last 2 orders. Eg: A= initial lot size, B=0+A, C=A+B, D=B+C and so on

E. Step Lot size, step lot steps (1,1,1 is 3 steps then 2,2,2 then 3,3,3) , (1,1,1,1 is 4 steps and so on)


Please feel free to clarify any questions.

Thanks for reading!

Han respondido

1
Desarrollador 1
Evaluación
(187)
Proyectos
306
15%
Arbitraje
20
40% / 35%
Caducado
15
5%
Trabajando
2
Desarrollador 2
Evaluación
(5)
Proyectos
6
17%
Arbitraje
1
0% / 0%
Caducado
0
Trabaja
3
Desarrollador 3
Evaluación
(8)
Proyectos
18
17%
Arbitraje
3
67% / 0%
Caducado
0
Libre
4
Desarrollador 4
Evaluación
Proyectos
0
0%
Arbitraje
0
Caducado
0
Libre
5
Desarrollador 5
Evaluación
Proyectos
0
0%
Arbitraje
0
Caducado
0
Libre
6
Desarrollador 6
Evaluación
(90)
Proyectos
111
37%
Arbitraje
8
88% / 0%
Caducado
0
Trabaja
7
Desarrollador 7
Evaluación
Proyectos
0
0%
Arbitraje
0
Caducado
0
Libre
8
Desarrollador 8
Evaluación
(12)
Proyectos
15
40%
Arbitraje
2
50% / 50%
Caducado
0
Trabaja
9
Desarrollador 9
Evaluación
(41)
Proyectos
88
14%
Arbitraje
30
30% / 53%
Caducado
36
41%
Trabaja
10
Desarrollador 10
Evaluación
(1)
Proyectos
0
0%
Arbitraje
1
0% / 100%
Caducado
0
Libre
11
Desarrollador 11
Evaluación
(1)
Proyectos
1
0%
Arbitraje
0
Caducado
0
Trabaja
12
Desarrollador 12
Evaluación
(2423)
Proyectos
3046
66%
Arbitraje
77
48% / 14%
Caducado
340
11%
Libre
13
Desarrollador 13
Evaluación
(197)
Proyectos
201
27%
Arbitraje
0
Caducado
3
1%
Libre
14
Desarrollador 14
Evaluación
(68)
Proyectos
77
8%
Arbitraje
33
9% / 55%
Caducado
6
8%
Trabajando
15
Desarrollador 15
Evaluación
(265)
Proyectos
539
50%
Arbitraje
55
40% / 36%
Caducado
224
42%
Trabaja
16
Desarrollador 16
Evaluación
(58)
Proyectos
177
71%
Arbitraje
4
100% / 0%
Caducado
1
1%
Libre
Solicitudes similares
Hi, I would like to create an expert advisor to fully automatic trade in MT4 as below, it should be possible with gold or any currency pairs and need to possible with 2, 3, 4 or 5 after decimal quotes PAROL MA CROSSOVER 1. Magic Number : Customize 2. Take profit in points : Customize 3. Stop loss in points : Customize 4. Strat time in GMT : Customize 5. End time in GMT : Customize (It means no need to open a new
Hi. I will require a MT4 EA with 3 indcators for a specific time frame, certain parameters can be adjusted and should be able to automated trading. 1. RSI 2. EMA EA 3.Trading Volume . 4 & 5 digits can use 1.) 1 RSI . and 2 EMA ( cross over ) 1.1.) All different timeframe can use ( adjustable ). 1.2.) Entry pricing will need to meet at least 2 out of 3 indicators levels. 1.3.) Each indicators can be adjusted. 2.)
Need MT4 EA which will trade based on Round Number and Supertrend. Trading conditions: If buy supertrend is >= lower round number and <= the higher round number, EA will place a buy pending order at the higher round number. If sell supertrend is <= higher round number and >=lower round number, EA will place sell pending order at the lower round number. If the trade is exited because of SL/BE, EA will place another
Hi Everyone, I need a cloud based licensing system to protect my MT4 / MT5 Indicators and Expert advisors Secure an unlimited number of EAs, indicators, and scripts. Create and manage unlimited license keys for secured EAs, indicators, and scripts. Instantly suspend license keys in case of refund. Lock EA/indicator to specific accounts and time frame similar to this
I need a ea 50+ USD
I need an ea for my prop firm challenge 5000usd account. that can execute trade itself with 0.5R risk and at least 1:2 target.Not maximum drawdown 2-3% and can generate monthly return 10 to 20%
I need to convert the below Strategy from Trading view Pine Script to MQL5 EA which I can backtest and that can do algo trading. In the options I would like you to add: 1. Possibility to change Fastlenghth and slowlength, macdlength 2. Parameter: Trading direction: Both, Open only Longs or Open only Short, Lot size 3. Close the trade automatically (upon change of signals from long to short and vice versa) 4. I
Hi, i have a tos script i need converted to Ninja script, but someone who knows both coding. Cant be someone who is just going to paste into chat gpt, it requires more understanding for compatibility
I need an EA which takes confluence of 4 ema on 3 different time frame before taking a trade. Ea should have risk to reward option, option to add xyz pips above stoploss criteria in order to avoid hitting sl due to spreads. Customizable RR to cl9se trade partially when desired RR is reached. Also require source code to get future changes done
I need MT4 and MT5 hedging locker expert advisors that hedge existing trades either with pending or market order hedging trades. With pending hedge trades the entry price may optionally be made to trail the existing open orders. There should be option for a breakeven and trailing of the hedge trade’s stop
Hey Mql Community, Our Company need help creating and design a well automated forex ea for mt4 platform, This EA should based on the logic of an existing EA and the ideas we have in mind as a new features in the EA. Understand that We already have an EA that is working properly, we want to add a few details to it. We don’t have the source code just the ex.4 file, and as an expert specialist in the field we are

Información sobre el proyecto

Presupuesto
50 - 200 USD
Plazo límite de ejecución
de 1 a 10 día(s)

Cliente

Encargos realizados4
Número de arbitrajes0