The function creates an object with
the specified name, type, and the initial coordinates in the specified chart
subwindow of the specified chart. There are two variants of the function:
Anchor point coordinates
are set in pixels. You can select button anchoring corner from ENUM_BASE_CORNER.
The following script
creates and moves Button object on the chart. Special functions have been
developed to create and change graphical object's properties. You can use these
functions "as is" in your own applications.
I did use now a example for draw the buttonfrom the MQL4 Reference book.
I am asking now myself how i can get a info in the code abouth a click on the button, wich functions must be use to receive a button click?
Can you give a code example, for me as mql4 coder this new codes looks strange.
i have a button now on my chart...but i dont find easy to understand exampels for using OnChartEvent() function.
The button is an interesting object, but it was not an answer to my question.
What i need is the time of the most left candle that is actually visible.