mirror of
https://github.com/StockSharp/StockSharp.git
synced 2026-12-06 01:22:11 +00:00
10 lines
341 B
Python
10 lines
341 B
Python
import clr
|
|
|
|
clr.AddReference("StockSharp.Diagram.Core")
|
|
from StockSharp.Diagram import DiagramExternalAttribute
|
|
|
|
# Decorator to mark methods as external diagram elements
|
|
def diagram_external(func):
|
|
# Apply the DiagramExternalAttribute to the function
|
|
func.__dict__['__diagram_external__'] = DiagramExternalAttribute()
|
|
return func |