- The Efficiency of MQL5 Indicators
- How can I trade stocks on Metatrader?
- Close all position function
Chart Operations
These are functions for working with charts. All chart operations are allowed in Expert Advisors and scripts only.
The functions defining the chart properties are actually used for sending change commands to the chart. If these functions are executed successfully, the command is included in the common queue of the chart events. The changes are implemented to the chart when handling the queue of the chart events.
Thus, do not expect an immediate visual update of the chart after calling these functions. Generally, the chart is updated automatically by the terminal following the change events - a new quote arrival, resizing the chart window, etc. Use ChartRedraw() function to forcefully update the chart.
Function |
Action |
Applies a specific template from a specified file to the chart |
|
Saves current chart settings in a template with a specified name |
|
Returns the number of a subwindow where an indicator is drawn |
|
Converts the coordinates of a chart from the time/price representation to the X and Y coordinates |
|
Converts the X and Y coordinates on a chart to the time and price values |
|
Opens a new chart with the specified symbol and period |
|
Closes the specified chart |
|
Returns the ID of the first chart of the client terminal |
|
Returns the chart ID of the chart next to the specified one |
|
Returns the symbol name of the specified chart |
|
Returns the period value of the specified chart |
|
Calls a forced redrawing of a specified chart |
|
Sets the double value for a corresponding property of the specified chart |
|
Sets the integer value (datetime, int, color, bool or char) for a corresponding property of the specified chart |
|
Sets the string value for a corresponding property of the specified chart |
|
Returns the double value property of the specified chart |
|
Returns the integer value property of the specified chart |
|
Returns the string value property of the specified chart |
|
Performs shift of the specified chart by the specified number of bars relative to the specified position in the chart |
|
Returns the ID of the current chart |
|
Adds an indicator with the specified handle into a specified chart window |
|
Removes an indicator with a specified name from the specified chart window |
|
Returns the handle of the indicator with the specified short name in the specified chart window |
|
Returns the short name of the indicator by the number in the indicators list on the specified chart window |
|
Returns the number of all indicators applied to the specified chart window. |
|
Returns the number (index) of the chart subwindow the Expert Advisor or script has been dropped to |
|
Returns the price coordinate of the chart point the Expert Advisor or script has been dropped to |
|
Returns the time coordinate of the chart point the Expert Advisor or script has been dropped to |
|
Returns the X coordinate of the chart point the Expert Advisor or script has been dropped to |
|
Returns the Y coordinate of the chart point the Expert Advisor or script has been dropped to |
|
Changes the symbol value and a period of the specified chart |
|
Provides a screenshot of the chart of its current state in a GIF, PNG or BMP format depending on specified extension |
Hello Forum
Does anyone here know how can I get the OHLC and volume info for a certain candle to my EA by clicking on that candle.
The info is displayed in the data window and corresponds to mouse cursor position, so functionality
definitely exists, but i was not able to find any reference that helps
Try this.
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use