![]() |
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
|
|||||||
| Charting Support for NinjaTrader Advanced Charting. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Member
Join Date: Feb 2010
Posts: 38
Thanks: 0
Thanked 0 times in 0 posts
|
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! |
|
|
|
|
|
#2 |
|
NinjaTrader Customer Service
Join Date: Dec 2008
Location: Denver, CO, USA
Posts: 7,353
Thanks: 146
Thanked 253 times in 249 posts
|
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!
Kyle
NinjaTrader Customer Service |
|
|
|
|
|
#3 |
|
Member
Join Date: Feb 2010
Posts: 38
Thanks: 0
Thanked 0 times in 0 posts
|
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! |
|
|
|
|
|
#4 |
|
NinjaTrader Customer Service
Join Date: Dec 2008
Location: Denver, CO, USA
Posts: 7,353
Thanks: 146
Thanked 253 times in 249 posts
|
Hi mishhh,
This may be possible through custom programming, but it would require extensive programming in the non-supported areas of NinjaScript.
Kyle
NinjaTrader Customer Service |
|
|
|
|
|
#5 |
|
Senior Member
|
Could you be more precise? Maybe show a picture of what you want to see ?
|
|
|
|
|
|
#6 |
|
Member
Join Date: Feb 2010
Posts: 38
Thanks: 0
Thanked 0 times in 0 posts
|
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 |
|
|
|
|
|
#7 |
|
Member
Join Date: Feb 2010
Posts: 38
Thanks: 0
Thanked 0 times in 0 posts
|
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). |
|
|
|
|
|
#8 |
|
NinjaTrader Customer Service
Join Date: Dec 2009
Location: Denver, CO, USA
Posts: 6,498
Thanks: 109
Thanked 291 times in 280 posts
|
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.
Brett
NinjaTrader Customer Service |
|
|
|
|
|
#9 |
|
Member
Join Date: Feb 2010
Posts: 38
Thanks: 0
Thanked 0 times in 0 posts
|
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) |
|
|
|
|
|
#10 |
|
NinjaTrader Customer Service
Join Date: Dec 2009
Location: Denver, CO, USA
Posts: 6,498
Thanks: 109
Thanked 291 times in 280 posts
|
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.
Brett
NinjaTrader Customer Service |
|
|
|
|
|
#11 |
|
Member
Join Date: Feb 2010
Posts: 38
Thanks: 0
Thanked 0 times in 0 posts
|
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. |
|
|
|
|
|
#12 |
|
NinjaTrader Customer Service
Join Date: Dec 2009
Location: Denver, CO, USA
Posts: 6,498
Thanks: 109
Thanked 291 times in 280 posts
|
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.
Brett
NinjaTrader Customer Service |
|
|
|
|
|
#13 |
|
Member
Join Date: Feb 2010
Posts: 38
Thanks: 0
Thanked 0 times in 0 posts
|
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#? |
|
|
|
|
|
#14 |
|
NinjaTrader Customer Service
Join Date: Dec 2009
Location: Denver, CO, USA
Posts: 6,498
Thanks: 109
Thanked 291 times in 280 posts
|
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.
Brett
NinjaTrader Customer Service |
|
|
|
|
|
#15 |
|
Member
Join Date: Feb 2010
Posts: 38
Thanks: 0
Thanked 0 times in 0 posts
|
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. |
|
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|
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 |