![]() |
|
|||||||
| Strategy Development Support for the development of custom automated trading strategies using NinjaScript. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Senior Member
Join Date: Jun 2007
Location: Anguilla
Posts: 140
Thanks: 0
Thanked 0 times in 0 posts
|
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. |
|
|
|
|
|
#2 |
|
Administrator
Join Date: Nov 2004
Location: Denver, CO, USA
Posts: 11,163
Thanks: 6
Thanked 45 times in 32 posts
|
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...
Ray
NinjaTrader Customer Service |
|
|
|
|
|
#3 |
|
Senior Member
Join Date: Jun 2007
Location: Anguilla
Posts: 140
Thanks: 0
Thanked 0 times in 0 posts
|
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?
|
|
|
|
|
|
#4 |
|
Administrator
Join Date: Nov 2004
Location: Denver, CO, USA
Posts: 11,163
Thanks: 6
Thanked 45 times in 32 posts
|
That is correct.
Ray
NinjaTrader Customer Service |
|
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|
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 |