SL removal / reinstatement

MQL4 Uzmanlar Komut dosyaları

İş tamamlandı

Tamamlanma süresi: 6 gün
Müşteri tarafından geri bildirim
Good developer. Thought I would give him a go. He definitely delivered and was patient throughout the whole process. Will use again. Thanks Reza.

İş Gereklilikleri

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 

 



Yanıtlandı

1
Geliştirici 1
Derecelendirme
(626)
Projeler
986
47%
Arabuluculuk
33
36% / 36%
Süresi dolmuş
98
10%
Yüklendi
Yayınlandı: 6 kod
2
Geliştirici 2
Derecelendirme
(117)
Projeler
138
41%
Arabuluculuk
30
7% / 77%
Süresi dolmuş
17
12%
Serbest
3
Geliştirici 3
Derecelendirme
(11)
Projeler
12
0%
Arabuluculuk
2
0% / 50%
Süresi dolmuş
1
8%
Serbest
4
Geliştirici 4
Derecelendirme
(34)
Projeler
80
34%
Arabuluculuk
13
31% / 54%
Süresi dolmuş
19
24%
Serbest
5
Geliştirici 5
Derecelendirme
(97)
Projeler
121
25%
Arabuluculuk
5
20% / 60%
Süresi dolmuş
17
14%
Serbest

Proje bilgisi

Bütçe
10+ USD
Son teslim tarihi
from 1 to 5 gün