Verolop / stock-prices

Analyzing stock prices with Fortran arrays

Home Page:https://www.manning.com/books/modern-fortran?a_aid=modernfortran&a_bid=2dc4d442

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

stock-prices

Build Status GitHub issues

Analyzing stock prices with Fortran arrays. Companion code for Chapter 4 of Modern Fortran: Building Efficient Parallel Applications

Getting started

Getting the code and data

git clone https://github.com/modern-fortran/stock-prices
cd stock-prices
FC=gfortran make

This will build three small apps: stock_gain, stock_volatility, and stock_crossover.

Running the programs

./stock_gain
./stock_volatility
./stock_crossover

Plotting the results

You can use the included Python scripts to read and plot the data produced by the Fortran apps.

First, set up a fresh Python virtual environment:

python -m venv venv
source venv/bin/activate
pip install -U pip
pip install -r plotting/requirements.txt

Then type:

make figures

About

Analyzing stock prices with Fortran arrays

https://www.manning.com/books/modern-fortran?a_aid=modernfortran&a_bid=2dc4d442

License:MIT License


Languages

Language:Fortran 51.6%Language:Python 39.6%Language:Makefile 6.3%Language:Shell 2.4%