NinjaTrader Support Forum  

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 03-08-2009, 07:36 PM   #1
Shansen
Senior Member
 
Join Date: Jan 2009
Location: Melbourne
Posts: 178
Thanks: 3
Thanked 0 times in 0 posts
Default Isolating swing highs / lows

All,

The attached picture shows price action overlaid with SMA(20) and Swing(20). I am trying to isolate the first bar of of each SwingHigh and SwingLow, as illustrated with white dots. Once located these points would have to be referenced from latest bar (i.e. currentbar, as the current bar changes though the passing of time).

Any ideas on how to isolate the first bar of each swing high/low, would be greatly appreciated.

Thanks
Shannon
Attached Images
File Type: jpg ES 03-09 5_03_2009 (60 Min).jpg (36.7 KB, 98 views)
Last edited by Shansen; 03-09-2009 at 02:19 AM.
Shansen is offline  
Reply With Quote
Old 03-09-2009, 06:39 AM   #2
NinjaTrader_Bertrand
NinjaTrader Customer Service
 
NinjaTrader_Bertrand's Avatar
 
Join Date: Sep 2008
Location: Germany
Posts: 22,377
Thanks: 252
Thanked 966 times in 949 posts
Default

Hi Shansen, please check the first method in this link to see how to access the bar a Swing High / Low occured - http://www.ninjatrader-support.com/H...eV6/Swing.html

If you need the value of the Swing points, please check into the second set of methods.
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 Swing highs glenbiggs Strategy Development 1 01-04-2009 11:36 PM
Please Fix Bug Where Highs & Lows are Incorrectly plotted by 1-4 ticks robhef Suggestions And Feedback 1 10-13-2008 12:56 PM
Taking Highs and Lows depending on an indicator stefy Strategy Development 9 08-14-2008 12:27 PM
New highs/lows qitrader Indicator Development 2 10-03-2007 06:52 AM
highs and lows marker tradingkevin Suggestions And Feedback 2 05-10-2007 06:55 PM


All times are GMT -6. The time now is 06:32 AM.