Show / Hide Table of Contents

Class OptionSupport.RiskGraph

Class to calculate the risk graph for option strategies.

Inheritance
object
OptionSupport.RiskGraph
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: TuringTrader.Support
Assembly: TuringTrader.Simulator.dll
Syntax
public class OptionSupport.RiskGraph

Fields

| Edit this page View Source

Positions

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 Source

Calc(double)

Calculate option greeks, set reference value.

Declaration
public void Calc(double riskFreeRate)
Parameters
Type Name Description
double riskFreeRate
| Edit this page View Source

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
  • Edit this page
  • View Source
In this article
Back to top Copyright © 2011-2023, Bertram Enterprises LLC dba TuringTrader.com