WebCab Options and Futures for COM v3.1

FuturesOnCommodities.ConvenienceYieldFromCarry Method 

Calculates the convenience yield from the cost of carry for a consumption commodity.

public double ConvenienceYieldFromCarry(
   double commodityPrice,
   double futuresPrice,
   double costOfCarry,
   DateTime evaluationDate,
   DateTime expiryDate,
   string businessCalendarName
);

Parameters

commodityPrice
The price of the underlying consumption commodity.
futuresPrice
Price of a futures contract on the underlying commodity.
costOfCarry
The cost of carry of the commodity.
evaluationDate
The date when futures contract is evaluated.
expiryDate
The date when the contract expires.
businessCalendarName
The name of one of the implemented business calendars, "London" by default.

Return Value

The convenience yield of the consumption commodity returned in decimal format (i.e. 1 percent = 0.01).

See Also

FuturesOnCommodities Class | WebCab.COM.Finance.Futures Namespace