GetNextExpiry()
<< Click to Display Table of Contents >> GetNextExpiry() |
Returns the current futures expiry compared to the time of the input value used for the method.
A DateTime structure
Bars.Instrument.MasterInstrument.GetNextExpiry(DateTime afterDate)
afterDate |
A DateTime value representing to be compared |
// Indicates what the current expiry is in the bottom right of the chart Draw.TextFixed(this, "tag1", "The current expiry is " + Bars.Instrument.MasterInstrument.GetNextExpiry(DateTime.Now).ToString("MM-yy"), TextPosition.BottomRight); |