![]() |
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
|
|||||||
| Indicator Development Support for the development of custom indicators using NinjaScript. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Member
Join Date: Oct 2008
Posts: 53
Thanks: 0
Thanked 0 times in 0 posts
|
Hi, I want to know why this code doesnt work, I tryed a single DrawRectangle on BarUpdate and it displays correctly, but not like this
|
|
|
|
|
|
#2 |
|
Certified NinjaScript Consultant
|
I don't see any pivots added to be drawn.
|
|
|
|
|
|
#3 |
|
Member
Join Date: Oct 2008
Posts: 53
Thanks: 0
Thanked 0 times in 0 posts
|
I added a PivotRange object to the list on Initialize...
Code:
Pivots.Add(new PivotRange(880)); |
|
|
|
|
|
#4 |
|
Member
Join Date: Oct 2008
Posts: 53
Thanks: 0
Thanked 0 times in 0 posts
|
Ok apparently double.NaN was the problem, I tryied not using it and check for Y2 < 0 and it worked.... very weird
|
|
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| rectangle Opacity Property | mikeytrader | General Programming | 1 | 05-09-2009 02:08 PM |
| Fancy Rectangle | pdavidow | Charting | 9 | 03-16-2009 09:04 AM |
| Rectangle question | 5iver | Charting | 2 | 11-01-2008 03:14 PM |
| Rectangle disappears | SteveB | Charting | 2 | 07-15-2008 08:51 AM |
| Rectangle Equivalent of a Ray | daven | Suggestions And Feedback | 3 | 06-29-2007 09:36 AM |