How to make my MQL4 script run on a certain past date and time

 

Hello,

I am trying to make my script runs on a certain point (past not future) but all the functions I see is current or checking cyclically for a future point.

Any idea how to do so? 

For example if today is 25th Nov 2022 and I want my script to run in a certain time in date 20th Nov 2021.

 
younis_traveller: I am trying to make my script runs on a certain point (past not future) but all the functions I see is current or checking cyclically for a future point. Any idea how to do so? For example if today is 25th Nov 2022 and I want my script to run in a certain time in date 20th Nov 2021.

Please read the following — Timeseries and Indicators Access - MQL4 Reference

I also suggest the you study examples in the CodeBase and reference the documentation often.

 
younis_traveller:

Hello,

I am trying to make my script runs on a certain point (past not future) but all the functions I see is current or checking cyclically for a future point.

Any idea how to do so? 

For example if today is 25th Nov 2022 and I want my script to run in a certain time in date 20th Nov 2021.

Hi! Sorry… can’t help you…
But I would like to understand …
How come you want a script to run yesterday? 
Reason: