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 > Strategy Development

Strategy Development Support for the development of custom automated trading strategies using NinjaScript.

Reply
 
Thread Tools Display Modes
Old 12-27-2007, 06:16 PM   #1
Burga1
Senior Member
 
Join Date: Nov 2007
Posts: 388
Thanks: 0
Thanked 0 times in 0 posts
Default Odd discrepancy

Hi,

I'm trying to understand why the following code could return the values in the screenshot. The value in question is the "LO_PERIOD" value, it differs from the "SwingLowBar" printout although they should be exactly the same...


HI_PERIOD = Swing(5).SwingHighBar(0, 1, CurrentBar);
LO_PERIOD = Swing(5).SwingLowBar(0, 1, CurrentBar);

Print(Time[0] + " SwingHighBar: " + Swing(5).SwingHighBar(0, 1, CurrentBar) + " SwingHigh: " + Swing(5).SwingHigh[0]);
Print(Time[0] + " SwingLowBar: " + Swing(5).SwingLowBar(0, 1, CurrentBar) + " SwingLow: " + Swing(5).SwingLow[0]);
Attached Images
File Type: jpg screen1.JPG (17.8 KB, 13 views)
Burga1 is offline  
Reply With Quote
Old 12-27-2007, 06:28 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

There may be a bug here. We are looking into it. Thanks.
NinjaTrader_Josh is offline  
Reply With Quote
Old 12-28-2007, 07:07 AM   #3
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

This is a confirmed bug and will be resolved for our next 6.5 beta update.

Thanks again for reporting this to us.
NinjaTrader_Ray is offline  
Reply With Quote
Old 12-28-2007, 09:35 AM   #4
Burga1
Senior Member
 
Join Date: Nov 2007
Posts: 388
Thanks: 0
Thanked 0 times in 0 posts
Default

Thank you.
Burga1 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
Data Discrepancy Greg1 Strategy Analyzer 5 05-05-2007 12:35 PM


All times are GMT -6. The time now is 10:03 PM.