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)
How to capture a mouse click's location on chart in NT7.
THis is likely something that not too many people have experience doing in NT.
But what I am looking to do, is have an indicator, that once ENABLED(via button somewhere in the chart), that will capture the x/y position upon a mouse-click.
I'd then translate that into price and time.
I am thinking the ENABLE button would have to disable the native chart controls so that the clicking can occur. As I will be doing some reporting both onto the chart and to the output window.
But the most important things that I don't know how to do in NT7 are:
Create a button that will enable/disable the script while it is loaded onto a chart
Capture the X/Y position on mouse-click once that button is enabled
Just checking to see if anyone has done anything similar to this?
Thanks
Can you help answer these questions from other members on NexusFi?
@forrestang
I wrote some code for you - add button to tool strip, if button is enabled and you clicked on chart, indicator prints info about clicked coordinates to output window. If you like print or draw some info into chart, input your code into Plot() function.