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 > NinjaScript Development Support > Indicator Development

Indicator Development Support for the development of custom indicators using NinjaScript.

Reply
 
Thread Tools Display Modes
Old 02-12-2009, 12:23 AM   #1
fy260498
Senior Member
 
Join Date: Jun 2008
Posts: 107
Thanks: 0
Thanked 0 times in 0 posts
Question How to Use Swings in calculation...

Hi Support,

Could you tell me as how can I use Previous Swing High and Swing Low Values in my calculations for Indicator development and also the values of Swing High's and Low's earlier in the session.

I know how to use and compare values of indicators 'bars' ago but with Indicator 'Swing', I am not sure how to do that. Any help would be highly appreciated.

Thanks,
Best regards,
Yusuf SHAIKH
fy260498 is offline  
Reply With Quote
Old 02-12-2009, 05:01 AM   #2
NinjaTrader_Bertrand
NinjaTrader Customer Service
 
NinjaTrader_Bertrand's Avatar
 
Join Date: Sep 2008
Location: Germany
Posts: 22,404
Thanks: 252
Thanked 972 times in 955 posts
Default

Hi fy260498,

you can access the Swing Highs with -

Code:
Swing(5).SwingHigh[0]
For the Swing Lows -

Code:
Swing(5).SwingLow[0]
To get past values you could use the High / Low bar methods output to get past swing / high low levels, please review this link for more info -

http://www.ninjatrader-support.com/H...eV6/Swing.html
NinjaTrader_Bertrand 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
Stochastic Calculation daveM Charting 3 05-27-2012 08:51 PM
Questions on swings hi/low NT price action indicator dandxg Charting 5 09-02-2010 02:39 PM
Drawdown calculation lgarcia3 Strategy Development 9 08-19-2010 10:44 AM
Calculation Mode Stainless2000 General Programming 8 10-06-2008 09:23 AM
Calculation Errors Mike Winfrey Indicator Development 9 05-12-2008 05:00 AM


All times are GMT -6. The time now is 11:23 AM.