本页面尚未提供您的语言版本,显示其他语言版本。

Registering of orders from the chart

S# allows to register orders from the chart, to activate this feature, you need to set the Chart.OrderCreationMode property to "True", it is disabled by default.

API GUI Trading from chart

Orders for purchase will be registered using the Ctrl + Left Mouse Button combination.

Orders for sale will be registered using the Ctrl + Right Mouse Button combination.

The resulting order can be intercepted through the event of a new order creation.

ChartPanel.CreateOrder += (chartArea,order) =>
{
	order.Portfolio = _portfolio;
	order.Security = _security;
	order.Volume = 1;
	
	_connector.RegisterOrder(order);
};

Registered orders will be displayed as a special element for displaying orders ChartActiveOrdersElement.