Skip to content

Code of Liu, B., Cartlidge, J. (2023). Nonstationary Continuum-Armed Bandit Strategies for Automated Trading in a Simulated Financial Market. Proceedings of the 13th International Defence and Homeland Security Simulation Workshop (DHSS 2023).,001. DOI: https://doi.org/10.46354/i3m.2023.dhss.001

HarmoniaLeo/PRZI-Bayesian-Optimisation

Repository files navigation

PRZI-Bayesian-Optimisation

The BSE.py is refered from Bristol Stock Exchange. We add our proposed PRBO algorithm to it.

Installation

git clone https://github.com/HarmoniaLeo/PRZI-Bayesian-Optimisation
cd PRZI-Bayesian-Optimisation
conda create --name PRZI-Bayesian-Optimisation --file requirements.txt
conda active PRZI-Bayesian-Optimisation

Hyper-parameter Selections

To run the Hyperparameters Selection for PRSH, firstly run the command:

python PRSH_hyper-parameters-experiments.py

The result can be found in results/PRSH_results.csv. Then use PRSH_hyper-parameters-statistics.ipynb to perform hypothesis tests and select the possibly optimized hyper-parameter combinations.

To run the Hyperparameters Selection for PRBO, firstly:

python PRBO_hyper-parameters-experiments.py

The result can be found in results/PRBO_results.csv. Then use PRBO_hyper-parameters-statistics.ipynb to perform hypothesis tests and select the possibly optimized hyper-parameter combinations.

Intermediate result files generated by BSE will be saved in results_buffer.

Comparison between PRBO and PRSH

To run the comparison experiments, firstly run the command:

python PRBOvsPRSH_experiments.py

The result can be found in results/PRBOvsPRSH_results.csv. Then use PRBOvsPRSH_statistics.ipynb to perform hypothesis tests and view the comparison results.

Intermediate result files generated by BSE will be saved in results_buffer.

About

Code of Liu, B., Cartlidge, J. (2023). Nonstationary Continuum-Armed Bandit Strategies for Automated Trading in a Simulated Financial Market. Proceedings of the 13th International Defence and Homeland Security Simulation Workshop (DHSS 2023).,001. DOI: https://doi.org/10.46354/i3m.2023.dhss.001

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published