コード例 #1
0
ファイル: Class1.cs プロジェクト: AlexS2172/IVRMstandard
        public int OCWCalcFutureOptionGreeks(
            double dDomesticRate,
            double dFuturePrice,
            double dStrike,
            double dVolatility,
            double dYTE,
            long nIsCall,
            long nIsAmerican,
            long nSteps,
            double dSkew,
            double dKurtosis,
            long nModel,
            GREEKS pdGreeks)
        {
            int iRet = 0;

            iRet = CalcFutureOptionGreeks(
                dDomesticRate,
                dFuturePrice,
                dStrike,
                dVolatility,
                dYTE,
                (int)nIsCall,
                (int)nIsAmerican,
                (int)nSteps,
                dSkew,
                dKurtosis,
                (int)nModel,
                pdGreeks);

            return(iRet);
        }
コード例 #2
0
ファイル: Class1.cs プロジェクト: AlexS2172/IVRMstandard
 int CalcFutureOptionGreeks(
     double dDomesticRate,
     double dFuturePrice,
     double dStrike,
     double dVolatility,
     double dYTE,
     int nIsCall,
     int nIsAmerican,
     int nSteps,
     double dSkew,
     double dKurtosis,
     int nModel,
     [In, Out, MarshalAs(UnmanagedType.LPStruct)] GREEKS pGreeks);
コード例 #3
0
ファイル: Class1.cs プロジェクト: AlexS2172/IVRMstandard
 int CalcFutureOptionGreeksCustDivs(
     double dDomesticRate,
     double dYield,
     double dFuturePrice,
     double dStrike,
     double dVolatility,
     double dYTE,
     int nIsCall,
     int nIsAmerican,
     int nSteps,
     double dSkew,
     double dKurtosis,
     int nModel,
     int nCount,
     [MarshalAs(UnmanagedType.LPArray)]   double[]   pDivAmnts,
     [MarshalAs(UnmanagedType.LPArray)]   double[]   pDivYears,
     [In, Out, MarshalAs(UnmanagedType.LPStruct)] GREEKS pGreeks);
コード例 #4
0
ファイル: Class1.cs プロジェクト: AlexS2172/IVRMstandard
 int CalcGreeksMM2(
     double dDomesticRate,
     double dForeignRate,
     double dHTBRate,
     double dSpotPrice,
     double dStrike,
     double dVolatility,
     double dYTE,
     int nIsCall,
     int nIsAmerican,
     int nCount,
     [MarshalAs(UnmanagedType.LPArray)]   double[]   pDivAmnts,
     [MarshalAs(UnmanagedType.LPArray)]   double[]   pDivYears,
     int nSteps,
     double dSkew,
     double dKurtosis,
     int nModel,
     [In, Out, MarshalAs(UnmanagedType.LPStruct)] GREEKS pGreeks);
コード例 #5
0
ファイル: Class1.cs プロジェクト: AlexS2172/IVRMstandard
        public int OCWCalcFutureOptionGreeks3(
            double dDomesticRate,
            double dYield,
            double dFuturePrice,
            bool bSpotGreeks,
            double dStrike,
            double dVolatility,
            double dYTE,
            long nIsCall,
            long nIsAmerican,
            long nSteps,
            double dSkew,
            double dKurtosis,
            long nModel,
            long nCount,
            ref double[]   pDivAmnts,
            ref double[]   pDivYears,
            GREEKS pdGreeks)
        {
            int iRet = 0;

            iRet = CalcFutureOptionGreeks3(
                dDomesticRate,
                dYield,
                dFuturePrice,
                bSpotGreeks,
                dStrike,
                dVolatility,
                dYTE,
                (int)nIsCall,
                (int)nIsAmerican,
                (int)nSteps,
                dSkew,
                dKurtosis,
                (int)nModel,
                (int)nCount,
                pDivAmnts,
                pDivYears,
                pdGreeks);

            return(iRet);
        }
コード例 #6
0
ファイル: Class1.cs プロジェクト: AlexS2172/IVRMstandard
        public int OCWCalcGreeksMM(double dDomesticRate,
                                   double dForeignRate,
                                   double dHTBRate,
                                   double dSpotPrice,
                                   double dStrike,
                                   double dVolatility,
                                   double dYTE,
                                   long nIsCall,
                                   long nIsAmerican,
                                   long nCount,
                                   ref double[]   pDivAmnts,
                                   ref double[]   pDivYears,
                                   long nSteps,
                                   double dSkew,
                                   double dKurtosis,
                                   long nModel,
                                   GREEKS pdGreeks)
        {
            int iRet = 0;

            iRet = CalcGreeksMM2(dDomesticRate,
                                 dForeignRate,
                                 dHTBRate,
                                 dSpotPrice,
                                 dStrike,
                                 dVolatility,
                                 dYTE,
                                 (int)nIsCall,
                                 (int)nIsAmerican,
                                 (int)nCount,
                                 pDivAmnts,
                                 pDivYears,
                                 (int)nSteps,
                                 dSkew,
                                 dKurtosis,
                                 (int)nModel,
                                 pdGreeks);

            return(iRet);
        }