![]() |
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 |
|
Senior Member
Join Date: Feb 2008
Location: Paris
Posts: 713
Thanks: 10
Thanked 10 times in 7 posts
|
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. |
|
|
|
|
|
#2 |
|
NinjaTrader Customer Service
Join Date: Dec 2011
Location: India
Posts: 3,286
Thanks: 580
Thanked 546 times in 541 posts
|
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.
Joydeep M.
NinjaTrader Customer Service |
|
|
|
|
The following user says thank you to NinjaTrader_Joydeep for this post: |
|
|
|
#3 | |
|
Senior Member
Join Date: Feb 2008
Location: Paris
Posts: 713
Thanks: 10
Thanked 10 times in 7 posts
|
Quote:
Do you know of a workaround? Should I redraw them on every bar and have them end with the current bar? Thanks |
|
|
|
|
|
|
#4 |
|
NinjaTrader Customer Service
Join Date: Dec 2011
Location: India
Posts: 3,286
Thanks: 580
Thanked 546 times in 541 posts
|
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.
Joydeep M.
NinjaTrader Customer Service |
|
|
|
|
The following user says thank you to NinjaTrader_Joydeep for this post: |
|
|
|
#5 | |
|
Senior Member
Join Date: Feb 2008
Location: Paris
Posts: 713
Thanks: 10
Thanked 10 times in 7 posts
|
Quote:
|
|
|
|
|
|
The following user says thank you to cunparis for this post: |
|
|
|
#6 |
|
NinjaTrader Customer Service
Join Date: Dec 2011
Location: India
Posts: 3,286
Thanks: 580
Thanked 546 times in 541 posts
|
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.
Joydeep M.
NinjaTrader Customer Service |
|
|
|
|
|
#7 | |
|
Senior Member
|
Quote:
|
|
|
|
|
|
The following user says thank you to koganam for this post: |
|
|
|
#8 |
|
Senior Member
Join Date: Feb 2008
Location: Paris
Posts: 713
Thanks: 10
Thanked 10 times in 7 posts
|
you can find it here: http://www.bigmiketrading.com/ninjat...tml#post138528
|
|
|
|
|
The following user says thank you to cunparis for this post: |
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|
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 |