GetNextExpirationOption ( String optionCode);

Default values:

optionCode: Option code


Returns the code of the option with the same strike price as the input one, but belonging to the next series.

Input parameters

Parameter Default value Description
underlyingSymbol - Defines the input option.


plot NextOption = close(GetNextExpirationOption());

On the option chart, this script plots the Close price of the option in the next series, with the same underlying, strike price, and side.