NinjaTrader Support Forum  

Go Back   NinjaTrader Support Forum > NinjaScript Development Support > Strategy Development

Strategy Development Support for the development of custom automated trading strategies using NinjaScript.

Reply
 
Thread Tools Display Modes
Old 07-04-2007, 08:47 AM   #1
richa61416
Senior Member
 
Join Date: Jun 2007
Location: Anguilla
Posts: 140
Thanks: 0
Thanked 0 times in 0 posts
Default Kentler Swing using displacement field in strategy

This should be easy I hope. I am using the Kentler channel in my strategy, but I don't see the displacement field that the indicator normally have.

How can I use the displacement field in my strategy.
richa61416 is offline  
Reply With Quote
Old 07-04-2007, 08:51 AM   #2
NinjaTrader_Ray
Administrator
 
NinjaTrader_Ray's Avatar
 
Join Date: Nov 2004
Location: Denver, CO, USA
Posts: 11,163
Thanks: 6
Thanked 45 times in 32 posts
Default

The easiest way is to reference the correct number of bars ago.

For example, if you had a displacement of 1. Then the current bar value really would be 1 bar ago.

You could then access the value like Indicator[1] etc...
NinjaTrader_Ray is offline  
Reply With Quote
Old 07-04-2007, 01:20 PM   #3
richa61416
Senior Member
 
Join Date: Jun 2007
Location: Anguilla
Posts: 140
Thanks: 0
Thanked 0 times in 0 posts
Default

Okay. I guess I understand that. This means that for my displacement of negative 2. I need to wait 2 bars from now, in order to get the desired result correct?
richa61416 is offline  
Reply With Quote
Old 07-04-2007, 04:02 PM   #4
NinjaTrader_Ray
Administrator
 
NinjaTrader_Ray's Avatar
 
Join Date: Nov 2004
Location: Denver, CO, USA
Posts: 11,163
Thanks: 6
Thanked 45 times in 32 posts
Default

That is correct.
NinjaTrader_Ray 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
Swing High/Low and Zig Zag Indicators whitmark Suggestions And Feedback 39 01-19-2011 10:47 AM
Swing High/Low and Zig Zag Indicators Alfred Charting 9 09-03-2010 05:55 AM
If and when Gann swing charts come to NT.... Antraman Suggestions And Feedback 2 04-23-2009 06:10 AM
IB Changing Average Cost Field SellUmHi Connecting 1 01-05-2006 02:32 AM
Sort on TIME-based field ..... mkundi Miscellaneous Support 0 06-26-2005 09:13 PM


All times are GMT -6. The time now is 09:37 AM.