NinjaTrader Support Forum  
X

Attention!

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


Go Back   NinjaTrader Support Forum > Application Technical Support > Strategy Analyzer

Strategy Analyzer Support for automated system backtesting and optimization using the NinjaTrader Strategy Analyzer.

Reply
 
Thread Tools Display Modes
Old 03-03-2008, 09:10 PM   #1
cassb
Senior Member
 
Join Date: Nov 2007
Location: Victor, NY
Posts: 577
Thanks: 5
Thanked 4 times in 4 posts
Send a message via Yahoo to cassb Send a message via Skype™ to cassb
Default How to use Swing(High/Low) indicator

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?
cassb is offline  
Reply With Quote
Old 03-03-2008, 09:49 PM   #2
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

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.
NinjaTrader_Josh is offline  
Reply With Quote
Old 03-04-2008, 07:04 AM   #3
cassb
Senior Member
 
Join Date: Nov 2007
Location: Victor, NY
Posts: 577
Thanks: 5
Thanked 4 times in 4 posts
Send a message via Yahoo to cassb Send a message via Skype™ to cassb
Default

Quote:
Originally Posted by Josh View Post
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.
OK, that's fine -- I can unlock the code. So do you have an example of how to do this? If not, where can I find the list of properties I can use to get these values?

Thanks!
Bryan
cassb is offline  
Reply With Quote
Old 03-04-2008, 07:29 AM   #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

Go to the file sharing section and download the Automatic Trend Line detection indicator to get an idea of how Swing() indicator is used.
NinjaTrader_Ray is offline  
Reply With Quote
Old 03-05-2008, 09:35 PM   #5
cassb
Senior Member
 
Join Date: Nov 2007
Location: Victor, NY
Posts: 577
Thanks: 5
Thanked 4 times in 4 posts
Send a message via Yahoo to cassb Send a message via Skype™ to cassb
Default

Quote:
Originally Posted by NinjaTrader_Ray View Post
Go to the file sharing section and download the Automatic Trend Line detection indicator to get an idea of how Swing() indicator is used.
OK got it. So, this just draws an extended line in the direction of the current trend, as defined by the last few swing pivots? How many bars does it take to establish a swing point -- as in, is the Swing an indicator that lags by <strength> bars? I of course want to know immediately when a swing point occurs (within 1 bar) so that I can open a position.

Is that article from Sept '07 online somewhere?

Thanks Ray!
Last edited by cassb; 03-05-2008 at 09:39 PM.
cassb is offline  
Reply With Quote
Old 03-05-2008, 10:56 PM   #6
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

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.
NinjaTrader_Josh 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
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


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