Positioning Constants
Overview
ENUM_CHART_POSITION is an enumeration defining possible positions for chart navigation.
Constants
Usage
These constants are used as the position parameter in the ChartNavigate() function.
Example
long handle = ChartOpen("EURUSD", PERIOD_H12);
if (handle != 0) {
ChartSetInteger(handle, CHART_AUTOSCROLL, false);
ChartSetInteger(handle, CHART_SHIFT, true);
ChartSetInteger(handle, CHART_MODE, CHART_LINE);
ResetLastError();
bool res = ChartNavigate(handle, CHART_END, 150);
if (!res) Print("Navigate failed. Error = ", GetLastError());
ChartRedraw();
}