So for now, I need to manually set the dates with my script?

* If it is trainmode, dates are from A to B. Get factors.
* If it is testmode, dates are from B to C. Use factors.