Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Ninja Trader 8 Plot0

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

    Ninja Trader 8 Plot0

    Hi!
    I'm trying to plot a variable (Var1) from an indicator in NT8.
    In NT7 I could just type Plot0.Set(Var1); and it would be plotted..
    When I write the same code in NT8 it doesn't work at all..

    #2
    Hello m96gran,

    Thank you for your note.

    Setting the plot in NinjaTrader 8 has changed from NinjaTrader 7. I’ve provided an example of setting the value of the plot as well as a link to the help guide with additional examples.

    Under State ==State.SetDefaults,

    AddPlot(Brushes.Blue, "Plot0");

    Then under OnBarUpdate() after you’ve set the value of Var1, you’ll set Plot0 equal to Var1. For example,

    if(CurrentBar<1) return;
    double var1 = Low[0];
    Value[0]=var1;

    See AddPlot() section of our Helpguide:


    Please let us know if you need further assistance.
    Alan P.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by argusthome, 03-08-2026, 10:06 AM
    0 responses
    111 views
    0 likes
    Last Post argusthome  
    Started by NabilKhattabi, 03-06-2026, 11:18 AM
    0 responses
    60 views
    0 likes
    Last Post NabilKhattabi  
    Started by Deep42, 03-06-2026, 12:28 AM
    0 responses
    38 views
    0 likes
    Last Post Deep42
    by Deep42
     
    Started by TheRealMorford, 03-05-2026, 06:15 PM
    0 responses
    43 views
    0 likes
    Last Post TheRealMorford  
    Started by Mindset, 02-28-2026, 06:16 AM
    0 responses
    79 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Working...
    X