This is an example of using NQ futures history to warm up some indicators using custom consolidators and then purchasing one NQ contract.
As of when I wrote this it should work on backtests and live, though it does require the 3.0 beta.
Enabling the 3.0 beta also required me to turn off the new Firefox privacy feature as it was interfering with the new dev environment.