Replace Pending Orders for an EA after restore

MQL4 Uzmanlar Komut dosyaları

İş tamamlandı

Tamamlanma süresi: 3 gün

İş Gereklilikleri

Hi

Is there any way to store any pending orders executed by an EA?  I'll explain further

If for example you have an EA that has placed several pending stop orders and the signal to delete/execute them has not been reached yet and you need to restore your computer for whatever reason,

or you need to delete pending orders manually for whatever reason to remove the EA and replace later. 


After the restore and installations I replace the EA on my chart but it will only execute the most recent signal and if it had 2  or more previous pending orders that are still valid, of course it won't replace them.


I'm thinking of some sort of script to run before deleting or restoring that will write any existing pending orders to a file and then maybe have a function in the init() of whatever EA I'm using that checks that file and replaces those orders for the EA to manage and trade. I can then go into that file and delete those orders that have already been placed. This is just a suggestion of an idea that might or might not be viable. I'm open to any suggestions that will make this work.


I hope I've made myself clear, if not please ask any questions for clarification. Code to be in English only.


As a caveat. Would also be good if I can actually manually place pending orders myself and then when I run this program you write,  it will also recognize the manually placed orders and stores them as well as the

EA pending orders.  When we restore the previous EA pending orders the EA will also restore recognize the manually entered trades. Hope this makes sense, as stated before ask any questions for clarification.


thx

Donskey

Yanıtlandı

1
Geliştirici 1
Derecelendirme
(508)
Projeler
976
74%
Arabuluculuk
27
19% / 67%
Süresi dolmuş
101
10%
Çalışıyor
Yayınlandı: 1 makale, 6 kod
2
Geliştirici 2
Derecelendirme
(73)
Projeler
257
53%
Arabuluculuk
16
50% / 38%
Süresi dolmuş
83
32%
Serbest
3
Geliştirici 3
Derecelendirme
(82)
Projeler
150
29%
Arabuluculuk
9
44% / 11%
Süresi dolmuş
46
31%
Serbest
4
Geliştirici 4
Derecelendirme
(195)
Projeler
395
28%
Arabuluculuk
155
20% / 52%
Süresi dolmuş
112
28%
Serbest
5
Geliştirici 5
Derecelendirme
(15)
Projeler
65
58%
Arabuluculuk
6
17% / 33%
Süresi dolmuş
39
60%
Serbest

Proje bilgisi

Bütçe
20 - 100 USD
Son teslim tarihi
from 1 to 5 gün