![]() |
|
|||||||
| NinjaScript File Sharing Discussion Discussion for shared NinjaScript files. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#61 |
|
Member
Join Date: Nov 2009
Location: NJ USA
Posts: 57
Thanks: 0
Thanked 0 times in 0 posts
|
This a little video explain what happend
Thanks http://www.screencast.com/users/Mike...c-256322c25188 |
|
|
|
|
|
#62 |
|
NinjaTrader Product Manager
Join Date: May 2007
Location: Denver, CO
Posts: 17,458
Thanks: 1
Thanked 106 times in 70 posts
|
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
Josh
NinjaTrader Customer Service |
|
|
|
|
|
#63 |
|
Member
Join Date: Nov 2009
Location: NJ USA
Posts: 57
Thanks: 0
Thanked 0 times in 0 posts
|
Thanks Bertrand
I view the code again but I didn't find anything related to unlock, Do I missing anything. Thanks Mike |
|
|
|
|
|
#64 |
|
NinjaTrader Customer Service
Join Date: Jun 2009
Location: Denver, CO
Posts: 3,149
Thanks: 10
Thanked 89 times in 81 posts
|
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.
Austin
NinjaTrader Customer Service |
|
|
|
|
|
#65 |
|
Member
Join Date: Nov 2009
Location: NJ USA
Posts: 57
Thanks: 0
Thanked 0 times in 0 posts
|
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 |
|
|
|
|
|
#66 |
|
NinjaTrader Customer Service
Join Date: Sep 2008
Location: Germany
Posts: 22,377
Thanks: 252
Thanked 966 times in 949 posts
|
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.
Bertrand
NinjaTrader Customer Service |
|
|
|
|
|
#67 |
|
Member
Join Date: Nov 2009
Location: NJ USA
Posts: 57
Thanks: 0
Thanked 0 times in 0 posts
|
Thanks Bertrand
I will do so Thanks for help Mike |
|
|
|
|
|
#68 |
|
Senior Member
Join Date: Apr 2009
Posts: 294
Thanks: 21
Thanked 1 time in 1 post
|
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.
|
|
|
|
|
|
#69 |
|
Member
Join Date: Jun 2010
Posts: 59
Thanks: 0
Thanked 1 time in 1 post
|
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 |
|
|
|
|
|
#70 |
|
NinjaTrader Customer Service
Join Date: Sep 2008
Location: Germany
Posts: 22,377
Thanks: 252
Thanked 966 times in 949 posts
|
Rita, any errors in the log tab of your Control Center as this happens?
Bertrand
NinjaTrader Customer Service |
|
|
|
|
The following user says thank you to NinjaTrader_Bertrand for this post: |
|
|
|
#72 |
|
Member
|
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.
|
|
|
|
|
The following user says thank you to vlc for this post: |
|
|
|
#73 |
|
Member
|
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? |
|
|
|
|
The following user says thank you to vlc for this post: |
|
|
|
#74 |
|
Junior Member
Join Date: May 2012
Posts: 5
Thanks: 0
Thanked 0 times in 0 posts
|
I am wondering where I can download the auto trendline code?
Thanks |
|
|
|
|
|
#75 | |
|
Senior Member
Join Date: Aug 2010
Location: Washington, D.C.
Posts: 1,178
Thanks: 178
Thanked 297 times in 255 posts
|
Quote:
in the nt7 file sharing indicator forum.. or this direct link http://www.ninjatrader.com/support/f...d=4&linkid=472 |
|
|
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|
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 |