Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

How Dynamically Know the plot index from given series

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

    How Dynamically Know the plot index from given series

    Hi,

    I am an experienced .Net Programmer but very much new with NinjaScript.

    I am trying to develop an indicator which is having multiple Plots with their associated series. I am aware that Plots can fetched at later stage with its Plots[] index.

    Is there any way to get plot index from Its Series?

    Thanks in advance!

    #2
    Hi raaxus, thanks for your post.

    A Series<T> object and a Plot object are independent of each other, so it would be up to the programmer to know there are as many Series indexes as there are Values[][] indexes. Note you can also access the value of any plot with the Values[][] array as well e.g. the second to last value of the second plot:

    var x = Values[1][1];

    Please let me know if this does not resolve your inquiry.

    Comment


      #3
      Originally posted by NinjaTrader_ChrisL View Post
      Hi raaxus, thanks for your post.

      A Series<T> object and a Plot object are independent of each other, so it would be up to the programmer to know there are as many Series indexes as there are Values[][] indexes. Note you can also access the value of any plot with the Values[][] array as well e.g. the second to last value of the second plot:

      var x = Values[1][1];

      Please let me know if this does not resolve your inquiry.
      Hi,

      I wish to know the Plot brush from the series so that text can be drawn with same color (if possible)

      Comment


        #4
        Hello raaxus,

        Thanks for your reply.

        You can use Plots[].Brush, where [] would be the index number of plot.

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by Mindset, 04-21-2026, 06:46 AM
        0 responses
        54 views
        0 likes
        Last Post Mindset
        by Mindset
         
        Started by M4ndoo, 04-20-2026, 05:21 PM
        0 responses
        72 views
        0 likes
        Last Post M4ndoo
        by M4ndoo
         
        Started by M4ndoo, 04-19-2026, 05:54 PM
        0 responses
        38 views
        0 likes
        Last Post M4ndoo
        by M4ndoo
         
        Started by cmoran13, 04-16-2026, 01:02 PM
        0 responses
        99 views
        0 likes
        Last Post cmoran13  
        Started by PaulMohn, 04-10-2026, 11:11 AM
        0 responses
        60 views
        0 likes
        Last Post PaulMohn  
        Working...
        X