I have been studying c# for a couple of months now and have coded one successful indicator thus far. I am now attempting to code a fairly complex tool in Ninja but have been having trouble getting it started so I figure I'll try to learn all the little bits and pieces simply, and separately so that it should become easier to put it all together.
So here goes: Using mouse clicks, I would like to draw a ray, say from a high through a low on a bar chart.
The X (price), and Y (time), values are important and are to be used in other calculations, for other functions in the code.
So I`m thinking I`d like to store these as variables? Would that be the way to go?
I have seen the DrawRay() method and IRay object in the help file. I think this is what I should probably use, but am uncertain as to how exactly to use them for my purpose.
I`d love it if someone can give me further explanation than what the help file does?
The other part of this code that is troubling me is the mouse events.
What would the code look like to achieve what I need here?
Thanks,
Ken.
Comment