S. Albosaily and S. Pergamenshchikov, Optimal investment and consumption for Ornstein-Uhlenbeck for financial markets on small time interval, 1712.04333v3). arXiv, 2018.

S. Albosaily and S. Pergamenshchikov, Optimal investment and consumption for Ornstein-Uhlenbeck spread financial markets with power utility, Finance and Stochastics, 2018.

S. Albosaily and S. Pergamenshchikov, Optimal investment and consumption for Ornstein-Uhlenbeck spread financial markets with logarithmic utility. Risk and Decision analysis, 2018.

S. Albosaily and S. Pergamenshchikov, The optimal investment and consumption for financial market generated by the spread of risky assets for the power utility, Mathematical and Statistical Methods for Actuarial Sciences and Finance, 2019.

L. Andersen and V. Piterbarge, Moment explosions in stochastic volatility models, Finance and Stochastics, vol.11, pp.29-50, 2007.

C. Ball and A. Roma, Stochastic volatility option pricing. Finance and Quantitative, Analysis, vol.29, issue.4, pp.589-607, 1994.

O. E. Barndorff-nielson and N. Shephard, Modelling by lévy-processes for financial econometrics, pp.283-318, 2001.

R. Bellman, The stability of solutions of linear differential equations, Duke Math. J, vol.10, pp.643-647, 1943.

B. Berdjane and S. M. Pergamenchtchikov, Optimal consumption and investment for markets with random coefficients, Finance and stochastics, vol.17, issue.2, pp.419-446, 2013.

B. Berdjane and S. Pergamenshchikov, Sequential ?-optimal consumption and investment for stochastic volatility markets with unknown parameters, 2012.
URL : https://hal.archives-ouvertes.fr/hal-00743164

F. Black and M. Scholes, The pricing of options and corporate liabilities, Journal of Political Economy, vol.81, pp.63-659, 1973.

M. Blais and P. Protter, An analysis of the supply curve for liquidity risk through book data, International Journal of Theoretical and Applied Finance, vol.13, issue.06, pp.821-838, 2010.

M. Boguslavsky and E. Boguslavskaya, Arbitrage under power, Risk. References, 2004.

J. Caldeira and G. Moura, Selection of a portfolio of pairs based on cointegration: a statistical arbitrage strategy, 2013.

N. Castaneda-leyva and D. Herna'ndez-hern'andez, Optimal consumption invest-ment problems in incomplete markets with stochastic coefficients, SIAM, J. Control and Opt, vol.44, pp.1322-1344, 2005.

L. Delong and C. Klüppelberg, Optimal investment and consumption in a blackscholes market with lévy-driven stochastic coefficients, Annals of Applied Probability, vol.18, issue.3, pp.879-908, 2008.

D. Duffie, D. Filipovic, and W. Schachermayer, Affine processes and applications in finance, Annals of Applied Probability, 2003.

D. Duffie, J. Pan, and K. Singleton, Transform analysis and asset pricing for affine jump-diffusions, Econometrica, vol.68, issue.6, pp.1343-1376, 2000.

N. Elkaraoui, D. H. Nguyen, and M. Jeanblanc, Compactification methods in the control of degenerate diffusions: existence of an optimal control, vol.20, pp.169-219, 1987.

N. El-karoui and M. Quenez, Dynamic programming and pricing of contingent claims in an incomplete market, SIAM J. Control and Optimization, vol.33, pp.29-66, 1995.

R. J. Elliott, J. V. Der-hoek, and W. P. Malcolm, Pairs trading. Quantitative Finance, vol.5, pp.271-276, 2005.

W. Fleming and D. Hernández-hernández, An optimal consumption model with stochastic volatility, Finance and stochastic, vol.7, pp.245-262, 2003.

W. Fleming and R. Rishel, Deterministic and stochastic optimal control, Applications of Mathematics, vol.1, 1975.

W. H. Fleming and H. M. Soner, Controlled Markov Processes and Viscosity Solutions, 2006.

J. P. Fouque, G. Papanicolaou, and K. R. Sircar, Derivatives in Financial Markets with Stochastic Volatility, 2000.

A. Friedman, Partial Differential Equations of Parabolic Type, 1964.

A. Friedman, Stochastic Differential Equations and Applications, 1975.

T. Gard, Introduction to Stochastic Differential Equations, 1988.

E. Gatev, W. Goetzmann, and K. Rouwenhorst, Pairs Trading: Performance of a Relative-Value Arbitrage Rule. The Society for Financial Studies, vol.19, 2006.

T. H. Gronwall, Note on the derivative with respect to a parameter of the solutions of a system of differential equations, Ann. of Math, vol.20, pp.292-296, 1919.

S. J. Grossman and Z. Zhou, Optimal investment strategies for controling drawdown, Math Finance, vol.3, issue.3, pp.241-276, 1993.

P. B. Girma and . S. Paulsona, Risk arbitrage opportunities in petroleum futures spreads, J. Futures Markets, vol.19, issue.8, pp.931-955, 1999.

S. Heston, A closed-form solution for options with stochastic volatility with applications to bond and currency options, Rev. Fin. Studies, vol.6, pp.327-343, 1993.

J. Hull and A. White, The pricing of options on assets with stochastic volatility, J. Finance, pp.281-300, 1987.

R. Horn and C. Johnson, Matrix Analysis, 1985.

J. Jackwerth and M. Rubinstein, Recovring probability distributions from contemporaneous sequirity prices, J. Finance, vol.40, pp.455-480, 1996.

J. Jacod, Calcul Stochastique et Problmes de Martingales, 2008.

H. Johnson, Options on the maximum or the minimum of several assets, Journal of Financial and Quantitative Analysis, vol.22, pp.277-283, 1987.

Y. M. Kabanov and S. M. Pergamenshchikov, Asymptotic Analysis and Control. Applications of mathematics. stochastic modelling and applied probability, 2003.

J. Kallsen and J. Muhle-karbe, Utility maximization in affine stochastic volatility models, International Journal of Theoretical and Applied Finance, 2010.

J. Kallsen and J. Muhle-karbe, The general structure of optimal investment and consumption with small transaction costs

I. Karatzas, Optimization problems in the theory of continuous trading, SIAM, J. Control and Opt, vol.27, pp.1221-1259, 1989.

I. Karatzas and S. E. Shreve, Brownian Motion and stochastic Calculus, 1991.

I. Karatzas and S. E. Shreve, Methods of Mathematical Finance, 1998.

H. Kraft, T. Seiferling, and F. T. Seifried, Optimal consumption and investment with Epstein-Zin recursive utility, Finance and Stochastics, 2017.

C. Krauss, Statistical arbitrage pairs trading strategies: review and outlook, J. Economic Surveys, vol.31, issue.2, pp.513-545, 2017.

P. E. Kloeden and E. Platten, Numerical Solution of Stochastic Differential Equations, 1992.

C. Klüpelberg and S. M. Pergamenchtchikov, Optimal consumption and investment with bounded downside risk for power utility functions. Optimality and Risk : Modern Trends in Mathematical Finance, pp.133-150, 2009.

R. Korn, Optimal portfolios, 1997.

H. Kraft and M. Steffensen, Poerfolio problems stopping at first hitting time with applications to default risk, Math. Meth. Oper. Res, vol.63, pp.123-150, 2006.

N. Krylov, Nonlinear Elliptic and Parabolic Equations of the Second Order, D. Reidel, 1987.

H. Ku, K. Lee, and H. Zhu, Discrete time hedging with liquidity risk, Finance Research Letter, vol.9, pp.135-143, 2012.

H. J. Kushner, Probability Methods for Approximations in Stochastic Control and for Elliptic Equations, 1977.

O. A. Ladyzenskaja, V. A. Solonnikov, and N. N. Ural'ceva, Linear and quasilinear equations of parabolic type, Trans.). Providence, R. I, 1967.

D. Lamberton and B. Lapeyre, Introduction au calcul stochastique appliqué à la finance. Ellipses-Edition Marketing, 1991.

C. E. Lawrence, An introduction to mathematical optimal control theory, 1983.

J. P. Lehoczey, I. Karatzas, S. P. Sethi, and S. E. Shreve, Explicit solution of a general consumption-investment problem, Math. Oper. Res, vol.11, pp.261-294, 1986.

A. Lewis, Option Valuation under Stochastic Volatility, 2000.

R. S. Liptser and A. N. Shiryaev, Statistics of Random Process I. General Theory, 2000.

R. S. Liptser and A. N. Shiryaev, Statistics of Random Process II. Applications, 2000.

H. Liu and J. Yong, Option pricing with an illiquid underlying asset market, J. Econom. Dynam. Control, vol.29, pp.2125-2156, 2005.

W. Margrabe, The value of an option to exchange one asset for another, The Journal of Finance, vol.23, pp.177-186, 1978.

R. Merton, Lifetime portfolio selection under uncertainty: the continuous-time case, Rev. Econom. Statist, vol.51, pp.247-257, 1969.

R. Merton, Optimal consumption and portfolio rules in a continuous time model, Journal of Economic Theory, vol.3, pp.373-413, 1971.

R. C. Merton, Continuous time finance, 1971.

R. C. Merton, Theory of rational option pricing, Bell J of Econ and Management Sci, vol.4, pp.141-183, 1973.

R. C. Merton, Option pricing when underlying stock returns are discontinuous, Journal of Financial Economics, vol.3, pp.125-144, 1976.

A. Merton, , 2001.

M. A. Monroe and R. A. Cohn, The relative efficiency of the gold and treasury bill futures markets, J. Fut. Mark, vol.6, issue.3, pp.477-493, 1986.

B. Oksendal, Stochastic Differential Equations: An Introduction with Applications, 1998.

E. Pardoux and D. Talay, Discretization and simulation of stochastic differential equations, Acta Applicandae Mathematicae, vol.3, pp.23-47, 1985.

H. Pham, Smooth solutions to optimal investment models with stochastic volatilities and portfolio constraints, Appl. Math. Optim, vol.46, pp.55-78, 2002.

H. Pham, Optimisation et contrôle stochastique appliqué à la finance, 2007.

P. Protter, Stochastic Integration and Differential Equations: a New Approach, 1995.

M. Raghava and S. Bharadwaj, Pairs Trading using cointegration in pairs of stocks, 2014.

S. Reverre, The Complete Arbitrage Desk-book, chapter 10 McGraw Hill, 2001.

M. Rubinstein, Somewhere over the rainbow, pp.63-66, 1991.

N. Touzi, Stochastic control problems, viscosity solutions and applications to finance, Scuola Normale superiore di Pisa, 2004.

T. Zariphopoulou, A solution approach to valuation with unhedgeable risk, Finance and stochastics, vol.5, pp.61-82, 2001.

A. A. Zebedee and M. Kasch-haroutounian, A closer look at co-movements among stock returns, J. Economics and Business, issue.4, pp.279-294, 2009.

, # Number of increments that we made (steps)

T. , ? 1 # Terminal time (usually we use it =1). ? seq(t0, T, length=n+1)

W. ,

, Another method for Wiener, p.10

?. Wt and . Sqrt, T-t0)/N) * cumsum(xi) #To add continuously 18 # xi

, Defining the Constantes, p.-

M. , , 1000.

, For the Integral function, p.28

?. T+,

?. , , p.1

?. T+,

?. Integ,

?. ,

, * sqrt(Sigma2(t,u,m))+s * exp

G. , function(s,t,y) 51 { 52 gt ? ? ? c1-exp

, gamma)) * (gt * s * s/2+y)))

, Gamma0 ? ? ? function(s,t,y1,y2) 58 { 59 gt ? ? ? c1-exp

, gamma1/2) * y2 ** 2+(sigma ** 2) * gt

, gamma) * 1 * G(s,t,y1))

?. Rnorm,

?. E+sum,

, L ? ? ? function(s,t,h,hs,T,m)

?. T+,

, To plot the strategies, p.-

?. ,

?. ,

, gamma)

?. ?-?-sigma and *. ,

, gamma)

?. ,

, phi = 30, theta =-30, 173 xlab = "S

. #x-?-?-?-c,

S. ,

, #I ? ? ? 10 #it was 5 194 #J ? ? ? 10 # it was 5 195 #s1 ? ? ?

X. ,

?. ,

, * theta * c1)/(exp(omega *

*. ,

?. ,

?. ?-?-sigma and *. ,

*. Dw,

, A.3 Simulation for log utility

?. Seq, , vol.10, p.30

?. Seq, , vol.1, p.11

, )/(4 * kappa

, Zvarsigma ? ? ? function(s,t) log(T-t+1) +s ? ? ? 2 * g(t)+f(t), p.22

, ? outer(s,t, Zvarsigma) 26 jet.colors ? ? ? colorRampPalette( c("blue

?. ,

, phi = 30, theta =-30, xlab = "S

=. ,

=. "xstar-;-?-?-?-*,