There are two ways of displaying one of the platform's trading charts:
Widgets and scripts (and even UDIXes) can display a trading chart as a dialog, using
A widget can embed a trading chart in an iframe, using
The caller can set the initial market and timeframe of the chart, and can pre-load objects onto the chart such as indicators and drawings.
After creation, the caller can then further modify the chart, changing the indicators and drawings which are displayed.
Note: the framework also provides ChartDealTicket(), described separately, which is a simplified wrapper for displaying a chart as a deal-ticket dialog. It is equivalent to the features described here for setting the chart instrument (and timeframe), populating the chart's deal ticket, and setting closeOnOrderPlacement.