• 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

Add Property Columns programatically

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

    Add Property Columns programatically

    there is a way to conditionally remove/hide properties using

    Code:
    internal partial void ModifyProperties(PropertyDescriptorCollection col)
    {
       if (!ShowB) col.Remove(col.Find("InputB", true)); 
    }
    however, there must be a way to add properties using this way.
    What we want to achieve is to add all properties from 3rd party indiactor automatically, to the current strategy, like this (pseudo-code, which we want to do something like this):

    ( I got hint from: https://ninjatrader.com/support/foru...01&postcount=6 )


    and use this code: https://pastebin.com/raw/Nb8gTj8x

    but something fails.. (however, I think almost reaches the aim).

    any help?

    #2
    Hello TazoTodua,

    Thank you for your note.

    Attached would be a sample which demonstrates how you could conditionally change properties based on an input. For example in attached sample, whether you select Choice List Item A or B, will show different variables to be set beneath it.

    Regarding adding all properties from a third party indicator automatically, this may be possible however would be unsupported.

    Please let us know if you need further assistance.
    Attached Files
    Alan P.NinjaTrader Customer Service

    Comment


      #3
      thanks. but the example show show to CHANGE.
      IS THERE A WAY, how to add a new property?

      my code somehow achieved adding property (but has problems with value).
      so, hoped to get example of how to add properties from other object automatically.

      Comment


        #4
        Hello TazoTodua,

        Adding a new property via another object may be possible however would be unsupported and I am unable to find any unsupported samples which demonstrate how this could be done.

        I have submitted a feature request for this in NT8.

        Please let us know if you need further assistance.
        Alan P.NinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by Traderjoe2017, Today, 06:17 AM
        0 responses
        1 view
        0 likes
        Last Post Traderjoe2017  
        Started by tony98, Today, 06:05 AM
        0 responses
        2 views
        0 likes
        Last Post tony98
        by tony98
         
        Started by Mr.Trader, Today, 04:11 AM
        0 responses
        9 views
        0 likes
        Last Post Mr.Trader  
        Started by 3lliot, Today, 01:00 AM
        2 responses
        12 views
        0 likes
        Last Post 3lliot
        by 3lliot
         
        Started by JohnSteinberg, Yesterday, 04:19 AM
        0 responses
        23 views
        0 likes
        Last Post JohnSteinberg  
        Working...
        X