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
評価
(467)
プロジェクト
701
56%
仲裁
44
30% / 32%
期限切れ
114
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
評価
(266)
プロジェクト
540
50%
仲裁
55
40% / 36%
期限切れ
224
41%
8
開発者 8
評価
(71)
プロジェクト
254
53%
仲裁
16
50% / 38%
期限切れ
83
33%
9
開発者 9
評価
プロジェクト
0
0%
仲裁
0
期限切れ
0
類似した注文
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

プロジェクト情報

予算
10 - 40 USD
VAT(付加価値税) (23%): 2.3 - 9.2 USD
合計: 12.3 - 49.2 USD
開発者用
9 - 36 USD
締め切り
最低 1 最高 7 日