Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

OnMarketDepth Problems

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    #16
    Hi esignal,

    Originally posted by esignal View Post
    Yes..i try it....it give me error but sometimes not Always
    and as turbofib me error only in futures with many decimal places

    In other futures with 2 decimal places gives me no errors
    What instrument are you using to test this and how many days of historical data do you have loaded on your chart?
    Chelsea B.NinjaTrader Customer Service

    Comment


      #17
      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


        #18
        Hey all,

        I think commenting out the the Add() line in Initialize() was causing problems.

        I've modified the indicator so that it plots and we can actually see the values.

        You'll need to import and overwrite the older version, then remove and re-add to your chart.
        Attached Files
        Chelsea B.NinjaTrader Customer Service

        Comment


          #19
          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


            #20
            Hi esignal,

            Originally posted by esignal View Post
            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
            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.
            Chelsea B.NinjaTrader Customer Service

            Comment


              #21
              OK all,

              I think adding a count check helped. I've had this running from 8:30 my time to 9:56 my time without error.

              Let me know if this modified version gets any errors.
              Attached Files
              Chelsea B.NinjaTrader Customer Service

              Comment


                #22
                ok..i test it and I'll tell you something

                Comment


                  #23
                  Error :
                  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.
                  Attached Files

                  Comment


                    #24
                    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


                      #25
                      Here are my pics
                      Attached Files

                      Comment


                        #26
                        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 Files
                        Chelsea B.NinjaTrader Customer Service

                        Comment


                          #27
                          Be patient .... I have to hold over to Monday ... now I'm back at home in another place where I have a adsl very slow ... and I often disconnects IQFeed ...
                          Monday I take the tests
                          Sorry again

                          Comment


                            #28
                            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 run
                            Last edited by esignal; 01-27-2014, 03:29 AM.

                            Comment


                              #29
                              can you solve my problem?

                              Comment


                                #30
                                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?
                                Attached Files
                                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
                                579 views
                                0 likes
                                Last Post Geovanny Suaza  
                                Started by Geovanny Suaza, 02-11-2026, 05:51 PM
                                0 responses
                                334 views
                                1 like
                                Last Post Geovanny Suaza  
                                Started by Mindset, 02-09-2026, 11:44 AM
                                0 responses
                                101 views
                                0 likes
                                Last Post Mindset
                                by Mindset
                                 
                                Started by Geovanny Suaza, 02-02-2026, 12:30 PM
                                0 responses
                                554 views
                                1 like
                                Last Post Geovanny Suaza  
                                Started by RFrosty, 01-28-2026, 06:49 PM
                                0 responses
                                551 views
                                1 like
                                Last Post RFrosty
                                by RFrosty
                                 
                                Working...
                                X