StockSharp.Diagram.Core
5.0.110
Prefix Reserved
See the version list below for details.
dotnet add package StockSharp.Diagram.Core --version 5.0.110
NuGet\Install-Package StockSharp.Diagram.Core -Version 5.0.110
<PackageReference Include="StockSharp.Diagram.Core" Version="5.0.110" />
<PackageVersion Include="StockSharp.Diagram.Core" Version="5.0.110" />
<PackageReference Include="StockSharp.Diagram.Core" />
paket add StockSharp.Diagram.Core --version 5.0.110
#r "nuget: StockSharp.Diagram.Core, 5.0.110"
#:package StockSharp.Diagram.Core@5.0.110
#addin nuget:?package=StockSharp.Diagram.Core&version=5.0.110
#tool nuget:?package=StockSharp.Diagram.Core&version=5.0.110
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 | net10.0 is compatible. 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. |
-
net10.0
- StockSharp.Alerts.Interfaces (>= 5.0.97)
- StockSharp.Algo.Indicators (>= 5.0.0)
- StockSharp.Algo.Strategies (>= 5.0.134)
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.115 | 52 | 8/20/2026 |
| 5.0.114 | 72 | 8/18/2026 |
| 5.0.113 | 94 | 8/15/2026 |
| 5.0.112 | 94 | 8/11/2026 |
| 5.0.111 | 111 | 7/30/2026 |
| 5.0.110 | 109 | 7/28/2026 |
| 5.0.109 | 1,406 | 9/11/2025 |
| 5.0.108 | 434 | 9/1/2025 |
| 5.0.107 | 332 | 8/30/2025 |
| 5.0.106 | 408 | 8/10/2025 |
| 5.0.105 | 730 | 7/23/2025 |
| 5.0.104 | 681 | 7/22/2025 |
| 5.0.103 | 428 | 7/20/2025 |
| 5.0.102 | 324 | 7/14/2025 |
| 5.0.101 | 320 | 7/8/2025 |
| 5.0.100 | 289 | 7/4/2025 |
| 5.0.99 | 331 | 6/30/2025 |
| 5.0.98 | 537 | 6/24/2025 |
| 5.0.97 | 365 | 6/20/2025 |
| 5.0.96 | 384 | 6/18/2025 |
Migrate core APIs to async equivalents
Diagram.Core: de-stub the in-memory composition behavior and rename Dummy to InMemory
Migrate SmartFormat usage from Ecng.SmartFormat to SmartFormat 3.x
Strategy. Alert methods.
PositionManagement
Algo.Indicators, Algo.Testing, Algo.Strategies separated projects.
PositionModifyElement. Increase mode fix
Derivatives refactoring.
UnitTypes. Limit made obsolete.
DateTimeOffset -> DateTime UTC
Fix critical bugs in Diagram.Core
IndicatorDiagramElement. Support nullable property types.