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 > NinjaScript Development Support > General Programming

General Programming General NinjaScript programming questions.

Reply
 
Thread Tools Display Modes
Old 06-04-2008, 11:01 PM   #1
phylum
Junior Member
 
Join Date: May 2008
Location: Tampa FL
Posts: 13
Thanks: 0
Thanked 0 times in 0 posts
Default Get DrawRay() Line Object Properties

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.
phylum is offline  
Reply With Quote
Old 06-04-2008, 11:10 PM   #2
NinjaTrader_Dierk
Administrator
 
NinjaTrader_Dierk's Avatar
 
Join Date: Mar 2005
Location: Bamberg, Germany
Posts: 9,994
Thanks: 0
Thanked 6 times in 6 posts
Default

1) By maintained a flag in your code
2) Unfortunately this is not supported.
NinjaTrader_Dierk is offline  
Reply With Quote
Old 06-04-2008, 11:32 PM   #3
phylum
Junior Member
 
Join Date: May 2008
Location: Tampa FL
Posts: 13
Thanks: 0
Thanked 0 times in 0 posts
Default

Please consider supporting #2 in the future for drawing objects.
phylum is offline  
Reply With Quote
Old 06-04-2008, 11:33 PM   #4
NinjaTrader_Dierk
Administrator
 
NinjaTrader_Dierk's Avatar
 
Join Date: Mar 2005
Location: Bamberg, Germany
Posts: 9,994
Thanks: 0
Thanked 6 times in 6 posts
Default

Thanks for your suggestion. We'll add it to the list of future considerations.
NinjaTrader_Dierk is offline  
Reply With Quote
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
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


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