Code Monkey home page Code Monkey logo

historical-volatility-calculator's Introduction

Historical-Volatility-Calculator

Winforms app written in C# to calculate a stock's historical volatility using Yahoo Finance .CSV file

This app can tell you the probability of a stock being above or below at a certain price at a chosen date in the future. In the image example below, I calculated the probabilty of Amazon's stock being over 320 by 11/14/14 which was 36.05%.

GitHub Logo

I got the mathematical formulas to calculate the historical volatility from C.B. Reehl's book 'The Mathematics of Options Trading' and converted them into C#. http://www.amazon.com/Mathematics-Options-Trading-C-B-Reehl/dp/0071445285/ref=sr_1_1?ie=UTF8&qid=1414070824&sr=8-1&keywords=mathematics+of+options+trading

If you want to run the .exe without compiling the source code, it's here:

HistoricalVolatilityCalculator\bin\Debug\HistoricalVolatilityCalculator.exe

The logic is here:

HistoricalVolatilityCalculator/VolatilityCalculator.cs
HistoricalVolatilityCalculator/Form1.cs

To get the .csv stock information you can either go to yahoo finance (here's the link for Amazon's historical info) http://finance.yahoo.com/q/hp?s=AMZN+Historical+Prices

or you can use another app I wrote called the Yahoo Finance Quote Downloader that is also on Github.

This was built with Visual Studio 2013, I included all the files in the solution folder. This program targets .NET 4.5 so it will not work on XP, but will work on Vista, Windows 7, Windows 8 and Windows 10.

historical-volatility-calculator's People

Contributors

ovnisoftware avatar

Stargazers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.