SL removal / reinstatement

MQL4 Esperti Script

Lavoro terminato

Tempo di esecuzione 6 giorni
Feedback del cliente
Good developer. Thought I would give him a go. He definitely delivered and was patient throughout the whole process. Will use again. Thanks Reza.

Specifiche

Problem: Spread jumps at role over hitting stops due to massive spreads.

I need a script or EA to:

* runs at a particular time: say hour (23) and Minute (57)

* records current stop losses of all trades (if any) and writes to buffer/file
* removes all stop losses from trades

*script stays active until input time of Hour (00) and minute (05) reads buffer/file and reinstates stop loss values onto the orders previously recorded (if any).
*if SL reinstatement fails, then retries X minutes later.

*Sleeps until activation time above.

 Variables:

Start hour

Start minute

Finish Hour

Finish Minute

SL distance change 

Remove SL: true/false 

Notifications: true/false (sends notifications to MQID device to inform that the SLs have been removed, and then again for when the SLs have been replaced.) 

 

and anything else you can think of?

 ************************

I have realised that you don't need to REMOVE the SL, you can make it very big instead. i.e. It might be easier, to:

if order = sell then, read current SL, add 200 pips to CURRENT SL to obtain the new SL... at finish time, remove 200pips from the new SL to get back to the original distance.

If order = buy then, read current SL, remove 200pips to current SL  to obtain the new SL... at finish time, add back on the 200pips from the new SL to get back to the original distance.

************************ 

The EA/script MUST NOT interfere with the magic numbers associated with the orders that are being modified. 

Thanks 

 



Con risposta

1
Sviluppatore 1
Valutazioni
(624)
Progetti
981
47%
Arbitraggio
32
38% / 34%
In ritardo
96
10%
In elaborazione
Pubblicati: 6 codici
2
Sviluppatore 2
Valutazioni
(117)
Progetti
138
41%
Arbitraggio
30
7% / 77%
In ritardo
17
12%
Gratuito
3
Sviluppatore 3
Valutazioni
(11)
Progetti
12
0%
Arbitraggio
2
0% / 50%
In ritardo
1
8%
Gratuito
4
Sviluppatore 4
Valutazioni
(34)
Progetti
80
34%
Arbitraggio
13
31% / 54%
In ritardo
19
24%
Gratuito
5
Sviluppatore 5
Valutazioni
(97)
Progetti
121
25%
Arbitraggio
5
20% / 60%
In ritardo
17
14%
Gratuito

Informazioni sul progetto

Budget
10+ USD
Scadenze
da 1 a 5 giorno(i)