How to know if current OnTick is in the last testing date?

 
Hi!

I'm developing an EA where I need to know if "the current OnTick is being called at the last datetime in the testing". IOW if I calibrated the backtester to run a test between 2019.01.01 and 2020.12.28, I want a way to know from inside OnTick that "now is 2020.12.28". To get the current datetime is easy, a simple TimeCurrent do the trick. But how do I know from inside OnTick I've reached the end datetime of the testing?
 
Martin Bittencourt: But how do I know from inside OnTick I've reached the end datetime of the testing?
  1. You don't. Add an input and specify.
  2. Why do you care? The tester will stop.
 
William Roeder:
  1. You don't. Add an input and specify.
  2. Why do you care? The tester will stop.

1. Sad :T But at least it will work.
2. I'm doing an investing EA this time, not a trading one. And as such it will keep most of the time buying and buying until it needs to sell at the last day to check how well it managed to do the investing.