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 06-25-2012, 08:57 AM   #1
cunparis
Senior Member
 
Join Date: Feb 2008
Location: Paris
Posts: 713
Thanks: 10
Thanked 10 times in 7 posts
Default rectangles disappear off screen

I have an indicator that draws rectangles on the screen. I draw them into the future. What I find is the rectangles are visible on the screen but as my chart grows, they become invisible. However if I change the scale of the chart to show more bars (make the bars real tiny), then they show again. and if I change scale to make the bars bigger, the rectangles disappear.

Is this by design? Is there any way I can draw my rectangles so that they don't disappear?

Here is an example, the only difference in the two charts is on the 2nd image I click on the time scale and dragged it to make it have less bars.. when I did that the rectangles disappear.

As a result of this issue, I cannot see the rectangles on my chart after the first couple hours.
Attached Images
File Type: png 2012-06-25_1655.png (21.3 KB, 8 views)
File Type: png 2012-06-25_1656.png (19.2 KB, 7 views)
cunparis is offline  
Reply With Quote
Old 06-25-2012, 09:02 AM   #2
NinjaTrader_Joydeep
NinjaTrader Customer Service
 
NinjaTrader_Joydeep's Avatar
 
Join Date: Dec 2011
Location: India
Posts: 3,286
Thanks: 580
Thanked 546 times in 541 posts
Default

Hello cunparis,
A draw object must have atleast one tag point visible for it to show up. If both the tag points are out of the visible range of the chart then the draw object will not show up.

Unfortunately this is a limitation. However we plan to rectify it in our next major release.
NinjaTrader_Joydeep is offline  
Reply With Quote
The following user says thank you to NinjaTrader_Joydeep for this post:
Old 06-25-2012, 09:09 AM   #3
cunparis
Senior Member
 
Join Date: Feb 2008
Location: Paris
Posts: 713
Thanks: 10
Thanked 10 times in 7 posts
Default

Quote:
Originally Posted by NinjaTrader_Joydeep View Post
Hello cunparis,
A draw object must have atleast one tag point visible for it to show up. If both the tag points are out of the visible range of the chart then the draw object will not show up.

Unfortunately this is a limitation. However we plan to rectify it in our next major release.
Thanks for explaining why it does that, I didn't realize it was because the endpoints were not visible.

Do you know of a workaround? Should I redraw them on every bar and have them end with the current bar?

Thanks
cunparis is offline  
Reply With Quote
Old 06-25-2012, 09:26 AM   #4
NinjaTrader_Joydeep
NinjaTrader Customer Service
 
NinjaTrader_Joydeep's Avatar
 
Join Date: Dec 2011
Location: India
Posts: 3,286
Thanks: 580
Thanked 546 times in 541 posts
Default

Hello cunparis,
Yes, you can redraw them and have end them at the current running bar so that atleast one point is visible. However if you scroll back and if the end points are out of the visible range of the chart then it will disappear again.

Natively there is no workaround, however can also override the Plot and use the graphic.DrawRectangle method to draw the rectangles. However this is beyond what we could support.
NinjaTrader_Joydeep is offline  
Reply With Quote
The following user says thank you to NinjaTrader_Joydeep for this post:
Old 06-26-2012, 01:57 AM   #5
cunparis
Senior Member
 
Join Date: Feb 2008
Location: Paris
Posts: 713
Thanks: 10
Thanked 10 times in 7 posts
Default

Quote:
Originally Posted by kdjfp98e View Post
I think I'm dancing around what I am trying to do. I want to be able to program a marker or alert feature for known news events (not a live feed). So each morning, I can manually plug times into an indicator's settings and when that time arrives during the day, the indicator will trigger an alert, reminding me of news or other events I want to track. Can that be done?
Lunettes Chanel
I wrote one of those, I posted it at big mike's. Then there is a better one that uses a live feed from forex factory. And then the author made a version that is a separate application (not in ninjatrader) and that's what I use today. it's called jtEconNews, you can google it and download it from his blog.

Attached Images
File Type: png 2012-06-26_0957.png (45.2 KB, 28 views)
cunparis is offline  
Reply With Quote
The following user says thank you to cunparis for this post:
Old 06-26-2012, 04:16 AM   #6
NinjaTrader_Joydeep
NinjaTrader Customer Service
 
NinjaTrader_Joydeep's Avatar
 
Join Date: Dec 2011
Location: India
Posts: 3,286
Thanks: 580
Thanked 546 times in 541 posts
Default

Hello kdjfp98e,
Yes, you can code an alert via NinjaScript coding. Please refer to this code which is on similar lines

http://ninjatrader.com/support/forum...tid=-1&lpage=1

@cunparis - Thanks for the update.
NinjaTrader_Joydeep is offline  
Reply With Quote
Old 06-26-2012, 07:01 AM   #7
koganam
Senior Member
 
Join Date: Feb 2008
Location: Durham, North Carolina, USA
Posts: 3,201
Thanks: 24
Thanked 1,227 times in 998 posts
Send a message via Skype™ to koganam
Default

Quote:
Originally Posted by cunparis View Post
I wrote one of those, I posted it at big mike's. Then there is a better one that uses a live feed from forex factory. And then the author made a version that is a separate application (not in ninjatrader) and that's what I use today. it's called jtEconNews, you can google it and download it from his blog.

I believe that his blog has been deleted?
koganam is offline  
Reply With Quote
The following user says thank you to koganam for this post:
Old 06-26-2012, 08:23 AM   #8
cunparis
Senior Member
 
Join Date: Feb 2008
Location: Paris
Posts: 713
Thanks: 10
Thanked 10 times in 7 posts
Default

Quote:
Originally Posted by koganam View Post
I believe that his blog has been deleted?
you can find it here: http://www.bigmiketrading.com/ninjat...tml#post138528
cunparis is offline  
Reply With Quote
The following user says thank you to cunparis for this post:
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
Rectangles - Inconsistency superarrow Charting 6 12-17-2010 08:49 AM
Price bars disappear off top of screen grego Version 7 Beta General Questions & Bug Reports 3 11-29-2010 04:28 AM
NT7 and Rectangles mazachan Version 7 Beta General Questions & Bug Reports 5 12-07-2009 11:18 AM
Extend right on rectangles pauly139 Charting 1 10-29-2009 02:58 AM
Drawing rectangles smeagol Charting 1 09-15-2008 04:09 PM


All times are GMT -6. The time now is 11:11 AM.