NinjaTrader Support Forum  

Go Back   NinjaTrader Support Forum > Application Technical Support > Miscellaneous Support > Historical Version 7 Beta Threads > Version 7 Beta General Questions & Bug Reports

Version 7 Beta General Questions & Bug Reports Ask questions here and post bug reports.

 
 
Thread Tools Display Modes
Old 11-12-2009, 07:12 AM   #1
Jean-Marc-Molina
Member
 
Join Date: Apr 2008
Posts: 65
Thanks: 0
Thanked 1 time in 1 post
Default RSI (multi timeframes) returned values are different between Ninja 6.5 and 7

Hi,

I have several strategies with Ninja Trader that use RSI on multi timeframes to filter entry conditions.

In ninja Trader 6.5, executed in backtest mode

BarsInProgress=1 => 5 minutes
Bars In Progress=2 => 15 minutes

For each barsInProgress=1, when a 15 min bar is not yet finished

RSI(Closes[2],14,3)[1] returns the RSI for the 15 minutes time frame for 2 bars of 15 minutes before : I can verify the value on Ninja Trader Chart (with 15 min data series displayed)

In Ninja Trader 7, in most cases the RSI(Closes[2],14,3)[1] are different from those provided by Ninja Trader 6.5 , and I can't find the values that are returned on a Ninja Trader 7 chart (with 15 minutes dataseries displayed).

Is there a difference in the way the RSIs are processed between Ninja Trader 6.5 and 7? I have Ninja Trader 7.0.0.4 installed.

That makes the backtest results different.

Thank you in advance for your answer.
Last edited by Jean-Marc-Molina; 11-12-2009 at 09:18 AM.
Jean-Marc-Molina is offline  
Old 11-12-2009, 09:29 AM   #2
NinjaTrader_Josh
NinjaTrader Product Manager
 
NinjaTrader_Josh's Avatar
 
Join Date: May 2007
Location: Denver, CO
Posts: 17,458
Thanks: 1
Thanked 107 times in 70 posts
Default

Hi,

What happens is if the timestamp is of one that is closed for all series, then all series get updated on their bars before any series is processed in OnBarUpdate(). So [1] would refer to the just closed bar as opposed to 2 bars ago.
NinjaTrader_Josh is offline  
Old 11-12-2009, 10:17 AM   #3
Jean-Marc-Molina
Member
 
Join Date: Apr 2008
Posts: 65
Thanks: 0
Thanked 1 time in 1 post
Default I'll check

Thank you Josh. I understand what you mean. I'll check. However, what is really amazing here is that the values returned by 7 can't be found in the NT 7 chart that displays the RSI for the given timeframe, neither 1 ou 2 bars ago.
Jean-Marc-Molina is offline  
Old 11-12-2009, 10:19 AM   #4
NinjaTrader_Josh
NinjaTrader Product Manager
 
NinjaTrader_Josh's Avatar
 
Join Date: May 2007
Location: Denver, CO
Posts: 17,458
Thanks: 1
Thanked 107 times in 70 posts
Default

Please be sure you are viewing the same type of chart as the one used by your data. Check session templates, etc.
NinjaTrader_Josh is offline  
Old 11-12-2009, 11:33 AM   #5
Jean-Marc-Molina
Member
 
Join Date: Apr 2008
Posts: 65
Thanks: 0
Thanked 1 time in 1 post
Default

I'm not at the office tomorrow. On Monday. I'll post you detailed traces on the same data and same strategy for Ninja trader 6.5 and 7. Aparrently, there are differences.

Thank you.
Jean-Marc-Molina is offline  
Old 11-12-2009, 12:15 PM   #6
NinjaTrader_Josh
NinjaTrader Product Manager
 
NinjaTrader_Josh's Avatar
 
Join Date: May 2007
Location: Denver, CO
Posts: 17,458
Thanks: 1
Thanked 107 times in 70 posts
Default

Differences are expected unless you tweak your strategy for 7. The bar pointer updates for all series before the OnBarUpdate() of any of them so you now can reference the correct information based on that time.
NinjaTrader_Josh is offline  
Old 11-16-2009, 08:51 AM   #7
Jean-Marc-Molina
Member
 
Join Date: Apr 2008
Posts: 65
Thanks: 0
Thanked 1 time in 1 post
Default

Thank you. I now undertstand. I'll have to tweak the strategy.
Jean-Marc-Molina is offline  
 

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
SetStopLoss() in multi timeframes DarthTraderson Strategy Development 11 03-01-2013 03:39 AM
Problem with RSI Calculation when Multi Data Series Displayed dnoff Version 7 Beta General Questions & Bug Reports 1 10-20-2009 08:12 AM
How to strategy test against multi timeframes ? wcredle Strategy Analyzer 1 03-13-2009 03:37 PM
Get values of multi-line indicator ctrlbrk Strategy Development 1 10-24-2008 10:55 PM
f optimizer development - no values returned chrisdc5 Strategy Analyzer 3 01-04-2008 06:01 AM


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