-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathRun_simulation GBM-Gamma - Single Option.sh
executable file
·76 lines (53 loc) · 2.2 KB
/
Run_simulation GBM-Gamma - Single Option.sh
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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
#!/bin/bash
# Mean-Std Experiment ##################################################################################################################################
args=(
# Utility Function Parameters
-init_ttm=60 -r=0.0 -spread=0.005
-liab_ttms=60 -poisson_rate=0.0 -moneyness_mean=1.0 -moneyness_std=0.0
# Contract Parameters
-num_conts_to_add=-1 -contract_size=100
# Hedging Portfolio Parameters
-hed_ttm=30 -hed_type='European'
# init_vol is for both GBM and Heston
-init_vol=0.0228
# Heston, Model Parameters
-kappa=0.0807 -theta=0.363 -volvol=0.1760 -rho=-0.3021
# Simulation Parameters
-stochastic_process='GBM' -time_to_simulate=30 -train_sim=8192 -frq=1 -TradingDaysPerYear=252
-numerical_accuracy='low' -n_jobs=-1 -train_seed=1234
# RL Environment Parameters
-action_space="0,1"
# RL Agent Parameters
-n_step=5 -batch_size=512 -vega_obs=False -critic='qr-huber'
-logger_prefix='results_meanstd30'
-obj_func='meanstd' -std_coef=1.645
-eval_sim=1024
-eval_only=False
)
python runAlexander.py "${args[@]}"
# # VaR_95 Experiment ##################################################################################################################################
# args=(
# # Utility Function Parameters
# -init_ttm=60 -r=0.0 -spread=0.005
# -liab_ttms=60 -poisson_rate=0.0 -moneyness_mean=1.0 -moneyness_std=0.0
# # Contract Parameters
# -num_conts_to_add=-1 -contract_size=100
# # Hedging Portfolio Parameters
# -hed_ttm=30 -hed_type='European'
# # init_vol is for both GBM and Heston
# -init_vol=0.0228
# # Heston, Model Parameters
# -kappa=0.0807 -theta=0.363 -volvol=0.1760 -rho=-0.3021
# # Simulation Parameters
# -stochastic_process='GBM' -time_to_simulate=60 -train_sim=8192 -frq=1 -TradingDaysPerYear=252
# -numerical_accuracy='low' -n_jobs=-1 -train_seed=1234
# # RL Environment Parameters
# -action_space="0,1"
# # RL Agent Parameters
# -n_step=5 -batch_size=512 -vega_obs=False -critic='qr-huber'
# -logger_prefix='results_var'
# -obj_func='var' -threshold=0.95
# -eval_sim=1024
# -eval_only=False
# )
# python runAlexander.py "${args[@]}"