day of week function

 

Hi Guys, 

I have an existing EA and my programmer is MIA. Does anyone know if I can add a dayofweek function. 

For example:  if dayofweek = Monday -> don't make entries

The function should only work for market entries.

Would be great if one of you tech guys could help.

 
Sebastian Van Hilten: The function should only work for market entries.
Do you have the code? If not, no one here can help.
 
Sebastian Van Hilten:

Hi Guys, 

I have an existing EA and my programmer is MIA. Does anyone know if I can add a dayofweek function. 

For example:  if dayofweek = Monday -> don't make entries

The function should only work for market entries.

Would be great if one of you tech guys could help.

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

This strategy library can be included in your code and then you have to read the instructions carefully to get to know the inputs.

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
Signals of the Intraday Time Filter - Modules of Trade Signals - Strategy Modules - Standard Library - MQL5 Reference - Reference on algorithmic/automated trading language for MetaTrader 5
Reason: