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.

          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.

              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.

                  Comment

                  Latest Posts

                  Collapse

                  Topics Statistics Last Post
                  Started by mjairg, 07-20-2023, 11:57 PM
                  3 responses
                  213 views
                  1 like
                  Last Post PaulMohn  
                  Started by TheWhiteDragon, 01-21-2019, 12:44 PM
                  4 responses
                  544 views
                  0 likes
                  Last Post PaulMohn  
                  Started by GLFX005, Today, 03:23 AM
                  0 responses
                  3 views
                  0 likes
                  Last Post GLFX005
                  by GLFX005
                   
                  Started by XXtrader, Yesterday, 11:30 PM
                  2 responses
                  12 views
                  0 likes
                  Last Post XXtrader  
                  Started by Waxavi, Today, 02:10 AM
                  0 responses
                  7 views
                  0 likes
                  Last Post Waxavi
                  by Waxavi
                   
                  Working...
                  X