Expert Advisor - Order Management

MQL4 Esperti

Lavoro terminato

Tempo di esecuzione 2 giorni
Feedback del cliente
Very professional. He sent a very detailed video of the EA, highlighting all my requirements. He worked very fast to fix a few details according to my needs. Highly recommended!
Feedback del dipendente
Great Customer. Clearly requirment, fast test and fast payment. Hope work with him again. thank for all.

Specifiche

I have a robot that always opens two trades simultaneously, with the same signal.

The stop loss is the same for both trades. The first trade is given a take profit and the 2nd trade doesn't have a take profit.
When the first trades reaches the take profit, it closes. At the same time, the 2nd trade moves the stop loss to breakeven.

If a certain condition happens meanwhile, both trades are closed.
Otherwise, if the first trade is already closed, the 2nd trade is closed when that condition appears.


TO DO:

  • Work with 4 and 5 digit brokers.
  • Move Stop Loss to breakeven on the 2nd order when price reaches a certain condition, or if first trade closed due to hitting take profit.
  • If certain condition happens before price reaches TP or SL, close both trades. Otherwise, if the first trade is already closed, the 2nd trade is closed when that condition appears.
  • For each signal, open only the two trades, even if the conditions that triggered the trade remain active. Only open a new set of trades in the next valid signal.
  • Check if the both trades really opened. If one the trades didn't open, retry next tick.
  • Open lot size based on percentage of balance (based on stop loss amount).

- If the lot size is odd, like 0.07, it'll round to the nearest, smaller, even number: 0.06 (and divide by 2, opening 0.03 for each trade).
- If the account does not have enough money for the risk percentage, open smaller lots. In extreme case (account is too small for the risk), open 0.01 for each of the two trades, but still, open the trades.
- If the account only accepts mini lots and not micro lots, and it cannot open the trades based on the risk, show error to user.

Example:
stop loss: 50 pips
balance: 1000
risk percentage: 2%

lot size: ((1000 * 0.02) / 50) / 10 = 0.04 lots. Each of the two trades will open with 0.02 lots.

 

Notes:

I have attached the current mq4 file. It doesn't work well and the entry/exit conditions are random, but it's only for you to get an idea.

I am only interested in the trade management part of the EA, as I'll write the entry conditions myself.

Con risposta

1
Sviluppatore 1
Valutazioni
(467)
Progetti
701
56%
Arbitraggio
44
30% / 32%
In ritardo
114
16%
In elaborazione
2
Sviluppatore 2
Valutazioni
(182)
Progetti
342
42%
Arbitraggio
118
12% / 73%
In ritardo
104
30%
Gratuito
3
Sviluppatore 3
Valutazioni
(118)
Progetti
201
42%
Arbitraggio
44
9% / 68%
In ritardo
47
23%
Gratuito
4
Sviluppatore 4
Valutazioni
(62)
Progetti
140
46%
Arbitraggio
19
42% / 16%
In ritardo
32
23%
Gratuito
5
Sviluppatore 5
Valutazioni
(90)
Progetti
159
61%
Arbitraggio
40
18% / 63%
In ritardo
70
44%
Gratuito
6
Sviluppatore 6
Valutazioni
(54)
Progetti
164
43%
Arbitraggio
43
47% / 16%
In ritardo
58
35%
Gratuito
7
Sviluppatore 7
Valutazioni
(266)
Progetti
540
50%
Arbitraggio
55
40% / 36%
In ritardo
224
41%
Gratuito
8
Sviluppatore 8
Valutazioni
(71)
Progetti
254
53%
Arbitraggio
16
50% / 38%
In ritardo
83
33%
Gratuito
9
Sviluppatore 9
Valutazioni
Progetti
0
0%
Arbitraggio
0
In ritardo
0
Gratuito
Ordini simili
Hi There, my name is Jordan and I’m based in Australia. I’m looking to get an EA developed through freelance work and I’ve outlined some rough details of the intended EA, which is a similar concept to an existing EA by Andrii Hurin called “Time Range Sweep EA”. There are quite a lot of similarities to the reference EA and these include: · Trade on any market and instrument or on several pairs at the same time
Hello, Looking to create an arbitrage EA for MT5. The EA will run on two local MT5 instances (ex. 2 different accounts) and keep track of a certain pair price every 10 seconds. The EA will send data from instance #1 to instance #2 and vice versa. The EA will execute trades on the two accounts if a set of conditions are met. Apply if you have the experience and knowledge
I have an algo that is running on ProRealTime, they have their own language. It is a simple strategy with 5 conditions + SL/TP settings, very basic. I need someone that can convert or just create a functional MT5 algo (EA) from these conditions for me, if you do a good job I have around 10+ more algos that need to be transferred to MT5
Creating of an expert advisor or trading bot that uses a Top Down analysis (using monthly, weekly, daily, hourly, minutes ( 30, 15, 5, 1) to determine trade direction or trend direction and makes multiple trade decisions for mt4. You can use or combine accurate trend indicators. Posted earlier
Dear Developers, I would have a very simple request. I have a ML model developed in Python for EURUSD daily trading. I would like to backtest it in Meta Trader 5 using the Strategy Tester tool. For that I would need an Expert Advisor program. The input would be a csv file that contains two columns: - dates (going back for a few years on a daily basis) - trading signal (it can have only 2 values, either 1: Buy, or -1
Good day i will need a developer to create an EA for me using existing trading view indicator .The EA will open after the indicator has given signal and will close if altenate signal comes.The trading view indicator will be shared and improvement is welcome
Creating of an expert advisor or trading bot that uses a Top Down analysis (using monthly, weekly, daily, hourly, minutes ( 30, 15, 5, 1) to determine trade direction or trend direction and makes multiple trade decisions for mt4. You can use or combine accurate trend indicators
Creating of an expert advisor or trading bot that uses a Top Down analysis (using monthly, weekly, daily, hourly, minutes ( 30, 15, 5, 1) to determine trade direction or trend direction and makes multiple trade decisions for mt4. You can use or combine accurate trend indicators
Hello The EA will work on particular zone choose by the user and can mark it on any TF and with some rules can open trades and mange the trade by some unique rules. the EA need to check the difference by RSI as well and with some extra rules . developer should have good attitude and good communication (englsih) with high performence and knowledge with coding EA
I am looking forward to automate my trading strategy where I use renko bars on Tradingview. I really want to use unirenkos too, but unfortunately I couldn't figure out how to use ninjatrader on my MacBook and Tradingview does not offer unirenkos. As far as I see from your offered services you are very familiar with ninjatrader. I wanted to ask you if you could code me an Indicator for unirenkos for Tradingview so I

Informazioni sul progetto

Budget
10 - 40 USD
IVA (23%): 2.3 - 9.2 USD
Totale: 12.3 - 49.2 USD
Per lo sviluppatore
9 - 36 USD
Scadenze
da 1 a 7 giorno(i)