• If this is your first visit, you will have to register before you can post. To view messages, please scroll below and select the forum that you would like to visits. Questions? Be sure to check out the Forum FAQ.

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:
    http://ninjatrader.com/support/helpG...s/?addplot.htm

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

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by lavalampmj, Today, 05:25 PM
    0 responses
    3 views
    0 likes
    Last Post lavalampmj  
    Started by Antares66, Today, 05:19 PM
    0 responses
    2 views
    0 likes
    Last Post Antares66  
    Started by jmneto, Today, 05:18 PM
    0 responses
    4 views
    0 likes
    Last Post jmneto
    by jmneto
     
    Started by Bobbyj78, Today, 02:21 PM
    2 responses
    14 views
    0 likes
    Last Post bltdavid  
    Started by EnveousColnago, Today, 02:10 PM
    1 response
    9 views
    0 likes
    Last Post NinjaTrader_Ariana  
    Working...
    X