OS_FindPut (Function)

image\trumpet2.gif Disclaimer

The OS_FindPut function returns the ID number for the specified Put option.  This function is designed primarily for use in OptionStation.

Syntax

OS_FindPut(SeriesProx, StrikeProx)

Returns (Double)

A numeric value representing the ID number for the specified Put option.

Parameters

Name

Type

Description

SeriesProx

Numeric

Sets the option series proximity to the near series, where 1 = near series, 2 = next trading month and so on.

StrikeProx

Numeric

Sets the option strike price proximity to the At-The-Money strike price.
0 = At-The-Money strike price
1 = next Out-Of-The-Money strike price
-1 = next In-The-Money strike price

Remarks

The ID number of an option in an option(n) array for a Put is based on a specific series and strike price proximity. OptionStation maintains an array of all options in the analysis, which you can referenced by using the ”of option(n)” convention.  

Example

Assigns to Value1 the strike price of a near series, At-The-Money Put option.

Value1 = Strike of option(OS_FindPut(1,0)) ;