PDA

View Full Version : Consistent failure


hemlock
10-22-2009, 10:33 AM
I have a consistent failure when doing the following:

1. Start version 7 with an empty workspace
2. Connect to Interactive Brokers
3. Create new chart. Add "YM 12-09", then add "^TICK" (both 5 minute interval). YM is in panel 1, ^TICK is in panel2.
4. After chart is displayed add the indicator kpTickLines to the ^TICK data series. (indicator script is attached)
5. Change the chart interval from 5 minute to 1 minute.
6. Keep alternating the interval between 5 minute and 1 minute. Usually within the first five interval changes an error will be thrown. Sometimes it says kpTickLines cannot be serialized. Sometimes it just fails. (see attached trace file).

NinjaTrader_Josh
10-22-2009, 11:01 AM
Your script does not compile. LastBarOnChart is not a NinjaTrader property.

hemlock
10-22-2009, 11:05 AM
Sorry, that's in my UserDefinedMethods.


[Browsable(false)]
[XmlIgnore]
publicbool LastBarOnChart
{
get
{
if (!CalculateOnBarClose && CurrentBar == Bars.Count - 1)
returntrue;
elseif (CalculateOnBarClose && CurrentBar == Bars.Count - 2)
returntrue;
returnfalse;
}
}

NinjaTrader_Josh
10-22-2009, 11:20 AM
Please provide full context for your UserDefinedMethods. Or better yet, please provide a workable script without UserDefinedMethods, thank you.

hemlock
10-22-2009, 11:30 AM
Here you go.

NinjaTrader_Josh
10-22-2009, 11:36 AM
Which series are you changing the time interval for in step 5? YM or TICK? How are you changing the interval too? Tool menu drop down? Data Series window? Typing 1M then 5M?

hemlock
10-22-2009, 12:15 PM
Tool menu drop down

NinjaTrader_Josh
10-22-2009, 02:52 PM
Are you selecting the secondary series each time before going to the Toolbar menu?

hemlock
10-22-2009, 02:57 PM
No, neither of the data series are selected.

NinjaTrader_Josh
10-22-2009, 04:09 PM
I am unable to reproduce on latest sources, but a colleague was able to reproduce on NT7B2. This leads me to believe the issue may be already fixed. Please try again on the next version and let us know if it doesn't work. Thank you.

hemlock
10-22-2009, 04:17 PM
Will do. Thanks Josh.