-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.r
51 lines (37 loc) · 970 Bytes
/
config.r
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
#!/usr/bin/env Rscript
path = getwd()
source(paste(path, "/install.r", sep=""))
# Initial parameters (Define the initial parameters for the simulation)
# Number of simulations
n_sim <- 1000
# Initial price
S0 <- 1000
# Volatility of the stock price
sigma <- 0.001
# Drift of the stock price
mu <- 0.000075
# Initial variance of the variance process
v0 <- 0.04
# Mean reversion speed of the variance process
kappa <- 1
# Long-term variance of the variance process
theta <- 0.04
# Volatility of the variance process
sigma_v <- 0.2
# Correlation between the stock price and the variance processes
rho <- -0.5
# Time horizon of the simulation
T <- 168
# EIL threshold (below this value scientific notation is used)
EIL_THRESHOLD <- 0.001
# Total value of LP position in the numéraire token (e.g. DAI)
V <- 5000
# Liquidity ranges
ranges <- list(
c(999, 1001),
c(990, 1010),
c(909, 1100),
c(833.33, 1200),
c(500, 2000),
c(200, 5000)
)