Skip to content

Chart Operations

Chart Operations

Functions for setting chart properties (ChartSetInteger, ChartSetDouble, ChartSetString) are asynchronous and are used for sending update commands to a chart. If these functions are executed successfully, the command is included in the common queue of the chart events. Chart property changes are implemented along with handling of the events queue of this chart.

FunctionAction
ChartApplyTemplateApplies a specific template from a specified file to the chart
ChartSaveTemplateSaves current chart settings in a template with a specified name
ChartWindowFindReturns the number of a subwindow where an indicator is drawn
ChartTimePriceToXYConverts the coordinates of a chart from the time/price representation to the X and Y coordinates
ChartXYToTimePriceConverts the X and Y coordinates on a chart to the time and price values
ChartOpenOpens a new chart with the specified symbol and period
ChartCloseCloses the specified chart
ChartFirstReturns the ID of the first chart of the client terminal
ChartNextReturns the chart ID of the chart next to the specified one
ChartSymbolReturns the symbol name of the specified chart
ChartPeriodReturns the period value of the specified chart
ChartRedrawCalls a forced redrawing of a specified chart
ChartSetDoubleSets the double value for a corresponding property of the specified chart
ChartSetIntegerSets the integer value (datetime, int, color, bool or char) for a corresponding property of the specified chart
ChartSetStringSets the string value for a corresponding property of the specified chart
ChartGetDoubleReturns the double value property of the specified chart
ChartGetIntegerReturns the integer value property of the specified chart
ChartGetStringReturns the string value property of the specified chart
ChartNavigatePerforms shift of the specified chart by the specified number of bars relative to the specified position in the chart
ChartIDReturns the ID of the current chart
ChartIndicatorAddAdds an indicator with the specified handle into a specified chart window
ChartIndicatorDeleteRemoves an indicator with a specified name from the specified chart window
ChartIndicatorGetReturns the handle of the indicator with the specified short name in the specified chart window
ChartIndicatorNameReturns the short name of the indicator by the number in the indicators list on the specified chart window
ChartIndicatorsTotalReturns the number of all indicators applied to the specified chart window.
ChartWindowOnDroppedReturns the number (index) of the chart subwindow the Expert Advisor or script has been dropped to
ChartPriceOnDroppedReturns the price coordinate of the chart point the Expert Advisor or script has been dropped to
ChartTimeOnDroppedReturns the time coordinate of the chart point the Expert Advisor or script has been dropped to
ChartXOnDroppedReturns the X coordinate of the chart point the Expert Advisor or script has been dropped to
ChartYOnDroppedReturns the Y coordinate of the chart point the Expert Advisor or script has been dropped to
ChartSetSymbolPeriodChanges the symbol value and a period of the specified chart
ChartScreenShotProvides a screenshot of the chart of its current state in a GIF, PNG or BMP format depending on specified extension
Last updated on