Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Add new plot to Sto indicator

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

    Add new plot to Sto indicator

    I'm wanting to add a new plot line in a customer Sto indicator, however when I add a new get return values higher than 5 it fails to display and gives an output message "index was outside the bounds of the array". How do I increase the array to handle this? OR is there a built in restriction?

    [Browsable(false)]
    [XmlIgnore()]
    public DataSeries D5
    {
    get { return Values[6]; }
    }

    #2
    Originally posted by fbrtrading View Post
    I'm wanting to add a new plot line in a customer Sto indicator, however when I add a new get return values higher than 5 it fails to display and gives an output message "index was outside the bounds of the array". How do I increase the array to handle this? OR is there a built in restriction?

    [Browsable(false)]
    [XmlIgnore()]
    public DataSeries D5
    {
    get { return Values[6]; }
    }
    Do you have 7 Plots declared in your Initialize() method?
    Last edited by koganam; 05-22-2015, 01:21 PM.

    Comment


      #3
      Hello fbrtrading,

      Thank you for your inquiry.

      This is occurring because you have not added more than 6 DataSeries objects.

      You are getting the "index was outside the bounds of the array" error as you do have data in the indices of 0, 1, 2, 3, 4, and 5, but have not added anything to 6 or above.

      For more information about the DataSeries class, please take a look at the NinjaTrader help guide at this link: http://www.ninjatrader.com/support/h...ries_class.htm

      For more information about Values, please take a look at the NinjaTrader help guide at this link: http://www.ninjatrader.com/support/h...tml?values.htm

      Please, let us know if we can be of further assistance!
      Zachary G.NinjaTrader Customer Service

      Comment


        #4
        I do have 7 plots

        Comment


          #5
          Hello fbrtrading,

          Please export your indicator as a ZIP file, attach it to an email, and send it to platformsupport[AT]ninjatrader[DOT]com. Please be sure to reference my name and the ticket number of 1322730 in the body of your email.

          You can export the indicator by clicking on File -> Utilities -> Export NinjaScript… in the Control Center.

          In the “Export NinjaScript Archive File (.zip)” window that follows:
          1. Ensure that “Export selected source files” is selected.
          2. Enter a file name for the ZIP file.
          3. Select your indicator from the list and click on the “>” so the indicator moves to the right side of the window.
          4. Click on Export

          The ZIP file will be saved in the “\Documents\NinjaTrader 7\bin\Custom\ExportNinjaScript” folder.

          I look forward to your response.
          Zachary G.NinjaTrader Customer Service

          Comment


            #6
            Thanks for the reply, I want to first recheck my syntax and if I'm still stuck I'll forward it to you.

            Comment

            Latest Posts

            Collapse

            Topics Statistics Last Post
            Started by Christopher_R, Today, 12:29 AM
            0 responses
            9 views
            0 likes
            Last Post Christopher_R  
            Started by sidlercom80, 10-28-2023, 08:49 AM
            166 responses
            2,235 views
            0 likes
            Last Post sidlercom80  
            Started by thread, Yesterday, 11:58 PM
            0 responses
            3 views
            0 likes
            Last Post thread
            by thread
             
            Started by jclose, Yesterday, 09:37 PM
            0 responses
            8 views
            0 likes
            Last Post jclose
            by jclose
             
            Started by WeyldFalcon, 08-07-2020, 06:13 AM
            10 responses
            1,415 views
            0 likes
            Last Post Traderontheroad  
            Working...
            X