Execute after the last Tick

 

The OnTick() function is driven by the receiving of a new tick. 

But what if I want to execute a block of code immediately after the last tick of the trading week,

long before the first tick of the following trading week?

Any suggestions on how this can be done?

Thank you

Documentation on MQL5: Constants, Enumerations and Structures / Named Constants / Predefined Macro Substitutions
Documentation on MQL5: Constants, Enumerations and Structures / Named Constants / Predefined Macro Substitutions
  • www.mql5.com
//| Expert initialization function                                   | //| Expert deinitialization function                                 | //| Expert tick function                                             | //| test1                                                            |...
Reason: