Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

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 gentlebenthebear, Today, 01:30 AM
          1 response
          8 views
          0 likes
          Last Post NinjaTrader_Jesse  
          Started by Aviram Y, Today, 05:29 AM
          1 response
          7 views
          0 likes
          Last Post NinjaTrader_ChelseaB  
          Started by cls71, Today, 04:45 AM
          1 response
          7 views
          0 likes
          Last Post NinjaTrader_ChelseaB  
          Started by TradeForge, Today, 02:09 AM
          1 response
          22 views
          0 likes
          Last Post NinjaTrader_ChelseaB  
          Started by elirion, Today, 01:36 AM
          2 responses
          14 views
          0 likes
          Last Post elirion
          by elirion
           
          Working...
          X