Expert Advisors: The "Night" Expert Advisor

 

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


 

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 

 
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 ?
 

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 ?

 
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 ?

 
angevoyageur:
What do you mean ?
using || means hour 20 is also true
 
doshur:
using || means hour 20 is also true
Nope!
 

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
 
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.
 

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? 

 
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.
Reason: