← Back

Diagram.Core Is Now a Standalone Core for Visual Strategies

Diagram.Core Is Now a Standalone Core for Visual Strategies
Diagram.Core Is Now a Standalone Core for Visual Strategies

The StockSharp.Diagram.Core project contains the core components of the visual strategy builder without depending on a specific user interface. A diagram is represented as a set of typed elements, input and output sockets, and connections between them. Composite elements can embed one diagram inside another and expose the parameters and sockets of child nodes.

DiagramStrategy runs such a diagram as a regular StockSharp strategy. This means the same model can be backtested, optimized, and used in a trading application. The core includes elements for market data, indicators, logical and mathematical operations, orders, positions, options, subscriptions, charts, and notifications. It also provides undo/redo interfaces and a mechanism for adding external C# or Python code as a diagram element.

A separate in-memory composition model assigns stable keys to nodes and reports changes to elements, connections, and sockets. This allows the execution core, diagram storage, and visual editor to evolve independently.

Comments (0)

Login or Create account, Log in or register to leave a comment

No comments yet. Be the first!