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)
1. passing the mouse coordinates for every move (while mouse within active chart) into variables.
2. correcting the Y variable by n ticks.
I have no idea as to how that whole OnMouseMove works as my coding skills are VERY limited, and I haven't even got the slightest idea how to get the size of a tick converted into a y distance.
The background to this is that I want to create an indicator that "attaches" small horizontal lines to the crosshair at +/- n ticks from the horizontal crosshair line.
I'd be really grateful for any help.
vvhg
PS: If I try this without help, I probably end up writing the worst virus imaginable!
Hic Rhodos, hic salta.
Can you help answer these questions from other members on NexusFi?
Yes, I did read the thread, that's what triggered my idea in the first place. You are capturing the xy of clicks there, right?
My C# abilitiesare very limited though, so I can't modify it for mouse movement without the click.
Thanks for the warning, I will be careful, especially as I haven't got a clou what you are talking about, I just have the feeling this is waaaay out of my league.
All I know is, I basically want to do sth similar to what you posted in the thread you linked to. The difference is that I want to position the levels relative to the mouse location.
Nearly there now, the only problem is that I seem to get very strange values from ChartHelper:
chartHelper.CalcTickHeight() returns sth like -2147483648. And if I multiply it by 20 the result is zero. Any ideas? Or do you need the code?
I still can't get any values from ChartHelper that make any sense. Perhaps one of the coders that are better than me (not very hard at all!) can have a look?
Here is my disgraceful copy/paste artwork(probably good for a laugh at least) :