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
124
40%
Arbitrage
17
47% / 53%
En retard
31
25%
Chargé
Commandes similaires
Job Title MT5 Developer Needed – Sync Data Feed Between Two MT5 Accounts Job Description I am a trader using multiple MT5 accounts and need a reliable way to have the same market data from one MT5 account reflected in another MT5 account. One account already has a stable and accurate data feed, and I want the second MT5 account to receive identical pricing and symbols for analysis and execution purposes. What I Need
im looking for a skilled coder who can modify my existing EA and indicator. I want a signal created when my custome indicators,( a channel and a few fiilters)align at certain conditions. The EA entry options are good as they are once a signal is produced, The main job is mainly on a differnt signal to be produced under different condttions, and an indicator which just draws an arrow along with channel for backtesting
Hello, I have a very simple TradingView (Pine Script) indicator that I want to be converted and implemented in ATAS . The logic is straightforward, with no complex calculations or strategy execution. I will provide the TradingView script and full explanation of how it works . What I Need: Convert the existing TradingView script logic to ATAS Ensure the indicator behaves the same way as on TradingView Clean
hello great developer We are looking for someone to create a Ninja Trader bot that can identify liquidity sweeps using lux algos indicator. once liquidity sweep occurs we need the bot to use the fibonnachi tool to idenfity the 61% level and 71% level. then enter the trade for us please check the video for better understanding Here is first video: https://youtu.be/ZaGZGNgzZlc?si=we3poeWB91nWqkz5 Here is Second video
I already have a preliminary economic calendar panel. I need to optimize it to add trading functions and UI elements. What I'm looking for is an interactive control panel for trading
Beschreibung: Ich suche einen erfahrenen MQL5-Entwickler, der meinen bestehenden Expert Advisor für MT5 fertigstellt und optimiert. Der EA basiert auf einer 30-Minuten-Breakout-Strategie für XAUUSD (Gold) und enthält bereits die Grundlogik sowie FTMO-Regeln (Tagesverlust, Gesamtverlust, Handelszeiten, Spread-Filter, Lotbegrenzung). Was gemacht werden muss: Code-Feinschliff und Debugging Überprüfung der Breakout-Logik
Greeting Im in need of a programmer that can help me convert from TOS to trading view? The script is available with me, kindly bid if it is what you can do for me Thanks
I need an MT4 Expert Advisor based on my existing manual trading system. PLATFORM: - MetaTrader 4 (MT4 only) TIMEFRAMES: - Main version: M30 entries with H1 structure - Second mode: M5 entries with M30 structure - Both modes should be inside ONE EA (switch by input) INDICATORS (already available on my chart as external indicators): 1) SuperTrend - ATR period: 10 - Multiplier: 1.7 2) XXSS Candle - Same settings
can you help me with I need an ATM strategy for NT8, here's the criteria: Forex trade entry 100,000 units with a starting SL of 70 pips. The following proft targets: 33 pips, 68, 125, 180. All targets exit 25,000 units each. As each target is hit, move SL to BE+5, then BE+35, then BE+70. So the SL's are fixed, not trailing. I can't figure this out on my platform
I need a robot advisory based on AOX signals. It must be the main criteria for opening and closing. The price should be higher than the previous bar Trades

Informations sur le projet

Budget
45+ USD