I've done a similar timed sleeper agent, except I implemented in C#. My instinct tells me if you want to do something so complicated, including auto rolling of contract months, variable position sizing, and algorithmic execution, then you probably have no choice but to develop from scratch...