![]() |
|
|||||||
| Version 7 Beta General Questions & Bug Reports Ask questions here and post bug reports. |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Member
Join Date: Apr 2008
Posts: 65
Thanks: 0
Thanked 1 time in 1 post
|
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.
|
|
|
|
|
|
#2 |
|
NinjaTrader Product Manager
Join Date: May 2007
Location: Denver, CO
Posts: 17,458
Thanks: 1
Thanked 107 times in 70 posts
|
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.
Josh
NinjaTrader Customer Service |
|
|
|
|
|
#3 |
|
Member
Join Date: Apr 2008
Posts: 65
Thanks: 0
Thanked 1 time in 1 post
|
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.
|
|
|
|
|
|
#4 |
|
NinjaTrader Product Manager
Join Date: May 2007
Location: Denver, CO
Posts: 17,458
Thanks: 1
Thanked 107 times in 70 posts
|
Please be sure you are viewing the same type of chart as the one used by your data. Check session templates, etc.
Josh
NinjaTrader Customer Service |
|
|
|
|
|
#5 |
|
Member
Join Date: Apr 2008
Posts: 65
Thanks: 0
Thanked 1 time in 1 post
|
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. |
|
|
|
|
|
#6 |
|
NinjaTrader Product Manager
Join Date: May 2007
Location: Denver, CO
Posts: 17,458
Thanks: 1
Thanked 107 times in 70 posts
|
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.
Josh
NinjaTrader Customer Service |
|
|
|
|
|
#7 |
|
Member
Join Date: Apr 2008
Posts: 65
Thanks: 0
Thanked 1 time in 1 post
|
Thank you. I now undertstand. I'll have to tweak the strategy.
|
|
|
|
| Thread Tools | |
| Display Modes | |
|
|
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 |