PDA

View Full Version : Add bug?


rt-trader
10-19-2009, 06:40 PM
I have an indicator in which I use

Add(Instrument.FullName,PeriodType.Tick,1,MarketDa taType.Last);

When this line in present (In Initialize) and loaded on to a 1 minute ES chart, NT7 hangs and eventually is shutdown by XP. The log and trace files have no relevant entries.

Commenting out the Add statement allows the indicator to load and process the real time component correctly. I have also commented out all logic associated with processing the added series - so it seems it is just the Add itself which is causing the problem.

I have tried the same code as a 6.5 Strategy and it works fine.

Is this a possible bug or have I miss-used Add?

NinjaTrader_Ray
10-19-2009, 09:18 PM
This works for me however, it does take 20 seconds to load the 1 tick series.

Some questions:

- How many days back do you have on the primary series you are adding the indicator to?
- Are you connected to someone, if yes who?

rt-trader
10-19-2009, 10:50 PM
I tried 5 days down to 250 bars (for a 1 ES minute chart).

Connected to e-Signal..

NinjaTrader_Dierk
10-19-2009, 11:02 PM
I would think downloading 5 days of tick data from eSignal for ES just would take a while.

You could try by downloading in Tools->Historical data manager to get a feeling...

rt-trader
10-19-2009, 11:38 PM
Hi Dierk,

Its not the load time that is the problem, but that NT7 is closed down by XP with the standard XP error message - NinjaTrader has encountered a problem and needs to close etc etc. This happens after approx 2 minutes.

The Task Manager shows NT using about 134k of memory with 0-2% CPU.

I didnt import the indicator as I knew there would be errors - so I copied edited then compiled as suggestion.

I will rewrite the indicator from scratch in case something else odd is happening.

NinjaTrader_Dierk
10-19-2009, 11:40 PM
I see.

Can you please send your log and trace files to support, subject "for Josh" and refer to this thread. Thanks