Download MetaTrader 5

Order Delay

To add comments, please log in or register
Rubens Filho
53
Rubens Filho  

Hello all,

 

 My E.A. stars to openning orders with 30, 40 points after the bar opened making drastic results at the end.

At the first, it was functionally correct but now isn't.

Someone know if is a normal programming issue or something else ?

 

 

Thanks. 

Marco vd Heijden
Moderator
6060
Marco vd Heijden  
Let me grab my crystal ball hang on......
Rubens Filho
53
Rubens Filho  
You know, the most helpful people are those who search for make something useful instead writing nonsense comments.
Snelle Moda
650
Snelle Moda  

No. Marco is right.


He means, we can only help you if you post the part of your code where the problem is.

Without code, we can't help you.


Unless we use Marco's crystal ball.

Rubens Filho
53
Rubens Filho  

Well, a polite explanation as yours would be nice.

 

Thanks. 

Snelle Moda
650
Snelle Moda  

Which valuta pair(s) do you trade?

Is it a spread issue?  (wide spead due to exotic forex pairs)

Or do you trade the Majors?

Do you have a screenshot or a piece of code?

Rubens Filho
53
Rubens Filho  

It's EUR/USD but the curious thing is: It wasn't happened before. Starts at the third or forth run in examinator.

 

Sherif Hasan
7418
Sherif Hasan  
Rubens Filho:

It's EUR/USD but the curious thing is: It wasn't happened before. Starts at the third or forth run in examinator.

 

may be broker's spread and slippage for delay in orders.

sometimes (especially news time) brokers spread and slippage is curious. spread can be upto 3-4 times huge than normal spread.

but you must re check your code too!

Rubens Filho
53
Rubens Filho  

Thanks but, I can't see how it can happen after gave me rightous results.

I've cleared off history base and downloaded new data, re-installed meta and nothing changed. 

Marco vd Heijden
Moderator
6060
Marco vd Heijden  

Okay let's give it a try,


Ahhhh Yes, I can see it too...

Unfortunately,

Snelle Moda:

Without code, we can't help you.

Snelle Moda
650
Snelle Moda  

I see it!!! your EA is only responding after an 1 minute interval.


Check if your EA is responding after a complete BAR or after the start of a new BAR.


If you haven't changed your code. than the only cause are the settings in de backtester.

Are you using "open prices only"? Try Every tick or 1 minute ohlc.




Your comment was: "My E.A. starts to opening orders with 30, 40 points"

Are these 30 a 40 points or pips? 3 a 4 pips can be a spread problem, see the post of Hassan.

12
To add comments, please log in or register