Unable to get another ChartID's Object price level
-
I have been racking my brain on trying to get this to work.
What I am trying to do is copy an object from one chart ID and draw it onto the current chart the EA is on. The problem is that when I try to draw the object onto the current chart, it will not get the price level of the object on the other chart, therefore the price will be 2147483647
I have tried to use the code ObjectGetDouble() but to use that code, the object's name must be selected and I'm not sure how to select the names that have been stored in the For Each Object block since there could be multiple.
Another thing I have found during research is ChartRedraw(). When I tried to use that I got an error about Global Scope and I'm not sure what that is or how to fix it.
Here is my project: https://fxdreema.com/shared/a4SH6S1A
-
Not sure I fully understand. Do you mean checking the value from chart A to be plotted on chart B?
-
Thanks for the reply! Yes that is correct!

Just from doing some research, maybe it's that the Chart's ID exceeds 2147483647? From what I read, mql4 doesn't like integers bigger than that number.
-
@l-andorrà Maybe I should have tagged you in this so you can see it. I do appreciate the help!
-
@kelly-morgan
The big number is EMTPY_VALUE. That means you get no value at all. In other words, the object has no value at all, or you haven't got it .This happens very often if you use customize indicator. That's also why there are a lot of questions regarding customize indicator
In many cases, you need to get the value again and again until you get what you want
-
Exactly.