SL removal / reinstatement

MQL4 Experts Scripts

Tâche terminée

Temps d'exécution 6 jours
Commentaires du client
Good developer. Thought I would give him a go. He definitely delivered and was patient throughout the whole process. Will use again. Thanks Reza.

Spécifications

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 

 



Répondu

1
Développeur 1
Évaluation
(624)
Projets
981
47%
Arbitrage
32
38% / 34%
En retard
96
10%
Travail
Publié : 6 codes
2
Développeur 2
Évaluation
(117)
Projets
138
41%
Arbitrage
30
7% / 77%
En retard
17
12%
Gratuit
3
Développeur 3
Évaluation
(11)
Projets
12
0%
Arbitrage
2
0% / 50%
En retard
1
8%
Gratuit
4
Développeur 4
Évaluation
(34)
Projets
80
34%
Arbitrage
13
31% / 54%
En retard
19
24%
Gratuit
5
Développeur 5
Évaluation
(97)
Projets
121
25%
Arbitrage
5
20% / 60%
En retard
17
14%
Gratuit

Informations sur le projet

Budget
10+ USD
Délais
de 1 à 5 jour(s)