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

addplot and values index

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

    addplot and values index

    Is there a method available for returning which Values[index] index is assigned to an addplot statement?
    For example if i add 5 plots to the indicator and i want to change the brush or linestyle of a plot then i need to know the values index for plots[index] or plotbrushes[index] etc.
    So if i'm using addplot(stroke, "name") then in the script it will be convenient to refer to the Values array associated with "name" rather than keeping track of when the plot was added using an indexer.

    thanks

    #2
    Hello dtl-saw,

    I am not aware of any property in the Values collection that would identify the parameters used with AddPlot(). These are identified with an index in the collection in the order they are added (similar to other collections and arrays).
    Chelsea B.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by frankthearm, Today, 09:08 AM
    2 responses
    4 views
    0 likes
    Last Post frankthearm  
    Started by adeelshahzad, Today, 03:54 AM
    3 responses
    16 views
    0 likes
    Last Post NinjaTrader_BrandonH  
    Started by yertle, Today, 08:38 AM
    5 responses
    13 views
    0 likes
    Last Post NinjaTrader_BrandonH  
    Started by bill2023, Yesterday, 08:51 AM
    6 responses
    27 views
    0 likes
    Last Post NinjaTrader_Erick  
    Started by NinjaTrader_ChelseaB, 01-08-2017, 06:59 PM
    80 responses
    19,667 views
    5 likes
    Last Post NinjaTrader_ChelseaB  
    Working...
    X