Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

How to get marketDataType as a Parameter

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

    How to get marketDataType as a Parameter

    Hello

    How to get marketDataType as a Parameter?

    For user, something like this

    NinjaScriptProperty]
    [TypeConverter(typeof(NinjaTrader.Gui.Tools.Account Selector))]
    [Display( Name = "Account", GroupName = "Parameters", Order = 1)]
    public Account My_Account
    { get; set; }

    ???

    #2
    Hello memonolog,

    Thank you for your post.

    This will give you a dropdown, but there's more than just ask/bid/last in the list.
    [NinjaScriptProperty]
    [Display( Name = "MarketDataType", GroupName = "Parameters", Order = 1)]
    public MarketDataType MyType
    { get; set; }

    If you're wanting to just have those 3 as options, I would suggest creating an enum and then using that to select the market data type.

    Here's a link to our help guide on creating an enum:



    Please let us know if we may be of further assistance to you.

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Mindset, 04-21-2026, 06:46 AM
    0 responses
    87 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by M4ndoo, 04-20-2026, 05:21 PM
    0 responses
    132 views
    0 likes
    Last Post M4ndoo
    by M4ndoo
     
    Started by M4ndoo, 04-19-2026, 05:54 PM
    0 responses
    65 views
    0 likes
    Last Post M4ndoo
    by M4ndoo
     
    Started by cmoran13, 04-16-2026, 01:02 PM
    0 responses
    118 views
    0 likes
    Last Post cmoran13  
    Started by PaulMohn, 04-10-2026, 11:11 AM
    0 responses
    67 views
    0 likes
    Last Post PaulMohn  
    Working...
    X