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 TradeForge, Today, 02:09 AM
    0 responses
    0 views
    0 likes
    Last Post TradeForge  
    Started by Waxavi, Today, 02:00 AM
    0 responses
    2 views
    0 likes
    Last Post Waxavi
    by Waxavi
     
    Started by elirion, Today, 01:36 AM
    0 responses
    4 views
    0 likes
    Last Post elirion
    by elirion
     
    Started by gentlebenthebear, Today, 01:30 AM
    0 responses
    4 views
    0 likes
    Last Post gentlebenthebear  
    Started by samish18, Yesterday, 08:31 AM
    2 responses
    9 views
    0 likes
    Last Post elirion
    by elirion
     
    Working...
    X