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 bortz, 11-06-2023, 08:04 AM
    47 responses
    1,607 views
    0 likes
    Last Post aligator  
    Started by jaybedreamin, Today, 05:56 PM
    0 responses
    9 views
    0 likes
    Last Post jaybedreamin  
    Started by DJ888, 04-16-2024, 06:09 PM
    6 responses
    19 views
    0 likes
    Last Post DJ888
    by DJ888
     
    Started by Jon17, Today, 04:33 PM
    0 responses
    6 views
    0 likes
    Last Post Jon17
    by Jon17
     
    Started by Javierw.ok, Today, 04:12 PM
    0 responses
    15 views
    0 likes
    Last Post Javierw.ok  
    Working...
    X