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
1410
67%
Arabuluculuk
123
32% / 41%
Süresi dolmuş
218
15%
Serbest
Yayınlandı: 1 kod
Benzer siparişler
Everytick Account 30 - 50 USD
ChatGPT said can do I want to make a symbol for XAUUSD (or other symbols) that can run on live, but it does not run by realtick, I need it run by everytick ---------------- I need to create a “synthetic symbol” (custom symbol) in MT4/MT5 with the following features: Realtime synthetic symbol The synthetic symbol must receive price data from a real symbol (e.g., XAUUSD, EURUSD…). Whenever the real symbol receives a
Wyckoff Spring EA Development Guide 📋 PROJECT OVERVIEW EA Concept: A sophisticated EURUSD trading robot based on Wyckoff Method principles, specifically detecting Spring & Upthrust patterns with advanced risk management and hedging capabilities. 🎯 CORE TRADING RULES 1. PATTERN DETECTION SYSTEM Spring Pattern (Long Entry): text CONDITIONS: 1. Identify Support Level (recent swing low) 2. Price breaks BELOW

Proje bilgisi

Bütçe
30+ USD
Son teslim tarihi
from 1 to 2 gün