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

wierd error in removing parameter

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

    wierd error in removing parameter

    I am trying to remove a parameter in my NT7 platform and when I do it gives me an

    CS1061 ERROR



    this is the code
    private int nTimeThreshold = 15;
    [Browsable(false)]
    [Description("")]
    [GridCategory("\t\tDay Back Search")]
    [Gui.Design.DisplayName("Time Threshold")]
    public int TimeThreshold
    {
    get { return nTimeThreshold; }
    set { nTimeThreshold = Math.Max(0, value); }
    }

    right now i made browsable to false in order to hide it but it is not being used anywhere in my code.
    Attached Files

    #2
    Hello,

    Thank you for the post.

    Have you at this point tried double clicking on the errors to see if the editor can bring you to the error location?

    A Yellow error should indicate the error is inside of the script being edited where an orange error would indicate some other script.

    If double-clicking brings you to the lines mentioned in the error, could you provide an image of the syntax in that area? I am unsure by the error what may be used in your logic specifically that would generate the error. It seems the error is indicating TimeThreshold cannot be found where it is being used and is possibly being used with an overload () which does not support.

    I look forward to being of further assistance.
    JesseNinjaTrader Customer Service

    Comment


      #3
      The error is from the ninjatrader compiler driven code.

      it is in this section



      #region NinjaScript generated code. Neither change nor remove.
      // This namespace holds all indicators and is required. Do not change it.
      namespace NinjaTrader.Indicator

      the csERROR number doesn't exist aswell

      Comment


        #4
        Hello,

        In this case, I would need to see the script to further assist with this error. Could you either post the script as an attachment or email it to our platform support [at] ninjatrader.com?

        I look forward to being of further assistance.
        JesseNinjaTrader Customer Service

        Comment


          #5
          I reinstalled NT7 and now I can compile. Weird error thats all.

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by usazencortex, Today, 12:43 AM
          0 responses
          1 view
          0 likes
          Last Post usazencortex  
          Started by sidlercom80, 10-28-2023, 08:49 AM
          168 responses
          2,262 views
          0 likes
          Last Post sidlercom80  
          Started by Barry Milan, Yesterday, 10:35 PM
          3 responses
          10 views
          0 likes
          Last Post NinjaTrader_Manfred  
          Started by WeyldFalcon, 12-10-2020, 06:48 PM
          14 responses
          1,429 views
          0 likes
          Last Post Handclap0241  
          Started by DJ888, 04-16-2024, 06:09 PM
          2 responses
          9 views
          0 likes
          Last Post DJ888
          by DJ888
           
          Working...
          X