Terminal CloseAll open trades using a trailing stop to catch profits.

MQL5 Experts

Job finished

Execution time 19 hours
Feedback from customer
Really, really fast and did aspects of development that other developers find difficult. Top developer!
Feedback from employee
Clear and Detailed job specifications. Fast testing and confirmation. Best.

Specification

 

Outline

I just want a simple EA that closes all open trades on a terminal and shows the current input values (for the trigger level and trail) on the chart.  There should also be an emergency button to “Close All”.

If either of these trigger the Close All action, Algo trading on the terminal should be switched off.

I use a group of trending EA's that often collectively go into profit, only to watch the profit disappear when the trend retraces, usually hitting stop losses, so the profit becomes a loss.

So, I want to experiment with a trailing stop on the open profit and close all open trades.  Trading should then stop and Algo trading should be switched off.

It's like treating the complete portfolio of EA's as a single trade.

The EA should have two functions

1.       A profit Trail.

2.      An emergency “Close All” button to be used manually.

The Profit Trail

The EA should have inputs for:

Profit to trigger the trailing stop (just an integer).

The trail amount also just an integer.

So, the Input for the trigger amount might be 10 (using the currency of the terminal) so for me this would be £10.

Trail amount input might be 5 (£5)

If the overall profit of the collective trades on the terminal reaches 10 the trail will be triggered. If the profit figure falls back to 5, all trades should be closed and Algo trading switched off. Usually a trailing stop gets hit for an ordinary trade.  We live in hope and there should be no upper limit on the profit reached if it just keeps going in the right direction.

There should be a display on the chart, as below

Profit Trigger 10

Trail Profit 5

I tend to use a lot of EAs which may also have multiple trades each.  So for instance a single magic number could have more than 10 associated trades.

Over all there could be hundreds of open trades achieving small profits and losses. Hopefully net profit loss for this scenario.

The EA’s all have their own operating hours allowed.  So I want to be able to switch on Algo trading on the terminal and the EA’s will then pick up with new trades when their operating hours allow. I don’t want to have to go into each EA and set them back to trading again!

Emergency “Close All”

Clicking the button should close all open trades and switch off Algo trading on the terminal.

Display on Chart

Something very like this (See zipped word requirements for the suggested display)

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Commercial requirements

 

I have looked for something like this on the Metatrader Market but none of the ones that I have tried work properly.  Or others have had too much complexity added.

 

I want delivery of the ex5 file as well as the mq5.

 

Please be aware that I plan to give this away to friends of mine, if I think that it could add value and if they want it! 

 

Feel free to put your details somewhere on the chart (no larger than font size 16) and in the code.

 

Feel free to give this away on the Metatrader market but please don’t charge for it.  Treat it like a marketing giveaway.

 

 

Thanks

 

Ian Fraser


Files:

Responded

1
Developer 1
Rating
(74)
Projects
121
43%
Arbitration
12
33% / 50%
Overdue
17
14%
Free
2
Developer 2
Rating
(1)
Projects
1
0%
Arbitration
0
Overdue
0
Free
3
Developer 3
Rating
(368)
Projects
398
70%
Arbitration
3
100% / 0%
Overdue
2
1%
Loaded
4
Developer 4
Rating
(63)
Projects
84
26%
Arbitration
23
22% / 48%
Overdue
23
27%
Free
Similar orders
I need a simple panel to execute both buy and sell operations with very basic things like stopp loss take profit that functions for both market orders such as buy stop sell stop buy limit sell limit I don't care about colors or design I just want how you can do it what interests me most are the functions
I want to create an EA that can take bids according to information of a logic I have developed to give indication of a BUY or SELL opportunity. The EA will then be able to activate the BUY at the lowest possible position once the indicator clears it for a BUY and take bid upwards or identify the highest point and clears it for a SELL and take bids downwards. As you can see from example of JULY 2024 data to see how
We are seeking a skilled developer who can convert a Tradingview indicator written in Pinescript to a NinjaTrader indicator written in C#. The goal is to create a profitable trading strategy using this indicator. The successful candidate will have expertise in both Pinescript and C# programming languages, as well as a strong understanding of trading indicators and strategies. The main responsibilities will include
I am seeking an experienced MQL5 developer to create a user-friendly manual Grid Trading Expert Advisor (EA) with the following key features: Dynamic Grid Trading: Adjustable Grid Distance: Traders can manually input grid distance in pips via an intuitive, movable table. Take Profit Management: Fixed TP for the initial positions (e.g., first 5 trades). Stop-Loss (Optional): Traders can choose to use a stop-loss with
I want have the possibility to increase lotsize not alone by Lot-multiplier rather I want add a fix-lot increase for excample for 0,05 lot. I want have this for buy / sell and hedge-buy and hedge sell
Develop EA to track performance metrics of strategies I would like to develop an EA that will track the performance metrics of the strategies I have running on a terminal, If any of the metrics start to under perform then the EA/Indictor should alert me with a pop up alert that specify's the metric that has triggered the alert. The EA should also display the metrics in a dashboard - please see my example screen shot
I would like to modify the RSI Epert Avisor with a developer. I would like to use the RSI Expert on the inverse mode and the base setting doesnt conatain this strategy mode
Profitable EA HFT 50 - 300 USD
From a long time i am searching for a profitable EA i have lost a lot , and now i have only 300$ to buy a profitable EA , i wish to say with 0 losses but some or most traders they don't want to hear this i am really tired of searching for a programmer to just create me a profitable EA with the least losses or zero losses maybe nearly 1 year i am searching i just need an HFT EA that can work very well on MT4,MT5
I need help fixing my EA for MT5. It’s a very simple EA, and I currently cannot solve an issue where webrequest communicates with OpenAi API without error. Please only apply if you can help solve this issue
у нас есть стратегия, нам нужно написать mql5-код ​​для тестера стратегий МТ5,Цена договорная. Мой контакт @abbosaliyev из Telegram Программист должен знать РУССКИЙ ИЛИ УЗБЕКСКИЙ язык. Задание: разработать тестер, который использует шаблон условий на открытие и проверит весь исторический график на всех доступных таймфреймах. Остальная информация будет предоставлена ​​после согласования цены

Project information

Budget
30+ USD
VAT (23%): 6.9 USD
Total: 36.9 USD
For the developer
27 USD