StockSharp.Diagram.Core 5.0.120

Prefix Reserved
There is a newer version of this package available.
See the version list below for details.
dotnet add package StockSharp.Diagram.Core --version 5.0.120
                    
NuGet\Install-Package StockSharp.Diagram.Core -Version 5.0.120
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="StockSharp.Diagram.Core" Version="5.0.120" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="StockSharp.Diagram.Core" Version="5.0.120" />
                    
Directory.Packages.props
<PackageReference Include="StockSharp.Diagram.Core" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add StockSharp.Diagram.Core --version 5.0.120
                    
#r "nuget: StockSharp.Diagram.Core, 5.0.120"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package StockSharp.Diagram.Core@5.0.120
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=StockSharp.Diagram.Core&version=5.0.120
                    
Install as a Cake Addin
#tool nuget:?package=StockSharp.Diagram.Core&version=5.0.120
                    
Install as a Cake Tool

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 DiagramElement and DiagramSocket define nodes and their connection points. Elements can emit and receive values to build complex trading logic.
  • Composite Elements — CompositionDiagramElement manages nested diagrams and exposes parameters and sockets of child elements.
  • Strategy Integration — DiagramStrategy runs a diagram as a regular Strategy, enabling optimization and backtesting.
  • Undo/Redo Support — interfaces like IUndoManager provide transaction based change tracking.
  • External Code — the DiagramExternalAttribute allows methods to be exposed as diagram elements. A small helper script (python/designer_extensions.py) makes this available in Python.

Getting Started

  1. Reference StockSharp.Diagram.Core from your project (via the StockSharp NuGet feed or by adding the project to your solution).
  2. Create diagram elements by deriving from DiagramElement and define sockets and parameters.
  3. Combine elements inside a CompositionDiagramElement or execute them through DiagramStrategy.

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 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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (5)

Showing the top 5 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

StockSharp.Xaml.Diagram.Avalonia

Avalonia diagram controls. More info on web site https://stocksharp.com/store/

StockSharp.Xaml.Diagram.Shared

Xaml.Diagram.Shared More info on web site https://stocksharp.com/store/

StockSharp.Designer.Shared

Designer shared components. More info on web site https://stocksharp.com/store/

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
5.0.121 268 10/25/2026
5.0.120 128 10/24/2026
5.0.119 154 9/13/2026
5.0.118 178 9/9/2026
5.0.117 153 8/26/2026
5.0.116 135 8/26/2026
5.0.115 141 8/20/2026
5.0.114 137 8/18/2026
5.0.113 139 8/15/2026
5.0.112 142 8/11/2026
5.0.111 156 7/30/2026
5.0.110 151 7/28/2026
5.0.109 1,627 9/11/2025
5.0.108 522 9/1/2025
5.0.107 360 8/30/2025
5.0.106 444 8/10/2025
5.0.105 759 7/23/2025
5.0.104 715 7/22/2025
5.0.103 455 7/20/2025
5.0.102 351 7/14/2025
Loading failed

The chart panel element names its collections in the interface's language
Unit properties that refuse no value are marked required
Localize public core enum captions with Display resources
Diagram strategy: a parameter that reshapes its element no longer stops the start
Forget the instruments a diagram strategy found at its start on a reset
Unwind the blocking waits left by the async rework and fix what it uncovered
Mark the blocking wrappers obsolete
Move instrument lookups and persistence to async
Let a formula's assembly go with the block that compiled it
Correct diagram runtime behavior