StockSharp.Diagram.Core
5.0.109
Prefix Reserved
dotnet add package StockSharp.Diagram.Core --version 5.0.109
NuGet\Install-Package StockSharp.Diagram.Core -Version 5.0.109
<PackageReference Include="StockSharp.Diagram.Core" Version="5.0.109" />
<PackageVersion Include="StockSharp.Diagram.Core" Version="5.0.109" />
<PackageReference Include="StockSharp.Diagram.Core" />
paket add StockSharp.Diagram.Core --version 5.0.109
#r "nuget: StockSharp.Diagram.Core, 5.0.109"
#:package StockSharp.Diagram.Core@5.0.109
#addin nuget:?package=StockSharp.Diagram.Core&version=5.0.109
#tool nuget:?package=StockSharp.Diagram.Core&version=5.0.109
Diagram.Core
Diagram.Core provides the fundamental building blocks for StockSharp's visual strategy designer. It contains the classes that allow trading algorithms to be represented as diagrams and executed as regular strategies.
Overview
- Diagram Elements and Sockets — base types such as
DiagramElementandDiagramSocketdefine nodes and their connection points. Elements can emit and receive values to build complex trading logic. - Composite Elements —
CompositionDiagramElementmanages nested diagrams and exposes parameters and sockets of child elements. - Strategy Integration —
DiagramStrategyruns a diagram as a regularStrategy, enabling optimization and backtesting. - Undo/Redo Support — interfaces like
IUndoManagerprovide transaction based change tracking. - External Code — the
DiagramExternalAttributeallows methods to be exposed as diagram elements. A small helper script (python/designer_extensions.py) makes this available in Python.
Getting Started
- Reference StockSharp.Diagram.Core from your project (via the StockSharp NuGet feed or by adding the project to your solution).
- Create diagram elements by deriving from
DiagramElementand define sockets and parameters. - Combine elements inside a
CompositionDiagramElementor execute them throughDiagramStrategy.
Example of exposing a Python function as an external element:
import clr
clr.AddReference("StockSharp.Diagram.Core")
from StockSharp.Diagram import DiagramExternalAttribute
# Decorator to mark methods as external diagram elements
def diagram_external(func):
func.__dict__['__diagram_external__'] = DiagramExternalAttribute()
return func
The above decorator adds the DiagramExternalAttribute to Python functions so they can be used in the Designer.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net6.0 is compatible. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 was computed. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
-
net6.0
- StockSharp.Alerts.Interfaces (>= 5.0.96)
- StockSharp.Algo (>= 5.0.229)
NuGet packages (2)
Showing the top 2 NuGet packages that depend on StockSharp.Diagram.Core:
| Package | Downloads |
|---|---|
|
StockSharp.Xaml.Diagram
Visual designer to create trading strategies. More info on web site https://stocksharp.com/store/ |
|
|
StockSharp.Studio.Runner
Runner - cross platform application to run any types of strategies |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 5.0.109 | 1,127 | 9/11/2025 |
| 5.0.108 | 368 | 9/1/2025 |
| 5.0.107 | 305 | 8/30/2025 |
| 5.0.106 | 376 | 8/10/2025 |
| 5.0.105 | 698 | 7/23/2025 |
| 5.0.104 | 653 | 7/22/2025 |
| 5.0.103 | 402 | 7/20/2025 |
| 5.0.102 | 293 | 7/14/2025 |
| 5.0.101 | 286 | 7/8/2025 |
| 5.0.100 | 257 | 7/4/2025 |
| 5.0.99 | 296 | 6/30/2025 |
| 5.0.98 | 499 | 6/24/2025 |
| 5.0.97 | 338 | 6/20/2025 |
| 5.0.96 | 353 | 6/18/2025 |
| 5.0.95 | 494 | 6/2/2025 |
| 5.0.94 | 613 | 5/14/2025 |
| 5.0.93 | 897 | 4/1/2025 |
| 5.0.92 | 316 | 3/29/2025 |
| 5.0.91 | 310 | 3/27/2025 |
| 5.0.90 | 646 | 2/28/2025 |