NinjaTrader Support Forum  

Go Back   NinjaTrader Support Forum > NinjaScript File Sharing > NinjaScript File Sharing Discussion

NinjaScript File Sharing Discussion Discussion for shared NinjaScript files.

Reply
 
Thread Tools Display Modes
Old 06-21-2010, 12:07 PM   #61
Mike12345
Member
 
Join Date: Nov 2009
Location: NJ USA
Posts: 57
Thanks: 0
Thanked 0 times in 0 posts
Default

This a little video explain what happend

Thanks

http://www.screencast.com/users/Mike...c-256322c25188
Mike12345 is offline  
Reply With Quote
Old 06-21-2010, 02:44 PM   #62
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

Mike,

In your code you will need to set the lock property for the object to false.

Please see the example here: http://www.ninjatrader.com/support/h...drawobject.htm
NinjaTrader_Josh is offline  
Reply With Quote
Old 06-21-2010, 04:36 PM   #63
Mike12345
Member
 
Join Date: Nov 2009
Location: NJ USA
Posts: 57
Thanks: 0
Thanked 0 times in 0 posts
Default

Thanks Bertrand

I view the code again but I didn't find anything related to unlock, Do I missing anything.
Thanks
Mike
Mike12345 is offline  
Reply With Quote
Old 06-21-2010, 04:46 PM   #64
NinjaTrader_Austin
NinjaTrader Customer Service
 
NinjaTrader_Austin's Avatar
 
Join Date: Jun 2009
Location: Denver, CO
Posts: 3,149
Thanks: 10
Thanked 89 times in 81 posts
Default

Mike, if you are using CalculateOnBarClose = true, you will have to wait until the most current bar is completed (or for a new bar to start, it is the same event) before the current trend line will be unlocked.

If CalculateOnBarClose is set to false, you will just have to wait for the next tick to come in before the trend line will be unlocked.
NinjaTrader_Austin is offline  
Reply With Quote
Old 06-21-2010, 05:59 PM   #65
Mike12345
Member
 
Join Date: Nov 2009
Location: NJ USA
Posts: 57
Thanks: 0
Thanked 0 times in 0 posts
Default

Thanks Bertrand
I have CalculateOnBarClose is set to false, and I wait a 2 or 3 tick and after that one TL is moving and the current one is locked.
is any way to load the code or send it for you.
I run NT 7/17

Thanks for helping
Mike
Mike12345 is offline  
Reply With Quote
Old 06-22-2010, 03:25 AM   #66
NinjaTrader_Bertrand
NinjaTrader Customer Service
 
NinjaTrader_Bertrand's Avatar
 
Join Date: Sep 2008
Location: Germany
Posts: 22,377
Thanks: 252
Thanked 966 times in 949 posts
Default

Hi Mike, you can send the code you use to support at ninjatrader dot com to my Attn, so I can take a look - thanks.
NinjaTrader_Bertrand is offline  
Reply With Quote
Old 06-22-2010, 03:56 AM   #67
Mike12345
Member
 
Join Date: Nov 2009
Location: NJ USA
Posts: 57
Thanks: 0
Thanked 0 times in 0 posts
Default

Thanks Bertrand
I will do so

Thanks for help
Mike
Mike12345 is offline  
Reply With Quote
Old 07-09-2010, 09:03 AM   #68
dsraider
Senior Member
 
Join Date: Apr 2009
Posts: 294
Thanks: 21
Thanked 1 time in 1 post
Default

Has anyone been able to use this awesome indicator on something other than price, i.e. Stochs PeriodK or something like that? It could make for a mean divergence indicator.
dsraider is offline  
Reply With Quote
Old 07-12-2010, 11:17 AM   #69
RitaPacheco
Member
 
Join Date: Jun 2010
Posts: 59
Thanks: 0
Thanked 1 time in 1 post
Default

Hi

Since last week I can not see the lines of this indicator only the Arrows.
I already reimported the indicator from the forum and imported again into the NT but didn't fix it.

I have NT 6,5.1000.16

Do you know how fix this?

Thanks
RitaPacheco is offline  
Reply With Quote
Old 07-12-2010, 11:43 AM   #70
NinjaTrader_Bertrand
NinjaTrader Customer Service
 
NinjaTrader_Bertrand's Avatar
 
Join Date: Sep 2008
Location: Germany
Posts: 22,377
Thanks: 252
Thanked 966 times in 949 posts
Default

Rita, any errors in the log tab of your Control Center as this happens?
NinjaTrader_Bertrand is offline  
Reply With Quote
The following user says thank you to NinjaTrader_Bertrand for this post:
Old 07-12-2010, 11:49 AM   #71
RitaPacheco
Member
 
Join Date: Jun 2010
Posts: 59
Thanks: 0
Thanked 1 time in 1 post
Default

No errors on the log tab of myControl Center

I can see arrows but not lines
RitaPacheco is offline  
Reply With Quote
The following user says thank you to RitaPacheco for this post:
Old 03-02-2012, 05:07 AM   #72
vlc
Member
 
Join Date: Jan 2006
Location: Londnon, UK
Posts: 90
Thanks: 3
Thanked 2 times in 2 posts
Send a message via MSN to vlc Send a message via Skype™ to vlc
Default

This is actually a very cool indicator... try adding it to the chart twice.... fast and slow... strength set to 2 and 13 and fade the break-outs when both are same colour.
vlc is offline  
Reply With Quote
The following user says thank you to vlc for this post:
Old 03-08-2012, 02:59 PM   #73
vlc
Member
 
Join Date: Jan 2006
Location: Londnon, UK
Posts: 90
Thanks: 3
Thanked 2 times in 2 posts
Send a message via MSN to vlc Send a message via Skype™ to vlc
Default AutoTrendLines at Double Bottoms and Tops

One thing I would like to change about the way this indicator works is how it handles situations such as in the attached chart image. When there is a prolonged series of bars with the same high or low the trend line is drawn in a way that I don't think would be normally done had it been manually drawn.
In the attached image the blue line is manually drawn and the green line is is ploted by the indicator. The indicator starts the line at the earliest bar low to the next significant swing earliest bar low. But I doubt most traders would do that and I think it doesn't actually make sense to do that. Some times a market trades horizontally until it reaches a support or resistance point and it is at that point we may choose to take a trade. So the plot should probably be from the most recent bar at that low to the most recent bar at the next significant low.
This isn't a problem for the Swing indicator but I think it is a problem for the AutoTrendLines indicator ( which is using the Swing indicator ).
Can anyone suggest an easy way to alter the way the AutoTrendLines indicator plots under these circumstances?
Attached Images
File Type: jpg USSP500 06-12 (5 Min) 08_03_2012.jpg (173.5 KB, 190 views)
vlc is offline  
Reply With Quote
The following user says thank you to vlc for this post:
Old 10-30-2012, 08:07 PM   #74
kundu2012
Junior Member
 
Join Date: May 2012
Posts: 5
Thanks: 0
Thanked 0 times in 0 posts
Default

I am wondering where I can download the auto trendline code?

Thanks
kundu2012 is offline  
Reply With Quote
Old 10-30-2012, 10:59 PM   #75
sledge
Senior Member
 
Join Date: Aug 2010
Location: Washington, D.C.
Posts: 1,178
Thanks: 178
Thanked 297 times in 255 posts
Default

Quote:
Originally Posted by kundu2012 View Post
I am wondering where I can download the auto trendline code?

Thanks

in the nt7 file sharing indicator forum.. or this direct link

http://www.ninjatrader.com/support/f...d=4&linkid=472
sledge 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
Automatic Trend Line Indicator Greg1 Charting 6 07-23-2009 07:48 AM
Pattern detection via indicator nybangali Indicator Development 6 08-20-2007 12:52 AM
CCI w/ Audible Alert Jibu V Indicator Development 12 08-03-2007 11:08 AM
Alert() AO76 Strategy Development 5 05-27-2007 09:21 AM
Line "names" in Indicator Box change to "Line" after modification higler Charting 3 05-02-2007 06:05 AM


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