![]() |
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
|
|||||||
| General Programming General NinjaScript programming questions. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Junior Member
Join Date: May 2008
Location: Tampa FL
Posts: 13
Thanks: 0
Thanked 0 times in 0 posts
|
I successfully draw a line on the chart in code, DrawRay();
Problem: 1. How do I detect that the line is already there so I don't redraw it. 2. If I manually move the line, how do I detect the changed positional properties of the line. ----- What I want to do is to draw two lines, manually move one, take a reading of its position, and calculate a new position for the second line. |
|
|
|
|
|
#2 |
|
Administrator
Join Date: Mar 2005
Location: Bamberg, Germany
Posts: 9,994
Thanks: 0
Thanked 6 times in 6 posts
|
1) By maintained a flag in your code
2) Unfortunately this is not supported.
Dierk
NinjaTrader Customer Service |
|
|
|
|
|
#3 |
|
Junior Member
Join Date: May 2008
Location: Tampa FL
Posts: 13
Thanks: 0
Thanked 0 times in 0 posts
|
Please consider supporting #2 in the future for drawing objects.
|
|
|
|
|
|
#4 |
|
Administrator
Join Date: Mar 2005
Location: Bamberg, Germany
Posts: 9,994
Thanks: 0
Thanked 6 times in 6 posts
|
Thanks for your suggestion. We'll add it to the list of future considerations.
Dierk
NinjaTrader Customer Service |
|
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Beta bug? Strategy Analyzer backtest properties window showing wrong properties | OregonSun | Historical NinjaTrader 6.5 Beta Threads | 2 | 01-27-2008 05:42 PM |
| Object not set to an instance of an object | ATI user | Historical NinjaTrader 6.5 Beta Threads | 1 | 12-14-2007 03:35 AM |
| Line properties | mrlucky1x | Charting | 1 | 08-27-2007 11:44 AM |
| Parameter Driven Line Object Values Do Not Update on Reload | whitmark | Indicator Development | 3 | 07-10-2007 11:10 AM |
| Error: Object reference not set to an instance of an object. | Januson | Market Analyzer | 1 | 05-18-2007 12:12 AM |