Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

how can i access values

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

    how can i access values

    if i have 2 plots. how do i access the values of the second plot
    // Adds a blue line style plot
    Add(new Plot(Color.Blue, "myPlot"));
    // Adds a blue historgram style plot
    Add(new Plot(Color.Blue, PlotStyle.Bar, "myPlot"));


    would the current value of second plot be available @ Values[1][0]?

    #2
    junkone,

    You give each plot a name and then you just access their individual names. Please see the MACD indicator for an example. Pay attention to what is shown in the Properties region of the code since that is where the plot names are given.
    Josh P.NinjaTrader Customer Service

    Comment


      #3
      Or use Values[1] for your second plot if you dont name it.
      eDanny
      NinjaTrader Ecosystem Vendor - Integrity Traders

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by SalmaTrader, 07-07-2026, 10:26 PM
      0 responses
      35 views
      0 likes
      Last Post SalmaTrader  
      Started by CarlTrading, 07-05-2026, 01:16 PM
      0 responses
      20 views
      0 likes
      Last Post CarlTrading  
      Started by CaptainJack, 06-17-2026, 10:32 AM
      0 responses
      13 views
      0 likes
      Last Post CaptainJack  
      Started by kinfxhk, 06-17-2026, 04:15 AM
      0 responses
      19 views
      0 likes
      Last Post kinfxhk
      by kinfxhk
       
      Started by kinfxhk, 06-17-2026, 04:06 AM
      0 responses
      22 views
      0 likes
      Last Post kinfxhk
      by kinfxhk
       
      Working...
      X