Trading algorithms. More info on web site https://stocksharp.com/store/
$ dotnet add package StockSharp.AlgoStockSharp.Algo is the core algorithmic trading library used throughout the StockSharp platform. It provides the building blocks for creating trading bots, managing market data, handling order routing, and simulating strategies against historical data. The library targets .NET 6.0 and can be used in desktop, server, or cloud applications.
The typical entry point for working with the library is the Connector class. Below is a very simplified example that demonstrates how to run a custom strategy using historical data:
using StockSharp.Algo;
using StockSharp.Algo.Strategies;
using StockSharp.Algo.Testing;
var connector = new HistoryEmulationConnector(securityProvider, portfolioProvider, storageRegistry);
var myStrategy = new MyStrategy { Connector = connector, Portfolio = myPortfolio, Security = mySecurity };
connector.NewStrategy += strategy => strategy.Start();
connector.Connect();
A full‑fledged application will include market data subscriptions, order registration, and more advanced strategy logic.
Comprehensive documentation for the API and subsystems is available at the StockSharp documentation website.
Questions and discussions are welcome in the community chat.