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

MQL4 Experts

Spécifications

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

Répondu

1
Développeur 1
Évaluation
(9)
Projets
19
16%
Arbitrage
3
67% / 0%
En retard
0
Gratuit
2
Développeur 2
Évaluation
(68)
Projets
127
41%
Arbitrage
19
47% / 53%
En retard
33
26%
Gratuit
Commandes similaires
Gold Scalper EA MT5 30 - 50 USD
Forex Simple EA Overview: Current Price → XX pips above = Buy Stop | XX pips below = Sell Stop → One order triggers → Delete opposite order → Maximum 1 position → Trade closes → Start a new cycle. Features Automatic Buy and Sell trading Stop Loss and Take Profit Trailing Stop Risk Management Spread Filter On-Chart Trading Dashboard Easy to install, simple to configure, and suitable for demo and live trading
1. PROJECT OVERVIEW Development of a custom automated and manual trading bot for NinjaTrader 8, primarily designed for Nasdaq Futures (NQ/MNQ). The bot will contain the original trading strategy, configurable risk management, automatic and manual operating modes, alerts, profit/loss management, partial profit taking, Break Even, backtesting functionality, and the additional configurable contract-averaging system
Overview I am seeking an experienced MQL5/MetaTrader 5 developer to build an automated trading system for Deriv MT5, emphasizing Deriv Volatility Indices with additional support for Forex, Gold, and Oil. Scope of work - Develop a custom MQL5 trading system for Deriv MT5 - Implement liquidity and market-structure analysis - Enable automated execution with Deriv Volatility Index support - Incorporate multi-timeframe
Hello, I have a custom indicator with a specific line. Logic I want: 1. When a candle closes and crosses the indicator line (I will tell you the buffer number of this line), start counting. 2. After the cross, wait for 3 consecutive candles with the same color / same direction. 3. If the 3 candles are bullish, open a BUY trade on the next candle open. 4. If the 3 candles are bearish, open a SELL trade on the
I’m looking for an experienced developer to help me build a forex trading performance tracking platform similar in concept to Myfxbook and FX Blue, but with a much cleaner, more modern UI and additional AI-powered features. The platform will be built as a SaaS product where users can sign up, connect their MT5 trading accounts, and track their trading performance through an easy-to-understand dashboard. The first
Require an EA that opens trades at preselected RSI values. The EA will then monitor the gain/loss of the open positions and close them as specified in terms of points gain/loss. Once a position closes, the action will trigger the opening of other positions as specified
Hi, Darijo ArbMarket is building a decentralized, non-custodial prediction market protocol on Arbitrum — think Polymarket, but Arbitrum-native from day one, with plans for ARB-denominated markets and Arbitrum ecosystem grant/incentive integration
To apply, you must already have your EA running on an active MT5 trading account connected to the market. The account must have genuine trading history that can be independently reviewed and verified. EA Requirements 1. Prop-Firm Compatible Risk Management - The EA must include daily and overall drawdown protection. - Required inputs: "MaxDailyLoss = 5%" "MaxTotalDrawdown = 10%" - Once either limit is
Look at this chart. The ellipses that I have identified show reversals and liquidity was I am trying to find a good way to identify these areas an indicator that automatically detects the sweep and reversal Look at this chart. The ellipses that I have identified show reversals and liquidity was
Subject: EA Requirements for Prop Firm Trading - Live MT5 + Investor Access Required* To apply, you must already have the EA running live on an MT5 account connected to the market. You will need to provide the investor password and login for me to trace and monitor the account. *EA Requirements:* 1. *One trade at a time only* - EA must not open a new position if one is already running. Use `OrdersTotal() == 0` check

Informations sur le projet

Budget
45+ USD