Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

Partner 728x90

Collapse

multi timescale ploting

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

    multi timescale ploting

    Good Morning,

    To make the long story short:
    With a chart(es 12-11) in renko(3) i add the indicator attached to this message.
    In the script i do AddRanko(2);AddRanko(3) ;AddRanko(4).
    How do i change the script so that each plot updates when each of the AddRenko updated.
    From the AddRanko(3) i should have a line which has less points than the AddRanko(2) and more than the AddRanko(4).

    Thanks
    Attached Files

    #2
    diff24rac, the plots series are tied to the primary series, your base here. For updating series on another timeframe you would need to sync those first together :

    Note: In NinjaTrader 8 It is no longer needed to use an indicator to sync a secondary series. This can be done directly from the Series<T> (https://ninjatrader.com/support/helpGuides/nt8/NT%20HelpGuide%20English.html?seriest.htm) constructor. This post is left for historical purposes. Series objects are useful for
    BertrandNinjaTrader Customer Service

    Comment


      #3
      Hello,

      I see now, thanks.

      I've attached another script.
      in the onmarketdepth, there are:
      if barinprogress=0
      print(something0)
      and
      if barinprogress=1
      print(something1)

      only the barinprogress=0 is entered, why

      Regards
      Attached Files

      Comment


        #4
        Please see tip1 here from the OnMarketDepth() help - http://www.ninjatrader.com/support/h...arketdepth.htm

        " With multi-time frame and instrument strategies, OnMarketDepth will be called for all unique instruments in your strategy. Use the BarsInProgress to filter the OnMarketDepth() method for a specific instrument. (BarsInProgress will return the first BarsInProgress series that matches the instrument for the event) "
        BertrandNinjaTrader Customer Service

        Comment


          #5
          Hi,

          That's what i've done. I've filtered with if(barsinprogress==n) inside the onmarketdepth

          JF

          Comment


            #6
            Correct, you would see no prints for BIP 1 then if it's the same instrument added - why should another bar series have a different Level 2 data?
            BertrandNinjaTrader Customer Service

            Comment


              #7
              Hi
              because they wouldn't open or close at the time.
              I thought two ES with different dataseriestype were different.

              thanks

              Comment


                #8
                Ok, I see, no that would be the same Level 2 stream.
                BertrandNinjaTrader Customer Service

                Comment


                  #9
                  So, if i have several chart windows opened with the same instrument, nt won't take twice the bandwidth?

                  Comment


                    #10
                    That's right, it would subscribe to the running stream then if already available.
                    BertrandNinjaTrader Customer Service

                    Comment

                    Latest Posts

                    Collapse

                    Topics Statistics Last Post
                    Started by bortz, 11-06-2023, 08:04 AM
                    47 responses
                    1,603 views
                    0 likes
                    Last Post aligator  
                    Started by jaybedreamin, Today, 05:56 PM
                    0 responses
                    8 views
                    0 likes
                    Last Post jaybedreamin  
                    Started by DJ888, 04-16-2024, 06:09 PM
                    6 responses
                    18 views
                    0 likes
                    Last Post DJ888
                    by DJ888
                     
                    Started by Jon17, Today, 04:33 PM
                    0 responses
                    4 views
                    0 likes
                    Last Post Jon17
                    by Jon17
                     
                    Started by Javierw.ok, Today, 04:12 PM
                    0 responses
                    12 views
                    0 likes
                    Last Post Javierw.ok  
                    Working...
                    X