OS_FracDaysToExp (Function)
The OS_FracDaysToExp function returns the fractional portion remaining in a current session. This function is designed primarily for use in OptionStation.
Syntax
OS_FracDaysToExp(TargetCalcTime)
Returns (Double)
A numeric value representing the fractional portion of the session at the point of the target time specified.
Parameters
|
Name |
Type |
Description |
|
TargetCalcTime |
Numeric |
Sets the current time of the bar in minutes from midnight. |
Remarks
The fractional portion of the session at the point of the target time is subtracted from the whole days to expiration, to more accurately calculate intra-day value for days to expiration.
Example
Assigns to Value1 the fractional portion remaining in the current session. You can subtract the fractional value from the whole days to get a more accurate intra-day value for days to expiration.
Value1 = OS_ FracDaysToExp(LastCalcMMTime);
Value2 = DaysToExpiration – Value1;