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
                    
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.109" />
                    
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.109" />
                    
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.109
                    
#r "nuget: StockSharp.Diagram.Core, 5.0.109"
                    
#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.109
                    
#: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.109
                    
Install as a Cake Addin
#tool nuget:?package=StockSharp.Diagram.Core&version=5.0.109
                    
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 ElementsCompositionDiagramElement manages nested diagrams and exposes parameters and sockets of child elements.
  • Strategy IntegrationDiagramStrategy 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 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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

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
Loading failed