Using FSharp.Charting

FsChart is a commonly used F# chart library implemented as a functional wrapper over the Microsoft Chart Control. This control can save you some work because there is no need for boilerplate code as in the preceding examples for Microsoft Chart Control. FsChart is also designed to work with F# and integrate better with F# Interactive.

The library can be installed using the Package Manager Console by typing:

Install-Package FSharp.Charting

Creating a candlestick chart from stock prices

Let's look at the code for displaying a candlestick chart of the same stock as used before (Oracle) with data from Yahoo! Finance. This time there is less boilerplate code needed to set up the charting. The main part of the program consists of ...

Get F# for Quantitative Finance now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.