Algo.Analytics.FSharp/README.md
Algo.Analytics.FSharp contains a collection of analytic scripts written in F# for the StockSharp trading platform. Each script implements the IAnalyticsScript interface and can be executed inside any environment that provides an IAnalyticsPanel such as the S# Designer application. The scripts demonstrate how to read historical market data from IStorageRegistry, perform calculations, and render results using charts, grids, heatmaps, or 3‑D surfaces.
These scripts are examples for the Hydra analytics feature. Refer to the documentation for more information.
The project is distributed as a .NET 6 library and references the core Algo.Analytics project as well as MathNet.Numerics.FSharp for numerical calculations.
A minimal implementation of IAnalyticsScript. It performs no analysis and can be used as a starting point for new scripts.
Processes candle data for a single instrument and builds a histogram showing how traded volume is distributed across price levels.
Loads candles for each selected security, calculates the Rate Of Change (ROC) indicator, and displays close prices together with ROC values on two separate charts.
Aggregates candle data by hour for the first selected instrument and fills a sortable grid with volumes. This highlights periods of the day with the most activity.
Extends the idea of TimeVolumeScript to multiple instruments. For every security it groups volumes by hour, then visualizes the result in a 3‑D surface chart where axes represent instruments and hours.
Demonstrates different drawing styles available in IAnalyticsChart. For each security the script plots close prices as a dashed line and volumes as a histogram.
Uses MathNet.Numerics.Statistics to compute the Pearson correlation matrix of close prices between all selected securities. The resulting matrix is rendered as a heatmap via IAnalyticsPanel.
Shows how to normalize close prices by the first observed value so that several securities can be compared on the same scale in a single chart.
Loads candles for each security and identifies the candle with the greatest range and the candle with the highest volume. The results are displayed on two charts using bubble series.