Experts: TimeEA

 

TimeEA:

A Simple Expert Advisor The EA opens a position of the specified type at the time specified in the EA parameters. The position is closed at the time specified in the appropriate parameter.


Author: Scriptor

 
Opens a position of the specified type at the configured time.

On the first tick of the set time.

It should be understood that this EA is intended for training purposes and testing strategies.

I think you can speed it up considerably.

 
fxsaber:
On the first tick of the set time.
You are a man of letters :)
 
Artyom Trishkin:
You are a man of letters :)

After reading the description, I was sure that it was OnTimer. Just imagine how much more optimally it could have been written back then.

 
fxsaber:

After reading the description, I was sure that it was OnTimer. Just imagine how much more optimally it could have been written back then.

I can't see the code - from my mobile.
 
fxsaber:

After reading the description, I was sure that it was OnTimer. Just imagine how much more optimally it could have been written back then.

I looked at the code.

Why is there a timer there? The calculation of the required time is shown there just for educational purposes.

 
Artyom Trishkin:

Why is there a timer? It shows the calculation of the required time just for educational purposes.

If it is for training purposes, the code should be written optimally. Do profiling to see the advantages of such a time calculation.

You can't be careless about the speed of an EA! Why write a knowingly slow code?

 
fxsaber:

You want to fight for the purity of the kodobase? Well, well, well.

 
Andrey Khatimlianskii:

You want to fight for the purity of the kodobase? Well, well, well...

Not a single advisor from MQ in QB (I didn't look in the standard delivery). Strange situation. MQ keep emphasising the good speed performance of MT5, but it seems they haven't measured it. Perhaps that's why they allow posting slow code for educational purposes.


I would like to see the reference code from MQ. When there are no logical errors, algorithmic acceleration is impossible, the code is laid out, different types of orders are involved (not only markets), asynchronous sending of orders and their processing are shown, trading history and ticks are involved. At least for one symbol.

 

Tell me why the tester shows this error

1

 
It is not loaded from the library for some reason. And when trying to compile the code in the editor it gives an error.