Chart Representation
Overview
Price charts can be displayed as bars, candlesticks, or a line.
Chart Display Modes
ChartSetInteger(chart_handle, CHART_MODE, chart_mode)chart_mode values (ENUM_CHART_MODE):CHART_BARS: Display as bars.
* CHART_CANDLES: Display as Japanese candlesticks.
* CHART_LINE: Display as a line using Close prices.Volume Display Modes
ChartSetInteger(chart_handle, CHART_SHOW_VOLUMES, volume_mode)volume_mode values (ENUM_CHART_VOLUME_MODE):CHART_VOLUME_HIDE: Volumes are not shown.
* CHART_VOLUME_TICK: Tick volumes are shown.Related Functions
ChartSetIntegerChartIDChartNavigateExample Snippet
long handle = ChartID();
if (handle > 0) {
ChartSetInteger(handle, CHART_AUTOSCROLL, false);
ChartSetInteger(handle, CHART_SHIFT, true);
ChartSetInteger(handle, CHART_MODE, CHART_CANDLES);
ChartNavigate(handle, CHART_CURRENT_POS, 100);
ChartSetInteger(handle, CHART_SHOW_VOLUMES, CHART_VOLUME_TICK);
}
Previous
arrow_back
Positioning constants