• 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

how can I access a unique identifier for a chart

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

    how can I access a unique identifier for a chart

    I have a programmatic need to identify a chart. I have used Bars.Instrument.FullName
    which worked fine for a previous need. But now I may have charts that have the identical instrument and chart type so this is no longer unique.

    Is there some identifier that is persistent for a chart, always the same even if I stop and restart NT. I would think there is some internal chart ID number based on it's creation order in the workspace.

    Any suggestion on datatype I could poke around in for such an id or suggestion on how to accomplish the same thing. It needs to be persistent and uniquely the same on restart.

    #2
    Hello,

    I am not aware of an id system in place already for the charts that would be easily accessible, but wouldn't a ID input work in the indicator/strategy?

    For example, add a user defined input for an int, add the item to a chart and assign an ID.

    That would be saved with the Chart individually when you save your workspace, so chart A could have an id and Chart B could have a totally different ID although it is the same indicator or strategy.

    You could then use that ID for whatever other work you are having the script do in which that is needed to identify a specific chart.

    I look forward to being of further assistance .
    JesseNinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Fness2020, Today, 08:29 PM
    0 responses
    4 views
    0 likes
    Last Post Fness2020  
    Started by andrewtrades, Today, 08:24 PM
    0 responses
    2 views
    0 likes
    Last Post andrewtrades  
    Started by Eric M., Today, 05:25 PM
    0 responses
    12 views
    1 like
    Last Post Eric M.
    by Eric M.
     
    Started by ttodua, Today, 01:52 PM
    1 response
    18 views
    0 likes
    Last Post NinjaTrader_Jim  
    Started by muisca, 05-19-2017, 11:49 AM
    8 responses
    6,468 views
    0 likes
    Last Post NinjaTrader_Tyler  
    Working...
    X