Intraday Time filter

Alain Verleyen  
dummy:

Hi

I want to know where I can learn more about different settings  for intraday timefilter  in mql5 wizard.

What should be my settings  if I want to trade  during 00.06 hrs to 22.00 hrs 

thanking you

Did you check the documentation ?

All about MQL5 Wizard : create robots without programming.
All about MQL5 Wizard : create robots without programming.
  • www.mql5.com
What is MQL5 Wizard :The MetaTrader 5 Trading Platform includes the MQL5 Wizard, which allows to quickly generate code of an Expert Advisor (Expert Advisor builder).
Alain Verleyen  
dummy:

Hi

thanks for the reply

GoodHourOfDay-

Can I set multiple hours in this

BadHoursOfDay  --Where can I learn more about it?

Can you please tell me the settings of both if I want to trade only during 00.06hrs to 20.00  hrs

tanking you


No you can't set multiple hours with GoodHourOfDay. So you can't use it. You have to use BadHoursOfDay, as you want to trade from 6:00 to 20:00, the bad hours are 0:00 to 05:00 and 21:00 to 23:00.

The documentation about BadHoursOfDay says :

The bit field. Each bit of this field corresponds to an hour of day (0 bit - 0 hour, ..., 23 bit - 23-rd hour). If the value of a bit is equal to 0, trade signals will be enabled during the corresponding hour. If the value of a bit is equal to 1, trade signals will be disabled during the corresponding hour.

So your binary number will be 111000000000000000111111. The highlighted 0 can be 1 depending if you want to trade from 20:00 to 20:59 or not, not sure about what you want. This number in decimal is 14680127. This is your input for BadHoursOfDay.

It's easy not ? I think the guy who creates this system is a little crazy


Sabu John  
angevoyageur:

No you can't set multiple hours with GoodHourOfDay. So you can't use it. You have to use BadHoursOfDay, as you want to trade from 6:00 to 20:00, the bad hours are 0:00 to 05:00 and 21:00 to 23:00.

The documentation about BadHoursOfDay says :

So your binary number will be 111000000000000000111111. The highlighted 0 can be 1 depending if you want to trade from 20:00 to 20:59 or not, not sure about what you want. This number in decimal is 14680127. This is your input for BadHoursOfDay.

It's easy not ? I think the guy who creates this system is a little crazy


Hi

Thank you  very much.

If you don't mind, please give me the decimal value if the period is 00.00 to 15 hrs

Thanking you

Alain Verleyen  
dummy:

Hi

Thank you  very much.

If you don't mind, please give me the decimal value if the period is 00.00 to 15 hrs

Thanking you


Is 15:00 to 15:59 include or exclude of the trading period ?

Alain Verleyen  
dummy:
include
So what should be the binary number ? 0 = trading, 1 = no trading. First digit to the left is 23 hours, last to the right is 0 hour.
Sabu John  
angevoyageur:
So what should be the binary number ? 0 = trading, 1 = no trading. First digit to the left is 23 hours, last to the right is 0 hour.
THANK YOU
Reason: