Download MetaTrader 5

How to get, use or find the value of a certain objects?

To add comments, please log in or register
Victor Ian Torres
198
Victor Ian Torres  
Hello guys I'm currently trying to make an EA which will get the value of a certain indicator using iCustom.
This indicator is auto fibo, I want to get the values of each fibo levels and set it as the takeprofit, Do you have any ideas how to do that?

Btw. I tried using this: 
but I don't know if I am doing it correctly.
ObjectGetDouble - Object Functions - MQL4 Reference
ObjectGetDouble - Object Functions - MQL4 Reference
  • docs.mql4.com
ObjectGetDouble - Object Functions - MQL4 Reference
Geldberg Geldstein
3236
Geldberg Geldstein  
Yes, at first you find the object (ObjectFind), after that you get (ObjectGet) the price value (OBJPROP_PRICE1)
Victor Ian Torres
198
Victor Ian Torres  
Ghenadie Tumco:
Yes, at first you find the object (ObjectFind), after that you get (ObjectGet) the price value (OBJPROP_PRICE1)

What if I have 1 fibo and it has 5 Fibo levels and I want to get the value of a specific level?  Example on the picture.
Files:
Sample.png 24 kb
Geldberg Geldstein
3236
Geldberg Geldstein  
Types and Properties of Graphical Objects - Appendixes - MQL4 Tutorial
Types and Properties of Graphical Objects - Appendixes - MQL4 Tutorial
  • book.mql4.com
Types and Properties of Graphical Objects - Appendixes - MQL4 Tutorial
Victor Ian Torres
198
Victor Ian Torres  
Ghenadie Tumco:

OBJPROP_FIRSTLEVEL+?

Types and Properties of Graphical Objects


Sorry my bad, you're right hehe. Can you tell me the exact format please, I'm new to mql4 language.

To add comments, please log in or register