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 01-14-2009, 11:53 AM   #1
timefreedom
Junior Member
 
Join Date: Jul 2008
Posts: 7
Thanks: 0
Thanked 0 times in 0 posts
Default Making Drawn Objects Persist

In the Indicator thread of this forum, there is an indicator called AutoTrendLines. It automatically draws trend lines on a chart. Every time a new trend line is drawn, the previous trend line is removed. How can that code be modified so the drawn objects (in this case trend lines) stay on the chart as new objects are drawn?

Thanks.
timefreedom is offline  
Reply With Quote
Old 01-14-2009, 11:59 AM   #2
NinjaTrader_Josh
NinjaTrader Product Manager
 
NinjaTrader_Josh's Avatar
 
Join Date: May 2007
Location: Denver, CO
Posts: 17,458
Thanks: 1
Thanked 107 times in 70 posts
Default

timefreedom,

The code is complex and cannot advise you on how to modify it. You can use the NinjaScript Editor and open up the indicator to view the code, but after that you will just have to play with it.

If you are not a programmer and do not wish to do this yourself you can try one of the 3rd party NinjaScript Consultants here: http://www.ninjatrader.com/webnew/pa...injaScript.htm
NinjaTrader_Josh is offline  
Reply With Quote
Old 01-14-2009, 12:15 PM   #3
timefreedom
Junior Member
 
Join Date: Jul 2008
Posts: 7
Thanks: 0
Thanked 0 times in 0 posts
Default

Thanks Josh,
When I rem'ed out the RemoveDrawObject lines it made the last 2 trend lines stay on the chart, rather than just the last trend line. But, as new lines are created the second to last is still removed. Since both Esignal and Tradestation have autotrendline indicators where the trendlines persist, I thought perhaps someone had already done the coding for Ninja. The autotrendline indicator is pretty close and wouldn't think it will be a big step, having already drawn the trend line, to make them persist.
timefreedom is offline  
Reply With Quote
Old 01-14-2009, 12:22 PM   #4
NinjaTrader_Josh
NinjaTrader Product Manager
 
NinjaTrader_Josh's Avatar
 
Join Date: May 2007
Location: Denver, CO
Posts: 17,458
Thanks: 1
Thanked 107 times in 70 posts
Default

If someone from the community is willing to help you out that would be great. Unfortunately I cannot provide any more support on modifying custom indicators in this regard.
NinjaTrader_Josh 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
bars/candles on top of drawn objects sub5mango Charting 4 07-07-2008 03:34 PM
Depth for drawn objects cls71 Suggestions And Feedback 1 04-03-2008 01:38 AM
Ablility to save drawn objects on a template ashish Historical NinjaTrader 6.5 Beta Threads 1 03-11-2008 06:54 AM
Remove Drawn Objects MAX Indicator Development 11 09-24-2007 05:13 PM
Positioning of Manually Drawn Objects whitmark Charting 1 03-27-2007 05:59 AM


All times are GMT -6. The time now is 10:50 PM.