MT4 FUNCTION to Close Any Open Orders that Exceeds X% Loss or Y% Gain

MQL4 Komut dosyaları

İş tamamlandı

Tamamlanma süresi: 15 dakika
Müşteri tarafından geri bildirim
very fast! ty

İş Gereklilikleri

I'm looking for a simple function, similar in format to the attached image, that I can call to close any orders based on either a MaxLossPercent or MaxGainPercent , both variables will be user parameters.

For Example

extern double MaxLossPercent = 0.03;

extern double MaxGainPercent = 0.10;


Any open traders that equal or exceed either of these conditions will be closed by the script. Should include error checking and sleep()


These 2 values are calculated based on the *** current account value **  (i.e. 100 account * MaxLossPercent = $3.00 ) or 100 account * MaxGainPercent = $10.00 ).

If you bid, please specify your turn around time.



 

Dosyalar:

Yanıtlandı

2
Geliştirici 2
Derecelendirme
(885)
Projeler
1408
67%
Arabuluculuk
122
32% / 40%
Süresi dolmuş
216
15%
Çalışıyor
Yayınlandı: 1 kod
Benzer siparişler
Here is a brief requirement document for developing an MT5 Expert Advisor (EA) based on the provided UT Bot Alerts Pine Script : 📌 EA Requirement: UT Bot Alerts Strategy (MT5) 🔍 Strategy Overview This Expert Advisor will replicate the logic of the UT Bot Alerts TradingView indicator using ATR-based trailing stop logic and Heikin Ashi (optional) input for trade signals. It generates buy/sell signals based on price
This project is a self-optimizing, fully backtested algorithmic trading bot for XAUUSD (Gold) on the MetaTrader 5 platform. The bot utilizes a combination of technical and quantitative models to generate consistent monthly profits across different market sessions (Asian, London, US). Key features include: Market regime detection using Hidden Markov Models Multi-timeframe analysis for gold-specific patterns
I have my ea I lost ultimate set file I have old and I must adjust this for more stability and profitable I have ea and old set file profitable but no more stable
-Must check leverage XXXXXXX (0 means any leverage requirement) of the current instrument, (where i open chart) , or a instrument XXXXXX I specified for example if i put 0.05 which mean the leverage is 5% based on the instrument specification , it will check if it stay 0.05 or change. Example :If leverage requirements on the specification page change above 0.05 , the position will not open. -Check spread XXXXX(0 mean

Proje bilgisi

Bütçe
30+ USD
Geliştirici için
27 USD
Son teslim tarihi
from 1 to 2 gün