A call to
Framework.CreateDialog({
type: "chart",
disposition: "floating",
context: {instrumentId: "GBP/USD", timeframe: 3600},
settings: {
// Lock the instrument selector, and also hide the timeframe selector,
// making that unchangeable too
lockInstrument: true,
hideTimeframe: true
}
});
The
| Property | Type | Description |
| hideInstrument | Boolean | Hides the toolbar field for changing the chart instrument |
| lockInstrument | Boolean | Locks the toolbar field for changing the chart instrument (irrelevant if |
| hideTimeframe | Boolean | Hides the toolbar field for changing the timeframe |
| initialPriceStyle | String | Visual price-style style for the chart. See below. |
| scrollToEndDate | Scrolls the chart backwards so that the specified time is the last visible bar. For example: useful when displaying a historic trade, and setting | |
| closeOnOrderPlacement | Boolean | Only applicable when using |
An
| Price-style | Description |
| candle | Candle chart (filled) |
| hollowCandle | Hollow candles |
| coloredBar | OHLC bars |
| coloredHLCBar | HLC bars |
| line | Line chart |
| mountain | Mountain (area) chart |
| heikinAshi | Heikin Ashi candles |
| lineBreak | Line-break chart |
| kagi | Kagi chart |
| pointAndFigure | Point & Figure chart |
| renko2 | Renko chart |
| range | Range chart |
Note: the parameter/periodicity for styles such as Renko and Kagi cannot currently be provided by the caller. A default is always used.