As well as opening the dealticket or trading-action dialogs, you can also open a chart with an attached deal ticket using
Note:
Framework.ChartDealTicket({
disposition: "dialog",
orderDefinition: {
tradingAction: FXB.OrderTypes.SELL,
instrumentId: "AUD/USD",
volume: 30000,
sl: {pips: 20}
},
allowInstrumentChange: false,
timeframe: 86400
}, function (Msg) {
if (Msg.result) {
// Chart has been closed
}
});
The possible parameters for
| Property | Description |
| orderDefinition | A complete order definition to pre-populate into the chart's deal ticket. This is the same definition which is used for the dealticket or trading-action dialogs and for SendOrder(). |
| disposition | Usually |
| allowInstrumentChange | Defaults to true, but is most commonly overridden to false so that the user cannot change the instrument specified in the parameters for |
| timeframe | Initial timeframe for the chart, defaulting to 3600 (H1) if omitted |
| loadIndicators[] loadDrawings[] loadEventMarkers[] loadBarHighlights[] | Same options as when displaying a trading chart as a dialog (or embedded in an iframe) |
The following settings for the dealticket or trading-action dialogs are not available when displaying a chart as a deal ticket: