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

MQL4 Sripts

Trabajo finalizado

Plazo de ejecución 15 minutos
Comentario del Cliente
very fast! ty

Tarea técnica

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.



 

Archivos adjuntos:

Han respondido

2
Desarrollador 2
Evaluación
(879)
Proyectos
1393
67%
Arbitraje
117
32% / 42%
Caducado
215
15%
Trabaja
Solicitudes similares
I’m looking for someone experienced with Think or Swim to create a backtesting script for an in-the-money Iron Condor strategy using options on the SPX. The strategy involves setting up 10 contracts of an Iron Condor with a 10-point spread width and a net credit requirement of $11 per contract. The goal is to backtest the performance over the last three years, focusing on trades where the SPX closes outside a
I currently have a license code that connects to my web server, and I add the account number, client name, and expiration date. I’d like something more automated. Currently I allow clients 10 licenses, but adding for them on my side can get exhausting. I’d like a better solution for myself and clients

Información sobre el proyecto

Presupuesto
30+ USD
Para el ejecutor
27 USD
Plazo límite de ejecución
de 1 a 2 día(s)