![]() |
This website will be down for maintenance from Friday May 24th at 6PM MDT until Saturday May 25th at 11AM MDT. We apologize for the inconvenience. If you need assistance during this time, please email sales@ninjatrader.com
|
|||||||
| Strategy Analyzer Support for automated system backtesting and optimization using the NinjaTrader Strategy Analyzer. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Senior Member
|
How does one use the Swing High/Low indicator in a strategy? It's not really "bar-based" as an indicator, since it signals pivots that vary in the number of bars between value changes.
So if I wanted to say "If the current bar has a Swing High value change and it's lower than the last Swing High value, then open a short position".. how do you do that in the Strategy Wizard? |
|
|
|
|
|
#2 |
|
NinjaTrader Product Manager
Join Date: May 2007
Location: Denver, CO
Posts: 17,458
Thanks: 1
Thanked 106 times in 70 posts
|
Unfortunately you cannot do this in the Strategy Wizard, but in NT6.5 we have exposed properties that you can access programmatically to acquire the desired values.
Josh
NinjaTrader Customer Service |
|
|
|
|
|
#3 | |
|
Senior Member
|
Quote:
Thanks! Bryan |
|
|
|
|
|
|
#4 |
|
Administrator
Join Date: Nov 2004
Location: Denver, CO, USA
Posts: 11,163
Thanks: 6
Thanked 45 times in 32 posts
|
Go to the file sharing section and download the Automatic Trend Line detection indicator to get an idea of how Swing() indicator is used.
Ray
NinjaTrader Customer Service |
|
|
|
|
|
#5 | |
|
Senior Member
|
Quote:
Is that article from Sept '07 online somewhere? Thanks Ray!
Last edited by cassb; 03-05-2008 at 09:39 PM.
|
|
|
|
|
|
|
#6 |
|
NinjaTrader Product Manager
Join Date: May 2007
Location: Denver, CO
Posts: 17,458
Thanks: 1
Thanked 106 times in 70 posts
|
If you review the code of the Swing indicator you can fully understand its inner workings. Briefly speaking, the Swing indicator "lags" behind the chart that is why it looks so good.
Josh
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 |
| Accessing Swing High or Low Plot In Strategy Wizard | Learning1 | Strategy Development | 10 | 09-03-2010 03:14 AM |
| Swing high low indicator | winJR | NinjaScript File Sharing Discussion | 1 | 02-06-2008 12:39 AM |
| Swing Low/High indicator | ts888 | Indicator Development | 10 | 07-12-2007 07:56 AM |