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

MQL4 Эксперты

Техническое задание

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

Откликнулись

1
Разработчик 1
Оценка
(8)
Проекты
18
17%
Арбитраж
3
67% / 0%
Просрочено
0
Свободен
2
Разработчик 2
Оценка
(55)
Проекты
96
40%
Арбитраж
13
38% / 62%
Просрочено
25
26%
Свободен
Похожие заказы
I need an expert advisor based on MACD and MA signals. It must have check and handling of trade operations errors. The main criteria for opening and closing positions: ◇Both Main and Signal direction must be shown by Arrows which is going to be for buy and sell positions
Need a programmer 30 - 50 USD
I am seeking an experienced MQL programmer to develop a custom Expert Advisor for MetaTrader 5. The project involves creating a trading strategy that stops trading after 2 consecutive losses until 6 AM the next day. The ideal candidate should have: - Proficiency in MQL5 programming. - Strong understanding of trading strategies and market analysis. - Experience with backtesting and optimizing trading algorithms. If
Trendline expert 40 - 200 USD
My project is to put my strategy on the VCrush indicator. I already have the indicator, I just need to add the entry methods, take and stop rules. There are 5 lines in total, when these lines are aligned, the robot makes the entry. Below are two images of what the buy and sell entries would look like with the lines aligned
Description of the ScriptThis script is designed for MetaTrader 4 (MT4) to execute a Buy order based on a re-entry strategy using the BBMA (Bollinger Bands Moving Average) approach. The main timeframe used is H1 (1-hour), and the script employs the Classic Bullish Engulfing pattern as a validation criterion before placing a Buy order.Key Components of the Script:Input Parameters:Lots: Defines the lot size for the
I need an expert to help me with adding more features to my existing mt4 EA I think the addition I want added to this EA is fairly simple--but I don't really understand how programming works, Contact me for a long term work, This is not the only project, I will explain the features in the inbox, Let me know if you can do it
Expert Advisor para operar no par XAU/USD no gráfico de 30 minutos, com as seguintes especificações: Indicadores : Utilize uma mídia móvel simples (SMA) de 72 períodos. Utilize o indicador Money Flow Index (MFI) com um período de 7. Inclui um indicador para marcar suporte e resistência nas últimas duas semanas no gráfico H4. Critérios de Operação : Venda : Execute uma ordem de venda se o preço se poupar no mínimo 800
EA Robot 30 - 500 USD
I Shawn Mametsa wants to creat a robot that will help a lot of people to make money through trading and become successful through trading I want to help those who want to trade but don’t know how to analyse the market
This is a simple Martingale based EA with RSI indicator used as buy/sell order conditions Mandatory Inputs: extern double TakeProfit = 120.0; // self explanatory for first order, for martingale orders it will adjust TP of all orders of the same type (buy / sell) to one, for example if an order opened at 100, 2nd opens at 105, the both of their tps will be at the same point, if an order is manually closed, it will
I need an expert advisor based on supply and demand zones. The zones should be identified automatically with tweakable parameters, but there should be also an option to input my own zones. I need the EA to have capability of opening market positions as well as pending orders. Other requirements: Martingale News filter Time filter Set expiry to zones, to prevent opening positions when price enters old zones
want to create a EA 1- break out candle ( T F customized) and customized SL TP 2- breakout fib zone 3- supertrend and candle stick patterns 4 Heikein Ashi and Renko charts

Информация о проекте

Бюджет
45+ USD
VAT (19%): 8.55 USD
Итого: 53.55 USD
Исполнителю
40.5 USD