For functions ChartSetInteger() and ChartGetInteger()
ID | Description | Property Type |
CHART_SHOW | Price chart drawing. If false, drawing any price chart attributes is disabled and all chart border indents are eliminated, including time and price scales, quick navigation bar, Calendar event labels, trade labels, indicator and bar tooltips, indicator subwindows, volume histograms, etc. Disabling the drawing is a perfect solution for creating a custom program interface using the graphical resources. The graphical objects are always drawn regardless of the CHART_SHOW property value. | bool |
Identifying "Chart" (OBJ_CHART) object — returns true for a graphical object. Returns false for a real chart | bool r/o | |
Show chart on top of other charts | bool w/o | |
Scrolling the chart horizontally using the left mouse button. Vertical scrolling is also available if the value of any following properties is set to true: CHART_SCALEFIX, CHART_SCALEFIX_11 or CHART_SCALE_PT_PER_BAR | bool | |
Send notifications of mouse move and mouse click events (CHARTEVENT_MOUSE_MOVE) to all mql5 programs on a chart | bool | |
Send a notification of an event of new object creation (CHARTEVENT_OBJECT_CREATE) to all mql5-programs on a chart | bool | |
Send a notification of an event of object deletion (CHARTEVENT_OBJECT_DELETE) to all mql5-programs on a chart | bool | |
Chart type (candlesticks, bars or line) | enum ENUM_CHART_MODE | |
Price chart in the foreground | bool | |
Mode of price chart indent from the right border | bool | |
Mode of automatic moving to the right border of the chart | bool | |
CHART_KEYBOARD_CONTROL | Allow managing the chart using a keyboard ("Home", "End", "PageUp", "+", "-", "Up arrow", etc.). Setting CHART_KEYBOARD_CONTROL to false disables chart scrolling and scaling while leaving intact the ability to receive the keys pressing events in OnChartEvent(). | bool |
CHART_QUICK_NAVIGATION | Allow the chart to intercept Space and Enter key strokes to activate the quick navigation bar. The quick navigation bar automatically appears at the bottom of the chart after double-clicking the mouse or pressing Space/Enter. It allows you to quickly change a symbol, timeframe and first visible bar date. | bool |
Scale | int from 0 to 5 | |
Fixed scale mode | bool | |
Scale 1:1 mode | bool | |
Scale to be specified in points per bar | bool | |
Show OHLC values in the upper left corner | bool | |
Display Bid values as a horizontal line in a chart | bool | |
Display Ask values as a horizontal line in a chart | bool | |
Display Last values as a horizontal line in a chart | bool | |
Display vertical separators between adjacent periods | bool | |
Display grid in the chart | bool | |
Display volume in the chart | ||
Display textual descriptions of objects (not available for all objects) | bool | |
The number of bars on the chart that can be displayed | int r/o | |
The total number of chart windows, including indicator subwindows | int r/o | |
Visibility of subwindows | bool r/o modifier - subwindow number | |
Chart window handle (HWND) | int r/o | |
The distance between the upper frame of the indicator subwindow and the upper frame of the main chart window, along the vertical Y axis, in pixels. In case of a mouse event, the cursor coordinates are passed in terms of the coordinates of the main chart window, while the coordinates of graphical objects in an indicator subwindow are set relative to the upper left corner of the subwindow. The value is required for converting the absolute coordinates of the main chart to the local coordinates of a subwindow for correct work with the graphical objects, whose coordinates are set relative to the upper left corner of the subwindow frame. | int r/o modifier - subwindow number | |
Number of the first visible bar in the chart. Indexing of bars is the same as for timeseries. | int r/o | |
Chart width in bars | int r/o | |
Chart width in pixels | int r/o | |
Chart height in pixels | int modifier - subwindow number | |
Chart background color | color | |
Color of axes, scales and OHLC line | color | |
Grid color | color | |
Color of volumes and position opening levels | color | |
Color for the up bar, shadows and body borders of bull candlesticks | color | |
Color for the down bar, shadows and body borders of bear candlesticks | color | |
Line chart color and color of "Doji" Japanese candlesticks | color | |
Body color of a bull candlestick | color | |
Body color of a bear candlestick | color | |
Bid price level color | color | |
Ask price level color | color | |
Line color of the last executed deal price (Last) | color | |
Color of stop order levels (Stop Loss and Take Profit) | color | |
Displaying trade levels in the chart (levels of open positions, Stop Loss, Take Profit and pending orders) | bool | |
Permission to drag trading levels on a chart with a mouse. The drag mode is enabled by default (true value) | bool | |
Showing the time scale on a chart | bool | |
Showing the price scale on a chart | bool | |
Showing the "One click trading" panel on a chart | bool | |
Chart window is maximized | bool | |
Chart window is minimized | bool |
example:
bool oneclick=ChartGetInteger(0,CHART_SHOW_ONE_CLICK);
if(oneclick==0)
{
// panel is not visible on chart....
}
else if(oneclick==1)
{
// panel is visible on chart....
}
//+------------------------------------------------------------------+
For functions ChartSetInteger() and ChartGetInteger()
ID | Description | Property Type |
CHART_SHOW | Price chart drawing. If false, drawing any price chart attributes is disabled and all chart border indents are eliminated, including time and price scales, quick navigation bar, Calendar event labels, trade labels, indicator and bar tooltips, indicator subwindows, volume histograms, etc. Disabling the drawing is a perfect solution for creating a custom program interface using the graphical resources. The graphical objects are always drawn regardless of the CHART_SHOW property value. | bool |
Identifying "Chart" (OBJ_CHART) object — returns true for a graphical object. Returns false for a real chart | bool r/o | |
Show chart on top of other charts | bool w/o | |
Scrolling the chart horizontally using the left mouse button. Vertical scrolling is also available if the value of any following properties is set to true: CHART_SCALEFIX, CHART_SCALEFIX_11 or CHART_SCALE_PT_PER_BAR | bool | |
Send notifications of mouse move and mouse click events (CHARTEVENT_MOUSE_MOVE) to all mql5 programs on a chart | bool | |
Send a notification of an event of new object creation (CHARTEVENT_OBJECT_CREATE) to all mql5-programs on a chart | bool | |
Send a notification of an event of object deletion (CHARTEVENT_OBJECT_DELETE) to all mql5-programs on a chart | bool | |
Chart type (candlesticks, bars or line) | enum ENUM_CHART_MODE | |
Price chart in the foreground | bool | |
Mode of price chart indent from the right border | bool | |
Mode of automatic moving to the right border of the chart | bool | |
CHART_KEYBOARD_CONTROL | Allow managing the chart using a keyboard ("Home", "End", "PageUp", "+", "-", "Up arrow", etc.). Setting CHART_KEYBOARD_CONTROL to false disables chart scrolling and scaling while leaving intact the ability to receive the keys pressing events in OnChartEvent(). | bool |
CHART_QUICK_NAVIGATION | Allow the chart to intercept Space and Enter key strokes to activate the quick navigation bar. The quick navigation bar automatically appears at the bottom of the chart after double-clicking the mouse or pressing Space/Enter. It allows you to quickly change a symbol, timeframe and first visible bar date. | bool |
Scale | int from 0 to 5 | |
Fixed scale mode | bool | |
Scale 1:1 mode | bool | |
Scale to be specified in points per bar | bool | |
Show OHLC values in the upper left corner | bool | |
Display Bid values as a horizontal line in a chart | bool | |
Display Ask values as a horizontal line in a chart | bool | |
Display Last values as a horizontal line in a chart | bool | |
Display vertical separators between adjacent periods | bool | |
Display grid in the chart | bool | |
Display volume in the chart | ||
Display textual descriptions of objects (not available for all objects) | bool | |
The number of bars on the chart that can be displayed | int r/o | |
The total number of chart windows, including indicator subwindows | int r/o | |
Visibility of subwindows | bool r/o modifier - subwindow number | |
Chart window handle (HWND) | int r/o | |
The distance between the upper frame of the indicator subwindow and the upper frame of the main chart window, along the vertical Y axis, in pixels. In case of a mouse event, the cursor coordinates are passed in terms of the coordinates of the main chart window, while the coordinates of graphical objects in an indicator subwindow are set relative to the upper left corner of the subwindow. The value is required for converting the absolute coordinates of the main chart to the local coordinates of a subwindow for correct work with the graphical objects, whose coordinates are set relative to the upper left corner of the subwindow frame. | int r/o modifier - subwindow number | |
Number of the first visible bar in the chart. Indexing of bars is the same as for timeseries. | int r/o | |
Chart width in bars | int r/o | |
Chart width in pixels | int r/o | |
Chart height in pixels | int modifier - subwindow number | |
Chart background color | color | |
Color of axes, scales and OHLC line | color | |
Grid color | color | |
Color of volumes and position opening levels | color | |
Color for the up bar, shadows and body borders of bull candlesticks | color | |
Color for the down bar, shadows and body borders of bear candlesticks | color | |
Line chart color and color of "Doji" Japanese candlesticks | color | |
Body color of a bull candlestick | color | |
Body color of a bear candlestick | color | |
Bid price level color | color | |
Ask price level color | color | |
Line color of the last executed deal price (Last) | color | |
Color of stop order levels (Stop Loss and Take Profit) | color | |
Displaying trade levels in the chart (levels of open positions, Stop Loss, Take Profit and pending orders) | bool | |
Permission to drag trading levels on a chart with a mouse. The drag mode is enabled by default (true value) | bool | |
Showing the time scale on a chart | bool | |
Showing the price scale on a chart | bool | |
Showing the "One click trading" panel on a chart | bool | |
Chart window is maximized | bool | |
Chart window is minimized | bool |
example:
bool oneclick=ChartGetInteger(0,CHART_SHOW_ONE_CLICK);
if(oneclick==0)
{
// panel is not visible on chart....
}
else if(oneclick==1)
{
// panel is visible on chart....
}
//+------------------------------------------------------------------+
THANK YOU!! :)
works perfectly

- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
Hi guys i am still a beginner at programming, and only have one problem with my indicator. When I show the 'one click trading' tool from mt4
it hide my indicator. I've seen some indicator that change position when the 'one click trading' is ON. Do you guys know the name of the one click trading
so i can do :
if (one click trading = ON)
{
original position
} else
{
new position
}
thank you
Whoseen