Download MetaTrader 5
To add comments, please log in or register
Add the thread to Favorites. Track the changes even faster!
Sven Hohmann
120
Sven Hohmann 2014.11.12 11:39 

Hello,

I  want to backtest just some hours of the day. My problem is:  I had a backtest with a pair and i increased the intervall and the trades grew. But than after a specific intervall the Trades were lesser than before despite the intervall was bigger.

What is the fault in this code?

Thx and greeting


extern double Sessionstart = 7;
extern double Sessionende = 19;  

H = TimeHour();

if((H > Sessionstart) && (H < Sessionende) && ....)

honest_knave
969
honest_knave 2014.11.12 11:41  
You need to give more details about "H"
Carl Schreiber
5957
Carl Schreiber 2014.11.12 13:01  
Fx90:

Hello,

I  want to backtest just some hours of the day. My problem is:  I had a backtest with a pair and i increased the intervall and the trades grew. But than after a specific intervall the Trades were lesser than before despite the intervall was bigger.

What is the fault in this code?

Thx and greeting


Do you consider the EU-DST and the different(!) USA-DST if this matters?
Sven Hohmann
120
Sven Hohmann 2014.11.12 19:21  
thx no, it doesnt matter.
/
To add comments, please log in or register