Class OptionSupport.RiskGraph
Class to calculate the risk graph for option strategies.
Inherited Members
Namespace: TuringTrader.Support
Assembly: TuringTrader.Simulator.dll
Syntax
public class OptionSupport.RiskGraph
Fields
| Edit this page View SourcePositions
Dictionary holding the positions for this risk graph
Declaration
public Dictionary<Instrument, int> Positions
Field Value
| Type | Description |
|---|---|
| Dictionary<Instrument, int> |
Methods
| Edit this page View SourceCalc(double)
Calculate option greeks, set reference value.
Declaration
public void Calc(double riskFreeRate)
Parameters
| Type | Name | Description |
|---|---|---|
| double | riskFreeRate |
PnL(double, DateTime)
Return profit and loss for hypothetical underlying price and target date
Declaration
public double PnL(double hypotheticalUnderlyingPrice, DateTime date)
Parameters
| Type | Name | Description |
|---|---|---|
| double | hypotheticalUnderlyingPrice | |
| DateTime | date |
Returns
| Type | Description |
|---|---|
| double |