S#.Diagram.Core More info on web site https://stocksharp.com/store/
$ dotnet add package StockSharp.Diagram.CoreDiagram.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.
DiagramElement and DiagramSocket define nodes and their connection points. Elements can emit and receive values to build complex trading logic.CompositionDiagramElement manages nested diagrams and exposes parameters and sockets of child elements.DiagramStrategy runs a diagram as a regular Strategy, enabling optimization and backtesting.IUndoManager provide transaction based change tracking.DiagramExternalAttribute allows methods to be exposed as diagram elements. A small helper script (python/designer_extensions.py) makes this available in Python.DiagramElement and define sockets and parameters.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.