Trade Management EA

MQL4 Uzman Danışmanlar

İş tamamlandı

Tamamlanma süresi: 13 gün
Müşteri tarafından geri bildirim
Great programmer with interesting ideas on how to improve the implementation of original strategy

İş Gereklilikleri

Hi,

I need to program the following trade management EA.

Trade methodology 

Please refer to the attachment with 2 Excel files for the illustration of the trade logic

Here is a specific example for illustration of a 3-level order scenario. This can be replicated (as necessary) when more levels are triggered: 

1) Level 1 trade - Place SELL stop ("Type of order") for [2.0] ("Starting lot") lots of USDJPY at [106.50] ("Price")

2)  When Level 1 pending order is placed, set Target Profit at [5] pips ("Level 1 TP")

When Level 1 trade is triggered 

3) When Level 1 trade is triggered, immediately place Level 2 BUY trade (opposite side as the Level 1 trade) [20] pips away ("Range"), i.e. BUY stop at [106.70] with a total of 2.0 + [2.0] ("Lot increment") = 4.0 lots.

4) Compute the new price that will allow both Level 1 & Level 2 trades to close at Breakeven + [x] pips profit ("TP of higher levels"), taking into consideration the commissions of all the trades ("Commissions per 1 standard lot"). 

5) Suppose this price is [106.95]. Set the TP of Level 2 trade to 106.95 and SL of Level 1 trade to 106.95 + [0.05] ("Bid-Ask Spread") = 106.955

When Level 2 trade is triggered

6)  When Level 2 trade is triggered, immediately place Level 3 Sell trade (opposite side as the Level 2 trade) [20] pips away, i.e. Sell stop at [106.50] with a total of 4.0 + [2.0] ("Lot increment") = 6.0 lots.

4) Compute the new price that will allow Level 1, 2 and 3 trades to close at Breakeven + [x] pips profit ("TP of higher levels"), taking into consideration the commissions of all the trades ("Commissions per 1 standard lot"). 

5) Suppose this price is [106.25]. Set the TP of Level 1 and 3 trades to 106.25 + [0.05]  ("Bid-Ask Spread")= 106.255. Set the SL of Level 2 Buy trade to 106.25. At this point, DO NOT adjust the TP of the Level 2 trade or the SL of the Level 1 trade yet as we need the market to move towards 106.95 price & hopefully, not trigger level 3 trade.

6) Cancel the pending order when the whole series of trades closes. 

In summary, every time a new level is triggered, the next level of trade is immediately placed as a pending stop order. At this time, the next level trade TP is set and the SL of the existing trades that are in the opposite direction as the pending stop order are set to be the same as the next level TP (with bid-ask spread adjustment). 

EA parameters

The EA should contain the following parameters for user input. These have been highlighted in bold in the above description

1) Price. User to set the price for the EA to place the order.

2) Type of order (Stop orders or Limit orders). Thus, if 106.50 is the Price set by the user and the current market price is above 106.50 and the user chooses LIMIT order, then the EA places a BUY LIMIT order at 106.50.  If Stop order is chosen, then the EA places a SELL stop order at 106.50

3) Starting Lot (Set default to 2.0)

4) Level 1 TP (Set default to 5.0 pips)

5) Range (Set default to 20 pips)

6) Lot increment (Set default to 2.0 lots). This means for each level, the EA will add 2.0 lots to the previous lot size. In the default case, it shall be in 2,4,6,8,10,12... sequence

7)  TP of higher levels (Set default to 2.0 pips) The EA needs to replicate the "GoalSeek" function in Excel to find breakeven price for the whole batch of trades. It should first round off to the nearest 5 decimal places for non-JPY pair & nearest 3 decimal places for JPY pairs for the breakeven price. Then, it should add the appropriate 2 pips to this breakeven price. This is assumed to be the "Bid" price and used to adjust the TPs/SLs of all BUY orders.

8) Commissions per 1 standard lot. The computation should take into account the commissions incurred by all the trades

9) Bid - Ask Spread (Set default to 1.0 pip). The computation should also take into account the assumed bid-ask spread. This bid-ask spread is used to adjust the SLs or TPs of all SELL orders (i.e. Bid Price + Bid-Ask spread).   

The EA should automatically close the higher level pending order when the current series of trades is closed. 

It should also have unique magic numbers for the series of trades. The user should be allowed to open another chart of the same pair to trade another price level by changing the magic number. The EA should prompt the user if the magic number is not changed and there are still existing trades of the same pair managed by the EA.

The EA should also be able to resume managing the same series of trades if the MT4 terminal is shut down and re-started after an interruption or after the weekend. 

 

 

Dosyalar:

Yanıtlandı

1
Geliştirici 1
Derecelendirme
(879)
Projeler
1394
67%
Arabuluculuk
117
32% / 42%
Süresi dolmuş
215
15%
Serbest
2
Geliştirici 2
Derecelendirme
(52)
Projeler
133
44%
Arabuluculuk
14
50% / 29%
Süresi dolmuş
55
41%
Serbest
3
Geliştirici 3
Derecelendirme
(258)
Projeler
395
28%
Arabuluculuk
69
19% / 49%
Süresi dolmuş
120
30%
Serbest
4
Geliştirici 4
Derecelendirme
(46)
Projeler
73
16%
Arabuluculuk
13
8% / 92%
Süresi dolmuş
37
51%
Serbest
5
Geliştirici 5
Derecelendirme
(130)
Projeler
210
40%
Arabuluculuk
90
20% / 43%
Süresi dolmuş
85
40%
Serbest
6
Geliştirici 6
Derecelendirme
(25)
Projeler
54
37%
Arabuluculuk
4
0% / 50%
Süresi dolmuş
22
41%
Serbest
Benzer siparişler
I need someone who can code a new EA from scratch and also know how to integrate AI into the EA and use AI and market sentiments along with news to then open positions. I have the description of the job ready. Need someone serious, with experience and who will help optimize the current strategy with their expertise. Thanks
I’m looking for an experienced MQL5 developer to create a custom Break of Structure (BoS) Indicator for MetaTrader 5. This indicator should automatically detect and mark key market structure breakpoints in real-time, offering traders clear visual signals when the market experiences a structural shift. The indicator should include the following features: Automatic detection of Break of Structure (BoS) and Change of
I need someone who can make an expert advisor for me using the high and low of certain sessions or time frames. All orders should be market orders It's based on high and lows (LONGS) When a session low is created I wait until the 14 ema crosses above the 20 ema for comfirmation of going long, and I enter when price touches on the 14 ema. My SL automatically is placed on the session low. (SHORTS) When a session high
Pls I need help I don’t have much but pls accept my little payment for the work thanks 🙏 mt5 file Once it opens buy and move positively to buy let it use auto trailing to follow the trend that’s if I choose to use trailing option and before the trailing starts it must reach the actual profit target example if I set profit target to 500 then once profit is at 500 let trailing immediately protect it and any 1 pip
I need a tested and profitable EA. I don’t want backtested EA but real live tested. At least, 5~10 % per month. Name your price!!! I also have a backtested EA that can’t make profit at the end of the month
Hello my developer colleagues, am also a developer like you but i just hear about this mql site and i will like to sell, develop and build bots for buyer. But i don't know how to become a seller here please i need help in helping me to create a seller account on mql and i will be very glad if you can help me out and i will appreciate you
Preciso de um EA que abra ordens a mercado a partir de um indicador, Ele precisa obter take e stop loss fixos, spread máximo, horários de início e final das operações, meta e stop diário, martingale, painel e a função no script para que eu possa ceder o EA apartir do id do mt4 de terceiros
Hello Investors, I'm selling a profitable and stable expert advisor trading on the Gold (XAUUSD) pair using a cutting-edge scalping strategy. The EA is able to generate a stable monthly income without using martingale strategy, and with an optional cut loss in place. Particularly the average monthly gain can go from 2-3% (at a relatively low risk, with an historical max DD of 6%) to 20-30% (with an aggressive style
Atomic Analyst Indicator to EA. I have an mt4 indicator called Atomic Analyst. The indicator gives buy/sell signals as shown in the screenshot. I want to know if you can take this indicator, and create an EA that automatically takes the signals. The indicator puts in the SL and TP1, TP2, TP3, TP4, TP5 automatically. I would like the option to put in my lot size parameter and I would also like an automatic trail stop
can you help me with Ctrader i need modification on the linkhttps://docs.google.com/document/d/1fggk49xWbnwahtfOlE-U7G6muZB1FT8eWmftGiY7R-s/edit?usp=sharing can you assist with cTrader modifications to enhance functionality and improve performance. do text me if you a professional on it i will be looking forward to your response best regards

Proje bilgisi

Bütçe