I'm preparing to run my code in Live trading mode. In live mode I need to pull history to backfill my indicators etc. How can my code determine whether its in Live mode so it can implement these actiions appropriately?