Expert Advisor - Order Management

MQL4 전문가

작업 종료됨

실행 시간 2 일
고객의 피드백
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!
피고용인의 피드백
Great Customer. Clearly requirment, fast test and fast payment. Hope work with him again. thank for all.

명시

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.

응답함

1
개발자 1
등급
(466)
프로젝트
697
56%
중재
43
30% / 33%
기한 초과
113
16%
작업중
2
개발자 2
등급
(182)
프로젝트
342
42%
중재
118
12% / 73%
기한 초과
104
30%
무료
3
개발자 3
등급
(118)
프로젝트
201
42%
중재
44
9% / 68%
기한 초과
47
23%
무료
4
개발자 4
등급
(62)
프로젝트
140
46%
중재
19
42% / 16%
기한 초과
32
23%
무료
5
개발자 5
등급
(90)
프로젝트
159
61%
중재
40
18% / 63%
기한 초과
70
44%
무료
6
개발자 6
등급
(54)
프로젝트
164
43%
중재
43
47% / 16%
기한 초과
58
35%
무료
7
개발자 7
등급
(264)
프로젝트
538
50%
중재
55
40% / 36%
기한 초과
224
42%
작업중
8
개발자 8
등급
(71)
프로젝트
254
53%
중재
16
50% / 38%
기한 초과
83
33%
무료
9
개발자 9
등급
프로젝트
0
0%
중재
0
기한 초과
0
무료
비슷한 주문
p.p1 {margin: 0.0px 0.0px 0.0px 0.0px; font: 13.0px 'Helvetica Neue'} Hello Looking for someone to help me improve my current strategy on my own algorithm and to also add hedging mode
I want the script in mql5 language for my martingale strategy. The script should open trades in both directions buy and sell and if any trade closes in loss then open new trade in that direction by using the next volume and when trade closes in profit then reset the volume to first from volume list and also maximum consecutive losses limit will apply. If trades closes consecutively in losses and hits the limit then
Long Position 1. Trend Line: When a Lower High (LH) is formed, draw a trend line from the previous Higher High (HH) to the new LH. 2. Trend Line Adjustment: If a new Lower High (LH) is formed without breaking the trend line, redraw the trend line to the new LH. Draw a trend line between the Higher High (HH) and the Higher Low (HL). If a new Higher High (HH) is formed, remove the previous trend line and draw a new one
Please watch the video on this youtube channel and download the Indicator from there. https://www.youtube.com/watch?v=ldTomLu8DxE&amp ;t=32s Rules are explained on the video and the download of the indicator is on the same video
I would like an EA that follows exactly this steps to trade de daily candle. Watch the video and then see if you can do the task. https://www.youtube.com/watch?v=g3oDYq4P9ZE Document is one this link https://cdn.discordapp.com/attachments/1135977927469703230/1135978751461695598/Daily_Bias-TTrades_edu.pdf?ex=669a9a27&amp ;is=669948a7&hm=96de195f7e695a381c1261b065f67b94fae319d02a0c88641b146f8b2978320c& Should have
I have a custom EA that works fine in the live market trading, but when doing a back test in the strategy tester , it does not open sell orders. There are no errors or warnings; it just doesn't open sell orders. I've checked every possible reason that might be the reason why it does not open sell orders, but I can't find anything, especially since it works fine in the real market and it opens both buys and sells
Hi, I have an indicator from my friend, I want to copy it to my own MT5 can you do that for me. Here is the link
I installed the E.A. into the Experts folder in MT4. When I double click on it nothing happens. When I right click and "attach to chart" nothing happens. The E.A. is not grayed out, it simply will not attach. Any help would be greatly Appreciated
I have an EA and want to add few new logic to fetch profit taking factors and other values from an external master data and use it in existing EA
Hello Every one, Good day, I want from someone professional to create an EA is working on Mt5, This EA is working by depend on some indicators, and all those indicators must be working on MACD window, not on the chart, for more details please read my attached pdf file carefully. Many Thanks

프로젝트 정보

예산
10 - 40 USD
VAT (23%): 2.3 - 9.2 USD
총: 12.3 - 49.2 USD
개발자에게
9 - 36 USD
기한
에서 1  7 일