Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
OnMarketDepth Problems
Collapse
X
-
I used I also euro dollar with IQFeed feed
The indicator used in real time
The days of history loaded are 3 but the error is in real time not in historical
Error on calling 'OnMarketDepth' method for indicator 'TurbofibTest': You are accessing an index with a value that is invalid since its out of range. I.E. accessing a series [barsAgo] with a value of 5 when there are only 4 bars on the chart.
the error I see in Log is : "Error on plotting "turbofib Test". Please check the 'onBarupdate' or the 'Plot' Method.Last edited by esignal; 01-22-2014, 04:38 AM.
Comment
-
It does not work .. In the log I see: Error on calling 'OnMArketDepth' method for indicator 'Turbofib test ' You are accessing an index with a value that is invalid since its out..
As soon as I can I try it on another fut currency with only 2 decimal places
Comment
-
Hi esignal,
I've had this running for a while and got the error message. I think possibly either the bid object or ask object doesn't exist sometimes. I'm adding an additional check to be sure these objects exist and will test this for a while.Originally posted by esignal View PostIt does not work .. In the log I see: Error on calling 'OnMArketDepth' method for indicator 'Turbofib test ' You are accessing an index with a value that is invalid since its out..
As soon as I can I try it on another fut currency with only 2 decimal placesChelsea B.NinjaTrader Customer Service
Comment
-
Comment
-
Hi esignal,
I just want to double check and ensure the changes are in your file.
May I have a screenshot of the code of this indicator with lines 53 through 62 visible?- Click Tools -> Edit NinjaScript -> Indicator... -> select TurbofibTest -> click OK
To send a screenshot press Alt + PRINT SCREEN to take a screen shot of the selected window. Then go to Start--> Accessories--> Paint, and press CTRL + V to paste the image. Lastly, save as a jpeg file and send the file as an attachment.
For detailed instructions please visit the following link
http://take-a-screenshot.org/Chelsea B.NinjaTrader Customer Service
Comment
-
Hi esignal,
Who are you connected to? (This indicated in green in the bottom left corner of the Control Center)
Also, I'd modifed the script yet again to use try and catch blocks. I'd like to see which part of this is failing. The information will go to the output window.
Please open your output window and run the new modifications. Then please send me what comes up in the output.
(Tools -> Output Window...)Attached FilesChelsea B.NinjaTrader Customer Service
Comment
-
Now i'm connected only iqfeed...
it give me following error :
"
27/01/2014 10:02:31 - failed collecting ask volume - error:System.ArgumentOutOfRangeException: Index non compreso nell'intervallo. Richiesto valore non negativo e minore della dimensione dell'insieme.
Nome parametro: index
in System.Collections.CollectionBase.System.Collectio ns.IList.get_Item(Int32 index)
in NinjaTrader.Data.MarketDepthRowCollection.get_Item (Int32 index)
in NinjaTrader.Data.MarketDepthRowCollection.TotalVol ume(Int32 level)
in NinjaTrader.Indicator.TurbofibTest.OnMarketDepth(M arketDepthEventArgs e)
27/01/2014 10:04:12 - failed collecting bid volume - error: System.ArgumentOutOfRangeException: Index non compreso nell'intervallo. Richiesto valore non negativo e minore della dimensione dell'insieme.
Nome parametro: index
in System.Collections.ArrayList.get_Item(Int32 index)
in NinjaTrader.Data.MarketDepthRowCollection.get_Item (Int32 index)
in NinjaTrader.Data.MarketDepthRowCollection.TotalVol ume(Int32 level)
in NinjaTrader.Indicator.TurbofibTest.OnMarketDepth(M arketDepthEventArgs e)
27/01/2014 10:17:00 - failed collecting ask volume - error:System.ArgumentOutOfRangeException: Index non compreso nell'intervallo. Richiesto valore non negativo e minore della dimensione dell'insieme.
Nome parametro: index
in System.Collections.ArrayList.get_Item(Int32 index)
in NinjaTrader.Data.MarketDepthRowCollection.get_Item (Int32 index)
in NinjaTrader.Data.MarketDepthRowCollection.TotalVol ume(Int32 level)
in NinjaTrader.Indicator.TurbofibTest.OnMarketDepth(M arketDepthEventArgs e)
27/01/2014 10:21:40 - failed collecting bid volume - error: System.ArgumentOutOfRangeException: Index non compreso nell'intervallo. Richiesto valore non negativo e minore della dimensione dell'insieme.
Nome parametro: index
in System.Collections.CollectionBase.System.Collectio ns.IList.get_Item(Int32 index)
in NinjaTrader.Data.MarketDepthRowCollection.get_Item (Int32 index)
in NinjaTrader.Data.MarketDepthRowCollection.TotalVol ume(Int32 level)
in NinjaTrader.Indicator.TurbofibTest.OnMarketDepth(M arketDepthEventArgs e)
27/01/2014 10:24:30 - failed collecting ask volume - error:System.ArgumentOutOfRangeException: Index non compreso nell'intervallo. Richiesto valore non negativo e minore della dimensione dell'insieme.
Nome parametro: index
in System.Collections.CollectionBase.System.Collectio ns.IList.get_Item(Int32 index)
in NinjaTrader.Data.MarketDepthRowCollection.get_Item (Int32 index)
in NinjaTrader.Data.MarketDepthRowCollection.TotalVol ume(Int32 level)
in NinjaTrader.Indicator.TurbofibTest.OnMarketDepth(M arketDepthEventArgs e)
27/01/2014 10:26:19 - failed collecting bid volume - error: System.ArgumentOutOfRangeException: Index non compreso nell'intervallo. Richiesto valore non negativo e minore della dimensione dell'insieme.
Nome parametro: index
in System.Collections.CollectionBase.System.Collectio ns.IList.get_Item(Int32 index)
in NinjaTrader.Data.MarketDepthRowCollection.get_Item (Int32 index)
in NinjaTrader.Data.MarketDepthRowCollection.TotalVol ume(Int32 level)
in NinjaTrader.Indicator.TurbofibTest.OnMarketDepth(M arketDepthEventArgs e))
"
I ran the tests on euro dollar with 2 different frames ..
The new script even if it gives me error continues to runLast edited by esignal; 01-27-2014, 03:29 AM.
Comment
-
Hi esignal (sorry I was addressing Turbofib before),
I haven't given up yet but I am still attempting to reproduce this issue.
Yesterday I allowed this script to run using IQFeed for a full day.
I left the output window open looking for that same error message, however, I did not receive it.
Here's a look at the chart it produced using the 6J 03-14 which has 6 digits to the right of the decimal.
I also had this running on the 6E 03-14 at the same time with both printing to the output window but did not get a message from either; again using IQFeed as my data source.
At this point, I think there must be something different about my connection. Are you seeing any disconnects in the Log tab of the Control Center?Last edited by NinjaTrader_ChelseaB; 01-29-2014, 12:32 PM.Chelsea B.NinjaTrader Customer Service
Comment
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by Geovanny Suaza, 02-11-2026, 06:32 PM
|
0 responses
563 views
0 likes
|
Last Post
|
||
|
Started by Geovanny Suaza, 02-11-2026, 05:51 PM
|
0 responses
329 views
1 like
|
Last Post
|
||
|
Started by Mindset, 02-09-2026, 11:44 AM
|
0 responses
101 views
0 likes
|
Last Post
by Mindset
02-09-2026, 11:44 AM
|
||
|
Started by Geovanny Suaza, 02-02-2026, 12:30 PM
|
0 responses
547 views
1 like
|
Last Post
|
||
|
Started by RFrosty, 01-28-2026, 06:49 PM
|
0 responses
547 views
1 like
|
Last Post
by RFrosty
01-28-2026, 06:49 PM
|

Comment