Download MetaTrader 5
To add comments, please log in or register
Use MQL5 Cloud Network. It is secure!
Rubens Filho
53
Rubens Filho 2015.12.20 15:30 

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
4680
Marco vd Heijden 2015.12.20 15:40  
Let me grab my crystal ball hang on......
Rubens Filho
53
Rubens Filho 2015.12.20 18:11  
You know, the most helpful people are those who search for make something useful instead writing nonsense comments.
Snelle Moda
601
Snelle Moda 2015.12.20 18:31  

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 2015.12.20 20:00  

Well, a polite explanation as yours would be nice.

 

Thanks. 

Snelle Moda
601
Snelle Moda 2015.12.20 20:20  

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 2015.12.20 21:28  

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
7289
Sherif Hasan 2015.12.20 21:34  
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 2015.12.20 21:39  

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
4680
Marco vd Heijden 2015.12.20 21:40  

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
601
Snelle Moda 2015.12.20 21:46  

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