public void OnData(TradeBars data)

{

bool isMarketOpen = Securities[Symbol].Exchange.DateTimeIsOpen(data.Time.AddMinutes(-15)) && Securities[Symbol].Exchange.DateTimeIsOpen(data.Time.AddMinutes(15));

bool isMarketWillCloseSoon = Securities[Symbol].Exchange.DateTimeIsOpen(data.Time) && !Securities[Symbol].Exchange.DateTimeIsOpen(data.Time.AddMinutes(20));

Build Warning: File: Main.cs Line:117 Column:72 - 'DataDictionary.Time' is obsolete: 'The DataDictionary Time property is now obsolete. All algorithms should use algorithm.Time instead.'