|01-06-2011, 03:47 PM||#1|
Join Date: Apr 2008
Thanked 3 times in 3 posts
Bug report, Strategy IDataSeries changed by Indicator
re the NT7 beta thread here http://www.ninjatrader.com/support/f...ight=saltminer
I can confirm the cause.
To summarise, Closes in a strategy is returning Typicals.
After much testing, I traced it to an indicator the strategy was calling, in the form
value = MyIndicator(Closes, ....);
The indicator had the following lines in the Initialise()
PriceTypeSupported = true;
PriceType = PriceType.Typical;
This corrupted the strategy somehow, changing the strategy's Closes forever after into Typicals.
This would not be intended NinjaTrader behaviour. It did not occur in Ninja 6.5 with identical code.
|01-06-2011, 04:54 PM||#2|
NinjaTrader Product Manager
Join Date: May 2007
Location: Denver, CO
Thanked 106 times in 70 posts
This was never a supported usage model. If you want to sync the indicator to a different Bars object you need to use BarsArray.
someValue = MyIndicator(BarsArray, 20);
Please see attached reference if you wanted to be working with price type. The indicator itself is one of Typical. The print outs demonstrate how to get it on the High prices instead.
NinjaTrader Customer Service
|bug, pricetype, pricetypesupported|
|Thread||Thread Starter||Forum||Replies||Last Post|
|Bug Report - Strategy compiler leaves old errors.||cnecorp||Suggestions And Feedback||4||12-14-2010 01:20 PM|
|BUG report: Closes[x][y] delivers Typicals[x][y] in MultiInstrument strategy||saltminer||Version 7 Beta General Questions & Bug Reports||4||09-14-2010 10:27 AM|
|Bug Report: Multiple Security Indicator bug||pmorissette||Version 7 Beta General Questions & Bug Reports||21||08-30-2010 10:51 AM|
|Bug report - Strategy Analyzer "Periods -Grid"||whotookmynickname||Version 7 Beta General Questions & Bug Reports||1||01-22-2010 09:40 AM|
|Bug Report: error message upon multiple clicks on report generation button||NinjaCustomer||Historical NinjaTrader 6.5 Beta Threads||2||02-06-2008 10:59 AM|