NinjaTrader Support Forum  
X

Attention!

This website will be down for maintenance from Friday May 24th at 6PM MDT until Saturday May 25th at 11AM MDT. We apologize for the inconvenience. If you need assistance during this time, please email sales@ninjatrader.com


Go Back   NinjaTrader Support Forum > Application Technical Support > Charting

Charting Support for NinjaTrader Advanced Charting.

Reply
 
Thread Tools Display Modes
Old 02-02-2011, 08:39 AM   #1
mishhh
Member
 
Join Date: Feb 2010
Posts: 38
Thanks: 0
Thanked 0 times in 0 posts
Default Display price and time dimensions for lines and rectangles?

Hello guys,

I wanted to say about a common feature in other softwares I've used, that I really miss.

I draw lines/angles + rectangles.
And I want to see the time and price sizes of these lines and rectangles when I create/resize them.
Right now, it's a pain in the $#% to draw what I need. I first have to use the ruler. Then create the line (or the rectangle).
Is it possible for me to overcome this by myself through programming?
Is it possible for ninja team to implement this simple and useful feature?

Kind of frustrated right now, hence this post

anyway,
I appreciate the progress of ninjatrader

Success!
mishhh is offline  
Reply With Quote
Old 02-02-2011, 08:45 AM   #2
NinjaTrader_Kyle
NinjaTrader Customer Service
 
NinjaTrader_Kyle's Avatar
 
Join Date: Dec 2008
Location: Denver, CO, USA
Posts: 7,353
Thanks: 146
Thanked 253 times in 249 posts
Default

Hi mishhh,

Thanks for taking the time to write in with this.


I will forward this enhancement request on to development for further consideration as a future addition to the software. Again, thanks for your feedback!
NinjaTrader_Kyle is offline  
Reply With Quote
Old 02-02-2011, 09:12 AM   #3
mishhh
Member
 
Join Date: Feb 2010
Posts: 38
Thanks: 0
Thanked 0 times in 0 posts
Default

You're welcome Kyle,

I understand, and I hope they will see this feature useful.

Anyway, I'm not aware if it's possible for me as a user to overcome this in case they have other priorities.

Is it possible? I'm not proficient with c#, but I can give it a try.

Success!
mishhh is offline  
Reply With Quote
Old 02-02-2011, 09:17 AM   #4
NinjaTrader_Kyle
NinjaTrader Customer Service
 
NinjaTrader_Kyle's Avatar
 
Join Date: Dec 2008
Location: Denver, CO, USA
Posts: 7,353
Thanks: 146
Thanked 253 times in 249 posts
Default

Hi mishhh,

This may be possible through custom programming, but it would require extensive programming in the non-supported areas of NinjaScript.
NinjaTrader_Kyle is offline  
Reply With Quote
Old 02-02-2011, 03:34 PM   #5
koganam
Senior Member
 
Join Date: Feb 2008
Location: Durham, North Carolina, USA
Posts: 3,218
Thanks: 24
Thanked 1,231 times in 1,002 posts
Send a message via Skype™ to koganam
Default

Could you be more precise? Maybe show a picture of what you want to see ?
koganam is offline  
Reply With Quote
Old 02-14-2011, 02:50 AM   #6
mishhh
Member
 
Join Date: Feb 2010
Posts: 38
Thanks: 0
Thanked 0 times in 0 posts
Default

Koganam,

Sorry for not replying sooner,
I didn't get an email when you posted.

Anyway, it's enough to open any metatrader platform, MT4 or MT5.
Each time when you create a line or a rectangle (or other shapes), you see the parameters of the shape in price and time (like 120 pips and 100 bars near the mouse)

Attached are 2 examples from MT5
Attached Images
File Type: jpg resizing_line.jpg (12.2 KB, 24 views)
File Type: jpg resizing_rectangle.jpg (7.2 KB, 18 views)
mishhh is offline  
Reply With Quote
Old 02-14-2011, 02:57 AM   #7
mishhh
Member
 
Join Date: Feb 2010
Posts: 38
Thanks: 0
Thanked 0 times in 0 posts
Default

One more thing or question,

I've investigated yesterday ninjascript in deeper detail (in help and the forum as well).
But I didn't find any relevant information to some customization of this sort.

In MT5, they expose some events, like OnCreate, OnDelete, OnResize etc...
They expose the mouse coordinates too, so it's quite easy to implement something like displaying info about some line or rectangle.

As I don't understand ninjascript too well, and its relationship with C#, I have a question:
How can I catch OnResize event for some object?
Is this strictly C# related?
Is ninjatrader exposing these events?

I would prefer to create some indicator just for this task, so I can jump from Metatrader to ninjatrader (as I study a lot).
mishhh is offline  
Reply With Quote
Old 02-14-2011, 07:20 AM   #8
NinjaTrader_Brett
NinjaTrader Customer Service
 
NinjaTrader_Brett's Avatar
 
Join Date: Dec 2009
Location: Denver, CO, USA
Posts: 6,498
Thanks: 109
Thanked 291 times in 280 posts
Default

Hello,

This would be all c# programming. Would suggest using google and searching for the term getting the mouse coordinates in c# or something like that to get information on how to do this.

This is all standard c# programming that you can add in however Unfortuanley we cannot support it.

Let me know if I can be of further assistance.
NinjaTrader_Brett is offline  
Reply With Quote
Old 02-14-2011, 07:31 AM   #9
mishhh
Member
 
Join Date: Feb 2010
Posts: 38
Thanks: 0
Thanked 0 times in 0 posts
Default

Thank you Brett for your answer.

I know C# is out of your support.

Still, I don't see what I could use from getting mouse coordinates.

I need to know when a line/rectangle get resized.

I don't see where you are pointing at.

(Of course getting mouse coordinates and translating these into time and price on chart would be extremely useful)
mishhh is offline  
Reply With Quote
Old 02-14-2011, 07:45 AM   #10
NinjaTrader_Brett
NinjaTrader Customer Service
 
NinjaTrader_Brett's Avatar
 
Join Date: Dec 2009
Location: Denver, CO, USA
Posts: 6,498
Thanks: 109
Thanked 291 times in 280 posts
Default

Hello,

This is Unfortuanley still falls under unsupported as we dont have any methods or exposing of the coords from a chart control stand point. What I was refereing too was just getting the basic .net framework exposed mouse control object.

http://www.ninjatrader.com/support/f...ad.php?t=22629

This link here may or may not assist you however. I found this in my search for information here.

Let me know if I can be of further assistance.
NinjaTrader_Brett is offline  
Reply With Quote
Old 02-14-2011, 07:49 AM   #11
mishhh
Member
 
Join Date: Feb 2010
Posts: 38
Thanks: 0
Thanked 0 times in 0 posts
Default

Thanks Brett, I will investigate your link.

To help me clarify an aspect of ninjatrader,
does ninjatrader expose events resulted from interaction between user and drawn objects?

in case not, does ninja team plan something about exposing these events in the future?

I guess this is enough for me to know for now.

Thank you again.
mishhh is offline  
Reply With Quote
Old 02-14-2011, 08:01 AM   #12
NinjaTrader_Brett
NinjaTrader Customer Service
 
NinjaTrader_Brett's Avatar
 
Join Date: Dec 2009
Location: Denver, CO, USA
Posts: 6,498
Thanks: 109
Thanked 291 times in 280 posts
Default

Hello,

Yes, when you draw a drawn object you can interface with it in NinjaScript. However you cannot create your own drawing objects in NinjaScript without unsupported coding.

iDrawObjectL

http://www.ninjatrader.com/support/h...drawobject.htm

Let me know if I can be of further assistance.
NinjaTrader_Brett is offline  
Reply With Quote
Old 02-14-2011, 08:09 AM   #13
mishhh
Member
 
Join Date: Feb 2010
Posts: 38
Thanks: 0
Thanked 0 times in 0 posts
Default

So the core question (it seems it's because my lack of understanding c# and ninjascript):

After creating some object, how will I know the object has been changed? resized?
I saw the interface IDrawObject, (methods and properties).

Though, I cannot see how I will know when the object is changed by user.
Can I treat this event through ninjascript functions?
Or will I treat this event though c#?
mishhh is offline  
Reply With Quote
Old 02-14-2011, 08:17 AM   #14
NinjaTrader_Brett
NinjaTrader Customer Service
 
NinjaTrader_Brett's Avatar
 
Join Date: Dec 2009
Location: Denver, CO, USA
Posts: 6,498
Thanks: 109
Thanked 291 times in 280 posts
Default

Hello,

There is no way to tell that its changed.

Its values will update when it is changed.

For example, you draw a box around Point A-B and want to display a text object above Point B. You can link to this drawing object and then draw yor text above everythings good.

Now lets say the user changes the points. The on the next OnBarUpdate() call the indicator or strategy will then again draw the text above the new location of Point B and change the text over automatically for you.

Therefor there really wasnt a need to an Event for user change here as its location is constantly queried from the strategy/indicator.

Let me know if I can be of further assistance.
NinjaTrader_Brett is offline  
Reply With Quote
Old 02-14-2011, 08:39 AM   #15
mishhh
Member
 
Join Date: Feb 2010
Posts: 38
Thanks: 0
Thanked 0 times in 0 posts
Default

I understand now.
It's exactly as in MT4.
In MT5 they've introduced events, but in MT4 there was no event available for the programmer.

Thank you Brett, it's much clearer now.
mishhh is offline  
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Bug: Horizontal grid lines interval breaks price display Specterx Version 7 Beta General Questions & Bug Reports 1 04-19-2010 08:24 AM
Pitchfork lines don't always display tommyjames Version 7 Beta General Questions & Bug Reports 5 01-28-2010 09:41 AM
How to display opening price? tim vorst Market Analyzer 1 09-04-2009 08:46 AM
time lag in price display between s/dom & chart dee50 SuperDOM and other Order Entry Windows 3 04-27-2009 11:31 AM
Price Display popup wsjalerts13 Charting 1 11-22-2008 08:43 AM


All times are GMT -6. The time now is 03:12 PM.