Download MetaTrader 5
To add comments, please log in or register
Enable MQL5 Storage to store your source codes. It is free!
Automated-Trading
Admin
88671
Automated-Trading 2010.07.26 13:27 

The "Night" Expert Advisor:

An Expert Advisor for trading during the night.

Thos Expert Advisor trades on EURUSD (M15), according the signals of Stochastic indicator. It uses a simple money management system.

Author: AM2


The Night Expert Advisor test results


jmfx
10
jmfx 2013.10.21 20:56  

Hello,

if(dt.hour>=21 || dt.hour<6)

 it does not work, the hours are not respected

when i run ea

 

Have you a solution ?

 

Thanks 

Alain Verleyen
Moderator
28672
Alain Verleyen 2013.10.21 21:16  
jmfx:

Hello,

if(dt.hour>=21 || dt.hour<6)

 it does not work, the hours are not respected

when i run ea

 

Have you a solution ?

 

Thanks 

What do you mean ?
jmfx
10
jmfx 2013.10.22 21:13  

I mean normally trades are open from 21h to 6h.
 And it is not verified, trades are 8am for example !

I want to add a filter with a time slot but it is not working.

I try to learn:

What is the best day of the week and what is the best time slot of the week for open trades?

Can you help me ?

Alain Verleyen
Moderator
28672
Alain Verleyen 2013.10.22 21:18  
jmfx:

I mean normally trades are open from 21h to 6h.
 And it is not verified, trades are 8am for example !

I want to add a filter with a time slot but it is not working.

I try to learn:

What is the best day of the week and what is the best time slot of the week for open trades?

Can you help me ?

I checked this EA, and it seems to me he opens trade between 21h and 6h. Are you aware that it's server time and not local time ?

Can you post a screenshot or logs to demonstrate this issue ?

Dua Yong Rew
5138
Dua Yong Rew 2013.10.26 09:30  
angevoyageur:
What do you mean ?
using || means hour 20 is also true
Alain Verleyen
Moderator
28672
Alain Verleyen 2013.10.26 10:19  
doshur:
using || means hour 20 is also true
Nope!
jmfx
10
jmfx 2013.11.01 14:34  

Hello,

Here my test. Look at any hours what are out of the range of time !

And the server time is no different of my clock. It's the same. 

Files:
Tester.zip 105 kb
Alain Verleyen
Moderator
28672
Alain Verleyen 2013.11.01 14:57  
jmfx:

Hello,

Here my test. Look at any hours what are out of the range of time !

And the server time is no different of my clock. It's the same. 

Do you know what a trade is ? all trades are opened between 21h and 6h in the report you posted. Sometimes they are closed outside this time range.
jmfx
10
jmfx 2013.11.01 16:45  

I am agree, I saw on the graphic, it's ok
but on the list, par example, order 5 open at 16:16

Did I miss something? 

Alain Verleyen
Moderator
28672
Alain Verleyen 2013.11.01 17:22  
jmfx:

I am agree, I saw on the graphic, it's ok
but on the list, par example, order 5 open at 16:16

Did I miss something? 

Order 5 resulted to a Buy deal, who closed the Sell position previously opened.
/ /12
To add comments, please log in or register