OS_DaysToNearExp (Function)
The OS_DaysToNearExp function calculates the days to the near expiration for a position. This function is designed primarily for use within the OptionStation Analysis window.
Syntax
OS_DaysToNearExp
Returns (Double)
A numeric value that is the days to the near expiration in fractional days.
Parameters
None
Remarks
This function is useful when you're trying to find the near expiration of a position that my contain different strategies or legs with different expirations.
Example
Plots the days to the near expiration for a position, for the current option, from today, at the current time, and calculate the fractional portion.
Plot1(OS_DaysToNearExp);