You can display the platform's standard deal ticket, instead of placing an order directly in your own code.
MyTrader has three related but separate trading dialogs:
The dealticket. This handles placement of new orders, and also has a subsidiary panel for carrying out actions across a whole market (e.g. closing all EUR/USD trades).
The trading-action. This embeds the
Opening a chart with an attached deal ticket. The user can see their prospective new order drawn on the chart.
All three dialogs accept the same type of orderDefinition, described below.