The objects will be created with the objectcreate command and are so called arrows, but they can have almost every kind of form you can. When you need to draw a vertical line on charts for better visual orientation you can use following code to do it. Mql4 book pdf format integer computer science data type. Draw vertical line at specified bar strategyquant forum. Types and properties of graphical objects appendixes mql4 tutorial. I tried to implement this into my script and it works great if you need to place only one arrow. The function creates an object with the specified name, type, and the initial coordinates in the specified chart subwindow of the specified chart. Arrow in chart mql4 and metatrader 4 mql4 programming forum. Object properties objects constants standard constants, enumerations and structures mql4 reference.
A necessary character can be set using the objectsetinteger function. Mql4 book appendixes types and properties of graphical objects. I have an indicator that writes new arrows to a csv. For example, these could be arrows showing in what direction you should open positions. Mql4 book pdf format free ebook download as pdf file. Have the arrow show the text when you mouse over it. The arrow symbols do not have separate adjustability in width and height, its just. For drawing any graphical object the universal function objectcreate is used. Im learning to code in mq4 and i want to place arrows on a chart at the most current. To check the command execution result, you can use. Arrow with text question symbols mql4 and metatrader 4. To create objects on a different size, an asynchronous function call is used, and objectcreate only returns the result of command adding to the chart queue.