Welcome to NexusFi: the best trading community on the planet, with over 150,000 members Sign Up Now for Free
Genuine reviews from real traders, not fake reviews from stealth vendors
Quality education from leading professional traders
We are a friendly, helpful, and positive community
We do not tolerate rude behavior, trolling, or vendors advertising in posts
We are here to help, just let us know what you need
You'll need to register in order to view the content of the threads and start contributing to our community. It's free for basic access, or support us by becoming an Elite Member -- see if you qualify for a discount below.
-- Big Mike, Site Administrator
(If you already have an account, login at the top of the page)
Unfortunately this is not possible/supported for this object. The member is apparently not public. I try to get all members with the BindingFlags functionality.
The issue is the .ToString() method returns only 2 digits after comma for StartY and EndY. You tested it probably with DAX Future. Try it with EURUSD and you will see the problem. When you draw a line from 1.1356 to 1.1390 then it returns always 1.14 and this is useless.
I wrote a small program which returns all field and property values from ChartObject and there is definitely no EndX - see the attachment from my previous post. I don't understand from where .ToString() gets EndX?!
The issue is the .ToString() method returns only 2 digits after comma for StartY and EndY. You tested it probably with DAX Future. Try it with EURUSD and you will see the problem. When you draw a line from 1.1356 to 1.1390 then it returns always 1.14 and this is useless.
I wrote a small program which returns all field and property values from ChartObject and there is definitely no EndX - see the attachment from my previous post. I don't understand from where .ToString() gets EndX?!
Yes, that's why I gave you the earlier example showing the 'ToString("0.00000") to get 5 places.
And look in the Ninja manual to see them using ILine objects from the DrawObjects list.
Yes, but a line has a StartY and EndY and here I get only the start Y value.
Which is why you need the DrawObject list to get an object that you can treat as an ILine which does have startY and endY, and can match tags with the ChartObjects list if you want to.
[you showed greg's code again, not the two versions I gave you, there is information in both and you need to get more information from the manual]