NinjaTrader Support Forum  

Go Back   NinjaTrader Support Forum > NinjaScript Development Support > General Programming

General Programming General NinjaScript programming questions.

Reply
 
Thread Tools Display Modes
Old 03-17-2009, 09:31 AM   #1
PrTester
Senior Member
 
Join Date: Mar 2007
Posts: 212
Thanks: 0
Thanked 3 times in 3 posts
Default graphics.DrawLine

Probably this is beyond the support but if any advance user can help would be appreciated.

I want to plot a few lines with the graphics.DrawLine method inside the public override void Plot(), I don't know the qty of the lines to be plotted and every time I plot a new line, the old one disappears. Any ideas?

Regards
PrTester is offline  
Reply With Quote
Old 03-17-2009, 09:38 AM   #2
NinjaTrader_Josh
NinjaTrader Product Manager
 
NinjaTrader_Josh's Avatar
 
Join Date: May 2007
Location: Denver, CO
Posts: 17,458
Thanks: 1
Thanked 106 times in 70 posts
Default

This is unfortunately outside the scope of what we can support. Maybe if you take a look at the Pivots indicator code you can get some ideas from there.
NinjaTrader_Josh is offline  
Reply With Quote
Old 03-19-2009, 11:06 AM   #3
Ralph
Senior Member
 
Join Date: Jul 2008
Posts: 527
Thanks: 0
Thanked 9 times in 6 posts
Default

Quote:
Originally Posted by PrTester View Post
...and every time I plot a new line, the old one disappears...
That is the way it works. You need to draw all your graphics with every invocation of plot(). The other way around, there is no need to delete any obsolete objects.

Regards
Ralph
Ralph 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
Drawline puppeye Indicator Development 2 12-22-2008 06:49 AM
Leverage Graphics Tools & Custom Icons Alfred Charting 1 09-03-2008 10:29 AM
a few graphics suggestions kh_model Suggestions And Feedback 4 08-14-2008 11:21 AM
How can I get Graphics object in OnMarketData? maxima Indicator Development 1 05-04-2008 01:26 PM
DrawLine Help PrTester Charting 1 02-09-2008 08:41 PM


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