• 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

How to add customer property in customer indicator

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

    How to add customer property in customer indicator

    Hello,

    I am facing problem while adding properties in custom indicators, which should show a button in it's value part in NT8.
    This is done in NT7, using UITypeEditor

    [EditorAttribute(typeof(PictureEditor), typeof(UITypeEditor))]

    But the same code is not working in NT8.

    Kindly help in this regard.

    Thanks and regards,
    Rutvika

    #2
    Originally posted by Rutvika Khot View Post
    Hello,

    I am facing problem while adding properties in custom indicators, which should show a button in it's value part in NT8.
    This is done in NT7, using UITypeEditor

    [EditorAttribute(typeof(PictureEditor), typeof(UITypeEditor))]

    But the same code is not working in NT8.

    Kindly help in this regard.

    Thanks and regards,
    Rutvika
    You would use the PropertyEditor.

    ref: http://ninjatrader.com/support/forum...ad.php?t=78796

    Comment


      #3
      Hello Rutvika Khot,

      Thanks for your post and welcome to the forums!

      Member Koganam has provided a good reference.

      Here is an example of the same:
      Code:
      		[Display(ResourceType = typeof(Custom.Resource), Name = "File Name", GroupName = "NinjaScriptParameters", Order = 0)]
      		[PropertyEditor("NinjaTrader.Gui.Tools.FilePathPicker", Filter="Wav Files (*.wav)|*.wav")]
      		public string FileName
      		{
      			get { return fileName; }
      			set { fileName = value; }
      		}
      Paul H.NinjaTrader Customer Service

      Comment


        #4
        Custom properties in indicator

        On click of a button (for e.g. "Choose File..."), I want to open my form instead of File Open Dialog Box.

        Thanks Koganam and Ninjatrader_Paul for reply.

        Thanks and regards,
        Rutvika Khot
        Last edited by Rutvika Khot; 12-08-2015, 03:58 AM.

        Comment


          #5
          Hello Rutvika Khot,

          Thank you for your response.

          You would need to find the Menu's automation id in State.Configure and then add a button to the grid. Unfortunately, there is no built in function do this and it would require custom programming a button to the grid.
          Patrick H.NinjaTrader Customer Service

          Comment


            #6
            convert property with UITypeEditor

            Is there any progress on this?

            How to convert property that used UITypeEditor in NT7, and open a custom editor?

            Does nt8 support this now?

            Comment


              #7
              Hello everyone,

              Custom property editors would not be fully supported at this time. The suggestion is being tracked under ID # SFT-655.
              Patrick H.NinjaTrader Customer Service

              Comment


                #8
                Hello Patrick,

                "Custom property editors would not be fully supported "
                What is the current support level, how to convert nt7 indicators with UITypeEditor which edit custom structures?

                Regards,
                dotnet

                Comment


                  #9
                  Hello dotnet,

                  There is currently no supported means to create custom property or grid editors.
                  Patrick H.NinjaTrader Customer Service

                  Comment

                  Latest Posts

                  Collapse

                  Topics Statistics Last Post
                  Started by sambo81, Today, 06:57 PM
                  0 responses
                  1 view
                  0 likes
                  Last Post sambo81
                  by sambo81
                   
                  Started by erichuff, Today, 04:53 AM
                  1 response
                  26 views
                  0 likes
                  Last Post NinjaTrader_ChrisL  
                  Started by stevenev1, Today, 01:43 PM
                  0 responses
                  8 views
                  0 likes
                  Last Post stevenev1  
                  Started by shinuvu, Today, 11:05 AM
                  3 responses
                  18 views
                  0 likes
                  Last Post NinjaTrader_ChrisL  
                  Started by Hagar, Yesterday, 07:12 PM
                  2 responses
                  22 views
                  1 like
                  Last Post Hagar
                  by Hagar
                   
                  Working...
                  X