how to set the parameter "Signal_ITF_BadHoursOfDay" ??? I would like to trade from 10am to 4pm.

Roger Tad  

how to set the parameter "Signal_ITF_BadHoursOfDay" ??? I would like to trade from 10am to 4pm.


https://www.mql5.com/en/docs/standardlibrary/expertclasses/csignal/signal_time_filter

Parameter

Description

Weight

Weight of signal of the module in the interval 0 to 1.

GoodHourOfDay

Number of the only hour of day (from 0 to 23) when trade signals will be enabled. If the value is -1, the signals will be enabled through the whole day.

BadHoursOfDay

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. A specified number is represented as a binary number and is used as bit mask.

Disabled hours have higher priority than the enabled ones.



cheers

Documentation on MQL5: Standard Library / Strategy Modules / Modules of Trade Signals / Signals of the Intraday Time Filter
Documentation on MQL5: Standard Library / Strategy Modules / Modules of Trade Signals / Signals of the Intraday Time Filter
  • www.mql5.com
Number of the only hour of day (from 0 to 23) when trade signals will be enabled. If the value is -1, the signals will be enabled through the whole day. 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...
Roger Tad  

K.I.S.S.


lol


https://www.mql5.com/en/forum/83939





Rogerio Lacerda:

how to set the parameter "Signal_ITF_BadHoursOfDay" ??? I would like to trade from 10am to 4pm.


https://www.mql5.com/en/docs/standardlibrary/expertclasses/csignal/signal_time_filter

Parameter

Description

Weight

Weight of signal of the module in the interval 0 to 1.

GoodHourOfDay

Number of the only hour of day (from 0 to 23) when trade signals will be enabled. If the value is -1, the signals will be enabled through the whole day.

BadHoursOfDay

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. A specified number is represented as a binary number and is used as bit mask.

Disabled hours have higher priority than the enabled ones.



cheers

Libraries: MQL 5 Wizard - Simpler Intraday Time Filter
Libraries: MQL 5 Wizard - Simpler Intraday Time Filter
  • 2016.05.10
  • www.mql5.com
MQL 5 Wizard - Simpler Intraday Time Filter: Author: Genes Luna...