You can use ChartChange() to populate and display a chart's deal ticket. You supply
Framework.ChartChange({
mode: "active", // or "all", or "single" plus a .chartId value
command: "populate-deal-ticket",
orderDefinition: {
tradingAction: FXB.OrderTypes.SELL,
volume: 30000,
sl: {pips: 30}
}
});
A couple of notes:
When displaying a chart in a dialog or in an iframe, you can also populate the deal ticket via the initial settings when creating the chart.
Any