![]() |
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: Apr 2008
Posts: 164
Thanks: 2
Thanked 3 times in 3 posts
|
Hi Ninja,
re the NT7 beta thread here http://www.ninjatrader.com/support/f...ight=saltminer I can confirm the cause. To summarise, Closes[0][0] in a strategy is returning Typicals[0][0]. After much testing, I traced it to an indicator the strategy was calling, in the form value = MyIndicator(Closes[0], ....)[0]; 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. Cheers, saltminer |
|
|
|
|
|
#2 |
|
NinjaTrader Product Manager
Join Date: May 2007
Location: Denver, CO
Posts: 17,458
Thanks: 1
Thanked 107 times in 70 posts
|
saltminer,
This was never a supported usage model. If you want to sync the indicator to a different Bars object you need to use BarsArray[]. For example: someValue = MyIndicator(BarsArray[1], 20)[0]; 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.
Josh
NinjaTrader Customer Service |
|
|
|
|
|
#3 |
|
Senior Member
Join Date: Apr 2008
Posts: 164
Thanks: 2
Thanked 3 times in 3 posts
|
Thanks Josh.
|
|
|
|
![]() |
| Tags |
| bug, pricetype, pricetypesupported |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| 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 |