Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

MarketAnalyzer #of bars to look back, wrong dataseries time?

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

    MarketAnalyzer #of bars to look back, wrong dataseries time?

    Hello,

    currently I am looking into MarketAnalyzer.Column.

    Inside OnBarUpdate() {}

    I am interest to access the Input or Close DataSeries.

    e.g. I would like to get the currentbar close price.
    this should be Close[0].

    Now it happens that Close[0] is assigned to the FIRST bar of my series (which happens to start oct16) and that the OnBarUpdate() is called only 50 times, hence until Close[50], which is just 50 minutes after open of oct16.
    50 just happens to be the # of bars to look back, but currently it behaves like "maximum currentbar allowed".


    Something is wrong here:

    I expect in Input[] or Close[] the 50 latest data points, from now to now - 50 minutes., So Input[0] should be oct19 21.50 and Input[50] should be 50 minutes earlier.

    What is wrong here?

    And how can I get current bar data in MarketAnalyzer?

    OK, I can access current MarketData, so I could construct bar data from that for a temporary fix...

    regards
    Andreas

    #2
    Andreas,

    Unfortunately programming Market Analyzer columns was never supported. I suggest you take a look at some of the default columns to see how they are done.
    Josh P.NinjaTrader Customer Service

    Comment


      #3
      I can see change in MarketAnalyzer.Column behaviour between b1 and b2 versions.
      This tells me you are working on the internals there.

      What I do report is with 95% probabilty a plain bug in NT7.
      But I am not completely sure, and therefore I expected some feedback/confirmation of the expected behaviour.

      If I know it is a bug I will wait and work on other parts of my trading software. I you don't tell then I might just spend a lot of -useless?- time to find a workaround.

      Your current examples use OnMarketData and not OnBarUpdate, so they are of no use.

      I just reported earlier in this post as I think a quite clear description, should be easy to fix if you consider this an error.
      But please be more specific! In change I try to help the community with code snippets etc. (see SierraChartImportType)

      Andreas

      Comment


        #4
        Sorry I don't understand your original post and like Josh pointed out this is beyond what we provide support for.

        However, if you could provide a simple as possible (!) code sample which demonstrated your issue, then I might be able to provide some feedback.

        Comment


          #5
          DropDownList

          Hello NinjaTeam,

          I am asking for advice allthough I am well aware that I am well in unsupported territory.
          Please remember that I tried to be constructive during all the NT7 betas and I also contributed to the SierraChartImportType.


          Here we go:

          I am working on a MarketAnalyzer column.
          Instead of using a standard text cell I would like to use a combobox dropdown in the cell. Infragistics does support this and I have taken my approach from their code sample and I have a functioning combobox dropdown in a MA cell.
          The column is called TestUltraGrid.
          There is a problem however: Whenever I change the value of a cell in the TestUltraGrid column not only its own value is changed, but also the value of the "Instruments" column of the same row is changed.
          I do not understand why a change in the TestUltraGrid column would trigger a change in the "Instruments" column.

          Could you please give me a hint on how to proceed?

          Thank you very much
          Andreas


          Attached the image and .cs file. To compile you need to reference the UltraGrid libraries in the Ninja bin directory.
          Attached Files
          Last edited by zweistein; 12-12-2009, 05:25 AM.

          Comment


            #6
            We definitely appreciate your support in past on various issues, but this is way beyond what we could provide for. Reason: the MA by no means is prepared to work with drop downs. This would require some serious research to understand what the ramifications are. At this time we just don't have the bandwidth to invest any time in that. There are just too many priority issue we needed to deal with.

            I would have provide you any info I had on that subject, but at this time I'm at least as clueless as you probably are.

            Sorry...

            Comment


              #7
              OK,

              I whish you to find some rest over chrismass and may this is something you could look into in January. My example .cs is clear and very simple. If I had the source code I would look into the MA grid.Enter event handler.

              regards

              Andreas

              (I am also sick of software and my head refuses to think about complex problems. Currently my small daugther is watching Ice age 3 for the 2nd time today and that makes me get back to the Ninja stuff)

              Comment

              Latest Posts

              Collapse

              Topics Statistics Last Post
              Started by Geovanny Suaza, 02-11-2026, 06:32 PM
              0 responses
              602 views
              0 likes
              Last Post Geovanny Suaza  
              Started by Geovanny Suaza, 02-11-2026, 05:51 PM
              0 responses
              347 views
              1 like
              Last Post Geovanny Suaza  
              Started by Mindset, 02-09-2026, 11:44 AM
              0 responses
              103 views
              0 likes
              Last Post Mindset
              by Mindset
               
              Started by Geovanny Suaza, 02-02-2026, 12:30 PM
              0 responses
              560 views
              1 like
              Last Post Geovanny Suaza  
              Started by RFrosty, 01-28-2026, 06:49 PM
              0 responses
              559 views
              1 like
              Last Post RFrosty
              by RFrosty
               
              Working...
              X