• If this is your first visit, you will have to register before you can post. To view messages, please scroll below and select the forum that you would like to visits. Questions? Be sure to check out the Forum FAQ.

Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Market Analyzer property

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

    Market Analyzer property

    Hi,

    In the NT7 it was available to set the property "# of bars to look back" for the Market Analyzer window (and I did it from my script). I am converting the script to NT8 and cannot find this property. Could you explain how that property works in the NT8?

    #2
    Hello AlexGn,

    With NinjaTrader 7 the Market Analyzer indicator columns use a # of bars to load and do not have an option for Days to load.

    With NinjaTrader 8, the Market Analyzer now has a Days to load option for indicator columns.

    What was the code you were using to set the '# of bars to load' in NinjaTrader 7? (This would be something unsupported and not covered in the help guide.)
    I'll try and find the equivalent in NT8.
    Chelsea B.NinjaTrader Customer Service

    Comment


      #3
      Hi Chelsea,

      Thank you for your assistance. The code is unsupported, you are absolutely right. That is why I did not mention it. But let's imagine that it is not about how to set it programmatically. Is it possible at all to set "# of bars to look back" in the NT8 for an indicator (and reach the same bahavior as in NT7)?

      Comment


        #4
        Hello AlexGn,

        Is the code you are accomplishing this with in NinjaTrader 7 not something you can share on the forum?

        If so, please send an email to platformsupport [at] ninjatrader [dot] com. In the email please include a link to this forum thread.

        For anyone watching this thread, I will post the any information I find for NinjaTrader 8 in this thread.
        Last edited by NinjaTrader_ChelseaB; 03-22-2016, 07:22 AM.
        Chelsea B.NinjaTrader Customer Service

        Comment


          #5
          Hi Chelsea,

          I can share it, no problem:
          Code:
                              object o1 = typeof(MarketAnalyzerColumnBase).GetProperty("BoardControl", System.Reflection.BindingFlags.Instance | System.Reflection.BindingFlags.Public).GetValue(this, null);
                              o1.GetType().GetProperty("BarsBack", System.Reflection.BindingFlags.Instance | System.Reflection.BindingFlags.Public).SetValue(o1, signalLookback * 2, null);

          Comment


            #6
            Hi AlexGn,

            Thanks for the code snippet.

            Reflection can still be used with NinjaTrader 8. I'm looking around when we have free time to see if I can work out if changing the data series is still possible.

            If I do find any further information I will report this back to you.
            Chelsea B.NinjaTrader Customer Service

            Comment


              #7
              Hi AlexGn,

              I've given this a few attempts and asked around our development for tips, however, our development is highly discouraging any attempts at using reflection.

              Instead, there is an existing feature request for this with ID# SFT-1270, 'Allow MarketAnalyzer properties to be set via NS'. Your vote has been added toward this.

              In meantime, after the data has started, you can do a BarsRequest to get any data you need (and a bar update as well if you want).
              http://ninjatrader.com/support/helpG...arsrequest.htm
              Chelsea B.NinjaTrader Customer Service

              Comment

              Latest Posts

              Collapse

              Topics Statistics Last Post
              Started by YevhenShynkarenko, Today, 02:55 AM
              0 responses
              34 views
              0 likes
              Last Post YevhenShynkarenko  
              Started by pjsmith, Today, 02:20 AM
              0 responses
              9 views
              0 likes
              Last Post pjsmith
              by pjsmith
               
              Started by faisamtrader, Yesterday, 10:03 PM
              0 responses
              8 views
              0 likes
              Last Post faisamtrader  
              Started by johnnybegoode, Yesterday, 08:11 PM
              0 responses
              4 views
              0 likes
              Last Post johnnybegoode  
              Started by Bionian, Yesterday, 02:47 PM
              2 responses
              27 views
              0 likes
              Last Post Bionian
              by Bionian
               
              Working...
              X