• 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 saeed, Today, 12:32 PM
    3 responses
    36 views
    0 likes
    Last Post NinjaTrader_PatrickG  
    Started by motog4, Today, 11:42 AM
    3 responses
    20 views
    0 likes
    Last Post NinjaTrader_PatrickG  
    Started by derivtrader, Today, 11:20 AM
    5 responses
    27 views
    0 likes
    Last Post derivtrader  
    Started by TAJTrades, Today, 10:34 AM
    1 response
    11 views
    0 likes
    Last Post NinjaTrader_ChrisL  
    Started by timcjpfx, Today, 10:20 AM
    1 response
    6 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Working...
    X