Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Indicator help

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

    Indicator help

    Hi Traders;

    I'm new to the Ninja Trader platform. I just tried to add my first indicator, but could not get it to display. Any help or suggestions from anyone would be greatly appreciated. The script is attached for anybody who wants to look at it;

    Thanks in advance for anybody taking the time to look this over.

    Safetrading
    Attached Files

    #2
    Try this

    [Browsable(false)] // this line prevents the data series from being displayed in the indicator properties dialog, do not remove
    [XmlIgnore()] // this line ensures that the indicator can be saved/recovered as part of a chart template, do not remove
    public DataSeries PlotBulls
    {
    get { return Values[0]; }
    }
    [Browsable(false)] // this line prevents the data series from being displayed in the indicator properties dialog, do not remove
    [XmlIgnore()] // this line ensures that the indicator can be saved/recovered as part of a chart template, do not remove
    public DataSeries PlotBears
    {
    get { return Values[1]; }
    }
    RayNinjaTrader Customer Service

    Comment


      #3
      Thanks

      Thanks, that worked perfect. Was the reason for the problem my fault when inputing data in the Indicator Wizard?

      Originally posted by NinjaTrader_Ray View Post
      Try this

      [Browsable(false)] // this line prevents the data series from being displayed in the indicator properties dialog, do not remove
      [XmlIgnore()] // this line ensures that the indicator can be saved/recovered as part of a chart template, do not remove
      public DataSeries PlotBulls
      {
      get { return Values[0]; }
      }
      [Browsable(false)] // this line prevents the data series from being displayed in the indicator properties dialog, do not remove
      [XmlIgnore()] // this line ensures that the indicator can be saved/recovered as part of a chart template, do not remove
      public DataSeries PlotBears
      {
      get { return Values[1]; }
      }

      Comment


        #4
        Somehow the values in red were changed. Did you change them? The wizard would have generated it correctly.
        RayNinjaTrader Customer Service

        Comment


          #5
          I didn't think so, as I didn't start editing things until after I saw the script wouldn't display, but it sounds like I must have done something wrong. Oh well, thanks for your help. Hopefully I'll do better on the next one.

          Safetrading

          Originally posted by NinjaTrader_Ray View Post
          Somehow the values in red were changed. Did you change them? The wizard would have generated it correctly.

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by Geovanny Suaza, 02-11-2026, 06:32 PM
          0 responses
          599 views
          0 likes
          Last Post Geovanny Suaza  
          Started by Geovanny Suaza, 02-11-2026, 05:51 PM
          0 responses
          344 views
          1 like
          Last Post Geovanny Suaza  
          Started by Mindset, 02-09-2026, 11:44 AM
          0 responses
          103 views
          0 likes
          Last Post Mindset
          by Mindset
           
          Started by Geovanny Suaza, 02-02-2026, 12:30 PM
          0 responses
          558 views
          1 like
          Last Post Geovanny Suaza  
          Started by RFrosty, 01-28-2026, 06:49 PM
          0 responses
          557 views
          1 like
          Last Post RFrosty
          by RFrosty
           
          Working...
          X