• 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

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 mreanuzlazx, Today, 01:30 AM
          0 responses
          1 view
          0 likes
          Last Post mreanuzlazx  
          Started by xinepev, Today, 12:33 AM
          0 responses
          4 views
          0 likes
          Last Post xinepev
          by xinepev
           
          Started by sun0781, Yesterday, 05:02 PM
          0 responses
          8 views
          0 likes
          Last Post sun0781
          by sun0781
           
          Started by ronhb107, 09-12-2019, 10:09 AM
          4 responses
          44 views
          0 likes
          Last Post Mr.Trader  
          Started by rwilliam, Yesterday, 03:55 PM
          0 responses
          4 views
          0 likes
          Last Post rwilliam  
          Working...
          X