MQ4 Script " Script for Order Entry/Order Modification"

MQL4 Sripts

Trabajo finalizado

Plazo de ejecución 1 día
Comentario del Cliente
Excellent job. Highly recommended. Truly above expectation

Tarea técnica

Need to write a script for MT4 for

Concept: I make my order entry at specified levels (every 250 or 500 or 1000 pips), when I enter an order I normally cover a range of 2000 pips (so roughly 4 orders). I want to automate this activity so order entry is automated with pre-specified SL and TP

A)Order Entry:

- If I click above the current market price then it should by default make a buyStop order
- If I click below the current market price then it should by default make a sellStop order

Pre Click (Setting) variables:

- Lot size (ex. 1)
- Lot numbers (ex 0.1)
- Number of orders (4)

For Example:
If I click on EURUSD 1.12 then outcome will be:

1- BuyStop @1.12000, SL 1.10500 TP1.12500
2- BuyStop @1.12500, SL 1.10500 TP1.13000
3- BuyStop @1.13000, SL 1.10500 TP1.13500
4- BuyStop @1.13500, SL 1.10500 TP1.14000
Note: SL does not move in different orders

B)Order Modification:
- All orders should respond to mouse dragging
- If closest order to price is not triggered yet and is dragged to a new trigger point then all remaining orders should adjust accordingly

For Example:
If price is on EURUSD 1.12 then outcome will be:

1- Buy @1.12000, SL 1.10500 TP1.12500 (Cant change)
2- BuyStop @1.12500, SL 1.10500 TP1.13000
3- BuyStop @1.13000, SL 1.10500 TP1.13500
4- BuyStop @1.13500, SL 1.10500 TP1.14000

If I drag order 2 to 1.13000 then the following orders change to:
1- BuyStop @1.13000, SL 1.10500 TP1.13500
2- BuyStop @1.13500, SL 1.10500 TP1.14000
3- BuyStop @1.14000, SL 1.10500 TP1.14500

Han respondido

1
Desarrollador 1
Evaluación
(1928)
Proyectos
3548
88%
Arbitraje
73
40% / 15%
Caducado
268
8%
Libre
2
Desarrollador 2
Evaluación
(70)
Proyectos
86
31%
Arbitraje
1
100% / 0%
Caducado
1
1%
Libre

Información sobre el proyecto

Presupuesto
10 - 50 USD
Plazo límite de ejecución
de 1 a 3 día(s)