GenerateStrike (Function)

image\trumpet2.gif Disclaimer

The GenerateStrike function returns the strike price of an option based on the specified price proximity of the option to its underlying asset and the specified strike increment.

Syntax

GenerateStrike(ProximityToStrike, StrikeIncrement)

Returns (Double)

A numeric value representing the strike price of the option based on the number of strike above and below the current price of the underlying asset.  

Parameters

Name

Type

Description

ProximityToStrike

Numeric

Sets the number of strike prices above or below the current price of the underlying asset that is to be returned by the function.

Enter a positive value for strikes above the current price of the underlying asset; and a nega¬tive value for strikes below the current price of the underlying asset.  

StrikeIncrement

Numeric

Sets the strike increment of the option.

Example

Assigns to Value1 the calculated strike price of an option that is going to be 2 strikes below the current underlying asset price, and with a 2.5 strike increment.

Value1 = GenerateStrike (-2, 2.5);