Need help with time filter - page 2

 
Yeah so the code works
hour()>=4 && hour()<=5
I believe strategy tester was acting buggy! lol it placed the trade @ 6+am as I stated above .. the next trade came at 7:00am, which was not taken. Do you guys have varied results with using strategy tester? I am still testing, demo + strategy tester.
 
zzdream:
Yeah so the code works I believe strategy tester was acting buggy! lol it placed the trade @ 6+am as I stated above .. the next trade came at 7:00am, which was not taken. Do you guys have varied results with using strategy tester? I am still testing, demo + strategy tester.
So what did Hour() return when the trade was placed at 6+am ? can you check the log file and find out please.
 
Sure will post the log entry later tonight 'est'. When I get a chance.
 
There is the log entry:

19:13:23 2013.02.05 06:01 15mindemo GBPJPY,M15: Hour() returns: 6 current time is : 2013.02.05 06:01
19:13:23 2013.02.05 06:02 15mindemo GBPJPY,M15: Hour() returns: 6 current time is : 2013.02.05 06:02
19:13:23 2013.02.05 06:02 15mindemo GBPJPY,M15: open #1 sell 1.00 GBPJPY at 145.425 ok
19:13:23 2013.02.05 06:02 15mindemo GBPJPY,M15: modify #1 sell 1.00 GBPJPY at 145.425 sl: 145.625 tp: 115.425 ok
19:13:23 2013.02.05 06:02 15mindemo GBPJPY,M15: Hour() returns: 6 current time is : 2013.02.05 06:02
 
zzdream:
There is the log entry:

19:13:23 2013.02.05 06:01 15mindemo GBPJPY,M15: Hour() returns: 6 current time is : 2013.02.05 06:01
19:13:23 2013.02.05 06:02 15mindemo GBPJPY,M15: Hour() returns: 6 current time is : 2013.02.05 06:02
19:13:23 2013.02.05 06:02 15mindemo GBPJPY,M15: open #1 sell 1.00 GBPJPY at 145.425 ok
19:13:23 2013.02.05 06:02 15mindemo GBPJPY,M15: modify #1 sell 1.00 GBPJPY at 145.425 sl: 145.625 tp: 115.425 ok
19:13:23 2013.02.05 06:02 15mindemo GBPJPY,M15: Hour() returns: 6 current time is : 2013.02.05 06:02
So Hour() is correct, so your code has problems elsewhere . . .
 
Possibly, but as I stated before strategy test was acting 'buggy'. It took this trade & but bypassed another @ 7am.
Reason: