MT4 robot/script that closes equal buy and sell lots of active trades while realizing a set loss.

MQL4 Experts

Specification

Hello 


Set up

I have an account that has a floating loss(eg -1000)

with 1 buy trade and several sell trades (or 1 sell trade and several buy trades)  with 

the t otal buy lots being the same or similar to sell lots.

(note the above are not conditions ,the EA has to check . Is information of when I am likely to use it so the bottom make more sense)


What the EA would do when it loads

 I want to specify a percentage of floating loss to be closed. 

eg : if floating profit is -1000  and I specify  30.   EA will close the necessary trades that would close trades with a loss of -300 and leave floating profit of -700 .

Conditions

1) The robot would have to close FIRST the trade that opened the FURTHEST away (does not matter if profit or loss) from current market price.

and proceed in that order when closing trades.

2) The same number of buy lots as well as sell lots have to close during this. 

Hence every time some lots buy close ,the equivalent sell lots have to close 


Notes:

-Some trades would close with partial lots. 

-Some trades would close with profit/some with loss.


So the EA will have to calculate the correct lot sizes for both directions to achieve the 30% reduction(variable) in floating loss while closing the same number of lots for each.


Regards

Responded

1
Developer 1
Rating
(8)
Projects
18
17%
Arbitration
3
67% / 0%
Overdue
0
Free
2
Developer 2
Rating
(55)
Projects
96
40%
Arbitration
13
38% / 62%
Overdue
25
26%
Free
Similar orders
Additions 1. Trailing by points is available, add trailing by money 2. Once certain DD is reached hedge with opposite positions, close all positions of one side [buy or sell] when they are in profit by say 5 points and start martingale to close the other side of trades by summing up all open trade quantities and opening the same quantity at the same time of closing profitable trades of one side following changes
Hi I need a experience programmer to build me 1 harmonic pattern EA scanner that send alert with arrow on screen without open trades Multiple times frame M15 H1 H4 D1 W1 MN multiple currency pairs and i want to see all historical patterns that already happened
The specifications cover 4 requests: 1- Addition of a Trailing Take Profit function 2- Addition of a function to calculate the distance according to a decreasing mode (20, 15, 10, 5...pips) 3- Addition of a function Global Profit decrement /increment size in pourcentage 4- E rror s correction in coding
i want an mt4 indicator Daily Opening Price (24 Range Horizontal Line) : Calculate the daily opening price based on the 24-hour range. Display this price as a horizontal line on the chart. Color the line green. 7:30 AM EST Opening Price (Orange Line) : Determine the opening price at 7:30 AM EST. Display this price as a horizontal line on the chart. Color the line orange. High and Low of the London Session (Blue
Can you convert my tradingview indicator into a mt4 ea ? Indicator called ut bot alerts on tradingview Its open script already Will my ea have same settings for the indicator as in the indicator version on tradingview ? And I need trailing input added Daily equity protector as well Also for inputs I need option for it to close existing trade when opposite confirmed Also input for time schedule to trade Like New York
Hello, I need a professional programmer to help me design an EA that can be able to take trades towards a market direction with accurate prediction. This EA should be able to identify the market trend direction and take multiple trades towards the direction and also able to close the trades together when market wants to reverse at the best profit level. The input at the beginning will be for the EA to be input with a
Hello, I have EA's which were previously developed that are not running correctly and giving errors. Need an experienced MQL developer to fix all issues as well as add some new settings. Thanks
Looking for a developer to create an MT4 indicator and an EA / Robot. Indicator-based strategy consisting of several moving averages, PSAR Indicator and Pinescript indicator called Coral Trend Indicator by LazyBear (pinescript source code will be provided and will need converting to MT4 code - 34 lines of code). Strategy to be an intra-day trading period on 5-minute timeframe for the European session but “Trading”
Need a simple EA That opens a long position if the MA cross up above another MA and opens a short position if the MA cross down below another MA . - The EA should only allow for one position to be open at any given time. It should close the current position if it is going to open a new position. - I want to have option to input for a lot size, a stop loss, take profit, and an input for total profit/loss USD - I want
Pls good people my budget is $50 . I have choch indicator I want to use it for my strategy but the ea will have two options the second option will base on manual example I will do my analysis of a pair then decide if buy or sell before putting those pairs in the ea base on the direction I choose for it but first option will make use of the indicator. Will explain better on video screen pls check my attachments below

Project information

Budget
45+ USD
VAT (19%): 8.55 USD
Total: 53.55 USD
For the developer
40.5 USD