[Archive!] Any rookie question, so as not to clutter up the forum. Professionals, don't pass it by. Couldn't go anywhere without you - 2. - page 354

 
Pyro:

I found an interesting thing - GlobalVariables are rewritten only after the tester is stopped (!!). I.e. there was a code, but GlobalVariables were not rewritten in gvariables.dat until the Expert Advisor was stopped. I don't know what it has to do with it,


it's related to MT4. it's like this. the gvariables file is only updated after exiting the terminal/tester.

 
Pyro:
UPD: The idea was to have both EAs working simultaneously in test mode and in trade mode. But it does not work correctly.

You will have to do it through your file.
And in order not to wipe a hole in your hard drive - use mapping.
 

sergeev

If you can, give me a link where I can read more about the mapping.

PS: THX for the answers!

 
Alexandr_nk:

http://www.alpari.ru/
and where does he have mt5 ?
 
Pyro:

sergeev

If you can, give me a link where I can read more about the mapping.

PS: THX for the answers!


http://msdn.microsoft.com/en-us/library/aa366781%28v=VS.85%29.aspx
 
Pyro:

If you can, please give me a link where I can find out more about mapping.

There is a ready-made library for MT4.
 
How does the advisor make out a confirmation signal, or rather give 5 seconds to receive it?
 

Zhunko


Merci, I'll be looking into it.


How do you guys know how to "kick" the EA? For example, if there is a long absence of ticks, I want to run a function, read some values or redraw graphical objects?

 
sergeev:

you speak very poorly of yourself... You have shown yourself in such a way that even I am sitting here wondering whether you should reply or not, and whether this reply will help you...
Thank you!
 
Pyro:

Zhunko

Merci, I'll be looking into it.

How do you guys know how to "kick" the EA? For example, if there is a long absence of ticks, I want to run a function, read some values or redraw graphical objects?

You need to loop it.