PDA

View Full Version : Mouseclick event


Mindset
10-27-2008, 06:08 AM
I would like to know the syntax for taking bar values (high/low) into two variables when a historic bar is clicked by the mouse.
Can anyone assist, point me in the right direction?

NinjaTrader_Ray
10-27-2008, 08:07 AM
There is no supported mouse click event in NinjaScript at this time.

Mindset
10-27-2008, 08:13 AM
How strange - does the data box not use a form of mouseclick event?
Perhaps I can put it forward as a suggested development?

So is there anyway to reference a particular bar by the use of the mouse at all? I ask because I use mtpredictor and that has a form of this - perhaps the coding is more complicated than just NS?

NinjaTrader_Ben
10-27-2008, 09:07 AM
Hello,


It is not supported, but may be possible using advanced programming.

mrlogik
10-27-2008, 09:24 AM
mindset.

Google C# mouse event (http://www.codeproject.com/KB/miscctrl/MouseEvents.aspx).

Mindset
10-27-2008, 10:08 AM
Mrlogik
thank you but I have only been learning NS for the last 2 weeks or so. I am at the " a little knowledge is a dangerous thing " stage.
I think I am going to have to get a book or do a course on C# - I get some of it but clearly not enough to understand what I want to do yet.

I learnt easy language through deciphering the code and help on the forums from other users - NT seems a little more difficult than that and I have no real desire to learn programming per se but it looks like that is no longer an option.
Mostly I just want to trade!

Mindset
07-15-2009, 08:58 AM
Well I brought myself a couple of books and at least I can now get my way around most of the code that is posted here and create a little of my own.
It seems that the advanced stuff like mouse clicks can be done but at a price. In the end it is relatively straightforward but the lack of documentation on Ninja Script esp references makes it very difficult if not impossible for the average trader/programmer.

I can see that continuing to learn C# is the way forward but I sincerely hope that v7 when (if?) its released has much more documentation so that if the forums don't support it at least you can attempt it yourself rather than being left in the dark.
eg how to set a control, how to get at the toolbar,...

NinjaTrader_Bertrand
07-15-2009, 09:05 AM
Mindset, we're working on enhancing our educational resources for NinjaScript with NinjaTrader 7 - thanks for the input and suggestion, I'll forward it, but please keep in mind that using unsupported code could mean your codes 'breaks' in future versions and thus would need to be updated.

Mindset
07-15-2009, 09:09 AM
Exactly why I can't resell it and recoup some of the cost! :-)