![]() |
|
|||||||
| General Programming General NinjaScript programming questions. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Junior Member
Join Date: Jul 2008
Posts: 7
Thanks: 0
Thanked 0 times in 0 posts
|
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. |
|
|
|
|
|
#2 |
|
NinjaTrader Product Manager
Join Date: May 2007
Location: Denver, CO
Posts: 17,458
Thanks: 1
Thanked 107 times in 70 posts
|
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
Josh
NinjaTrader Customer Service |
|
|
|
|
|
#3 |
|
Junior Member
Join Date: Jul 2008
Posts: 7
Thanks: 0
Thanked 0 times in 0 posts
|
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. |
|
|
|
|
|
#4 |
|
NinjaTrader Product Manager
Join Date: May 2007
Location: Denver, CO
Posts: 17,458
Thanks: 1
Thanked 107 times in 70 posts
|
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.
Josh
NinjaTrader Customer Service |
|
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|
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 |