OneClick Saudi Stock Prediction Using Monte Carlo and Brownian Motion in Python
Originally published: 19/03/2019 20:43
Publication number: ELQ-77965-1
View all versions & Certificate

OneClick Saudi Stock Prediction Using Monte Carlo and Brownian Motion in Python

Monte Carlo and Brownian Motion Models Python script to predict future stock movements.

The aim of the OneClick series is to help finance professionals with no or minimal programming background to expedite financial modeling and analysis tasks with less time and efforts.

The traditional way of establishing Monte Carlo simulation is the spreadsheet which requires repetition of the same tasks and bit labor-intensive and time-consuming. The python template aims to speed up the process with better precision.

The script models future stock movements based on two well-known stochastic processes.
The aim of the script to save tons of time compared to the traditional way of doing it in a spreadsheet.

User provides:
1) stock symbol/ticker of their choice on the exchange,
2) Date of data to be used to model future,
3) Number of days of the future interested, and
4) the number of different scenarios interested.
And then Just click “Run all Cell”. That’s it!

The result will be in the form of a graph and a short report with some statistics.
If you are not familiar with python and Azure notebook. Please refer to the link provided in the template for how to create one.


The template model is an educated guess of the future which is based on python
libraries written by third parties and data received from Yahoo Finance and does
not guarantee actual outcomes. The user should not consider it as a stand-alone decision-making tool.
The author will not accept any liabilities.

This Best Practice includes
1 Python Script and linked video that explain how to use this script.

Rizwan Ahmed Surhio offers you this Best Practice for free!

download for free

Add to bookmarks


Further information

To provide one-click calculations of complex simulations

1. Availability of free Microsoft Azure account.
2. Availability of Libraries and Module used in the script.
3. Availability of Data from Yahoo Finance

Local or cloud-based python version, libraries, modules are not appropriate
Yahoo finance data service API depreciated

4.0 / 5 (1 votes)

please wait...