Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Port this line correctly

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

    Port this line correctly

    Hello,

    Could someone tell me the correct way to port this line from NT7 to NT8?


    Values[0].Set(max.Key);


    Many thanks!!

    #2
    Hello rafaelmarcos,

    Thanks for the note.

    You can do two things. You can just set the Values[0][0] index to max.Key like this:

    Code:
    Values[0][0] = max.Key;
    Alternatively, if you have a plot that is set up as a public property like you can reference the name of that public property.

    Ex:

    Code:
    protected override void OnBarUpdate()
    {
    	MyPlot[0] = max.Key;
    }
    ...
    
    [Browsable(false)]
    [XmlIgnore]
    public Series<double> MyPlot
    {
    	get { return Values[0]; }
    }
    Please let us know if we may be of any further assistance.

    Comment


      #3
      Thanks a lot ChrisL!!

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by Geovanny Suaza, 02-11-2026, 06:32 PM
      0 responses
      558 views
      0 likes
      Last Post Geovanny Suaza  
      Started by Geovanny Suaza, 02-11-2026, 05:51 PM
      0 responses
      324 views
      1 like
      Last Post Geovanny Suaza  
      Started by Mindset, 02-09-2026, 11:44 AM
      0 responses
      101 views
      0 likes
      Last Post Mindset
      by Mindset
       
      Started by Geovanny Suaza, 02-02-2026, 12:30 PM
      0 responses
      545 views
      1 like
      Last Post Geovanny Suaza  
      Started by RFrosty, 01-28-2026, 06:49 PM
      0 responses
      547 views
      1 like
      Last Post RFrosty
      by RFrosty
       
      Working...
      X