Announcement

Collapse
No announcement yet.

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

    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) "

        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?

            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.

                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.

                    Comment

                    Latest Posts

                    Collapse

                    Topics Statistics Last Post
                    Started by Hwop38, 05-04-2026, 07:02 PM
                    0 responses
                    164 views
                    0 likes
                    Last Post Hwop38
                    by Hwop38
                     
                    Started by CaptainJack, 04-24-2026, 11:07 PM
                    0 responses
                    319 views
                    0 likes
                    Last Post CaptainJack  
                    Started by Mindset, 04-21-2026, 06:46 AM
                    0 responses
                    246 views
                    0 likes
                    Last Post Mindset
                    by Mindset
                     
                    Started by M4ndoo, 04-20-2026, 05:21 PM
                    0 responses
                    350 views
                    0 likes
                    Last Post M4ndoo
                    by M4ndoo
                     
                    Started by M4ndoo, 04-19-2026, 05:54 PM
                    0 responses
                    179 views
                    0 likes
                    Last Post M4ndoo
                    by M4ndoo
                     
                    Working...
                    X