Nevermind!
I figured it out on my own. The following code compares two time structures using TotalMinutes. Just had to scour StackOverflow for about 30 minutes and found a solution.
#region Variables DateTime FirstTime = new DateTime(); DateTime SecondTime = new DateTime(); double Diff; #endregion protected override void OnBarUpdate() { if (ToTime(Time[0]) == 83500) {FirstTime = Time[0];} SecondTime = Time[0]; Diff = (SecondTime - FirstTime).TotalMinutes; Print("Diff is " + Diff); }
Leave a comment: