Trade Management EA

MQL4 Esperti

Lavoro terminato

Tempo di esecuzione 13 giorni
Feedback del cliente
Great programmer with interesting ideas on how to improve the implementation of original strategy

Specifiche

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. 

 

 

Con risposta

1
Sviluppatore 1
Valutazioni
(879)
Progetti
1393
67%
Arbitraggio
117
32% / 42%
In ritardo
215
15%
In elaborazione
2
Sviluppatore 2
Valutazioni
(52)
Progetti
133
44%
Arbitraggio
14
50% / 29%
In ritardo
55
41%
Gratuito
3
Sviluppatore 3
Valutazioni
(258)
Progetti
395
28%
Arbitraggio
69
19% / 49%
In ritardo
120
30%
Gratuito
4
Sviluppatore 4
Valutazioni
(46)
Progetti
73
16%
Arbitraggio
13
8% / 92%
In ritardo
37
51%
Gratuito
5
Sviluppatore 5
Valutazioni
(130)
Progetti
210
40%
Arbitraggio
90
20% / 43%
In ritardo
85
40%
Gratuito
6
Sviluppatore 6
Valutazioni
(25)
Progetti
54
37%
Arbitraggio
4
0% / 50%
In ritardo
22
41%
Gratuito
Ordini simili
EA based on RSI and MA 100 - 400 USD
Program is based on RSI and MA indicators dynamic as triggers, for Open/Close criteria. Runs automatically but inputs can be updated manually. It uses a GUI to manage it. Multi TF analysis. Log register of every operation for analysis (db) Open Source deliver. Kindly apply IF you have previous experience with trading and mql/python/c bot/algo developing. And if you have a good track record . ps: Better if you have a
This is and EPA (Entry Point Analyzer). Automatically analyzes the algorithm for XAU/USD and places a safe entry point mark for your trade. This has been tested and gives out 90% success rates
I am looking for an experienced MQL5 developer to help me finalize and optimize an Expert Advisor (EA) for the FTMO challenge. I have already built a significant portion of the code, but it requires further refinement and optimization to ensure it functions according to the trading strategy I intend to use. I am happy to share all the resources, including the current code, reference materials, and detailed
dreams good and have a great Cash out from your smart phone , tuyoywuiy glamorous flood see full idk idk slow so dolls stupid sis workouts who's spark koalas oral waits also doggo idk
I need a modification on my existing Ea if you can Can fixed risk management to lot size instead of percentage. don’t want strategic risk management input to be based on percentage Instead lot size. The strategic risk management function I need turned from percentage to lot based And I need sells and buys to have separate tps and sl options Budget:$100 Day: 1 day
I have developed a very strong TradingView strategy in Pine Script but unfortunately, a third-party connector is requiired and in my opinion, I want a more direct connection. I am not brilliant at coding, but I have coded the majority of the MT5 code and I would like you to make sure that the MT5 code matches my TradingView script and executes the same way as the TradingView script that I will provide if you are
I need to get a trading forex robot based on support and accurate resistance and moving avarage more details will be provided on the video links I want a situation where by once I put the robot on the chart and choose buy or sell and the number to open then it will only buy or sell in that particular direction only
NADGIO 30+ USD
I need a developer that can convert two Buy and Sell indicators into a trading robot. the indicators has an input parameter, this should be made available for adjustment. Features 1. Break Even 2. Trailing Stop 3. Global TP and SL 5. Time Filter 6. News Filter (If possible)
I need a developer who can convert trading view indicator in to mt5 expert advisor with some modifications. The other details will shared once chosen the developer. Looking for someone who has good knowledge of forex, mql5,and pine script
EA for index trading using ATR % of 5day 1 Give Average true range for the past 5 day so 5day ATR also for ref use the indicator "atr value indicator " my entries will be based on a % of this NO. NO. TO BE SHOWN IN TOP CORNER The Expert im looking for is 1.AT X TIME (ie 8:am ) 2.IF price moves X % of the 5 day atr( either up or down ) within Y TIME (IE 5MINUTES ) (if PRICE moves say 30% of the 5 day atr down i buy or

Informazioni sul progetto

Budget