![]() |
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 Development Support for the development of custom automated trading strategies using NinjaScript. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Senior Member
Join Date: Nov 2007
Posts: 388
Thanks: 0
Thanked 0 times in 0 posts
|
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]); |
|
|
|
|
|
#2 |
|
NinjaTrader Product Manager
Join Date: May 2007
Location: Denver, CO
Posts: 17,458
Thanks: 1
Thanked 106 times in 70 posts
|
There may be a bug here. We are looking into it. Thanks.
Josh
NinjaTrader Customer Service |
|
|
|
|
|
#3 |
|
Administrator
Join Date: Nov 2004
Location: Denver, CO, USA
Posts: 11,163
Thanks: 6
Thanked 45 times in 32 posts
|
This is a confirmed bug and will be resolved for our next 6.5 beta update.
Thanks again for reporting this to us.
Ray
NinjaTrader Customer Service |
|
|
|
|
|
#4 |
|
Senior Member
Join Date: Nov 2007
Posts: 388
Thanks: 0
Thanked 0 times in 0 posts
|
Thank you.
|
|
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Data Discrepancy | Greg1 | Strategy Analyzer | 5 | 05-05-2007 12:35 PM |