here is a function i used in NT 7 but cannot fathom how to do it in NT8
private DateTime currentTime()
{
DateTime a = DateTime.Now;
try
{
a = Bars.MarketData.Connection.Options.Provider == Cbi.Provider.Replay ? Bars.MarketData.Connection.Now : DateTime.Now;
}
catch (Exception e)
{
Print( "There was an error : Printfing datetime" + e.ToString());
Print( e.StackTrace);
}
return a;
}

Comment