Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Show/Hide Strategy Inputs Based on the Type of Instrument (Using a Type Converter)

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

    Show/Hide Strategy Inputs Based on the Type of Instrument (Using a Type Converter)

    I'm using type converters to show or hide different input settings for a strategy I'm developing. Is there a way to access the type of instrument the strategy is being applied to inside of a type converter? If so then I could accomplish my goal.

    It looks like there isn't and that I won't be able to do this. But am I missing something? Is it possible?

    #2
    Hello John.Wehland, thanks for your post.

    I was able to get the Instrument.FullName property through my simple test:

    Code:
    [PropertyEditor("NinjaTrader.Gui.Tools.MultilineEditor")]
    public string DisplayText
    {
        get
        {
            return Instrument.FullName;
        }
    }
    Instrument.FullName is available at the time this code runs. It depends on exactly what your custom property is doing. If you are unable to get this to work, please share details on the custom property.

    Best regards.
    Chris L.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by zstheorist, Today, 07:52 PM
    0 responses
    7 views
    0 likes
    Last Post zstheorist  
    Started by pmachiraju, 11-01-2023, 04:46 AM
    8 responses
    150 views
    0 likes
    Last Post rehmans
    by rehmans
     
    Started by mattbsea, Today, 05:44 PM
    0 responses
    6 views
    0 likes
    Last Post mattbsea  
    Started by RideMe, 04-07-2024, 04:54 PM
    6 responses
    33 views
    0 likes
    Last Post RideMe
    by RideMe
     
    Started by tkaboris, Today, 05:13 PM
    0 responses
    6 views
    0 likes
    Last Post tkaboris  
    Working...
    X