Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

lock account selector in chart trader

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

    lock account selector in chart trader

    Is there a way to lock or make the Account Selector unchangeable just like the Instrument Selector in the chart trader.
    Attached Files

    #2
    Hello luxurious_04,

    Thank you for your post.

    That would be possible from NinjaScript, yes.

    Code:
                    ChartControl.Dispatcher.InvokeAsync((Action)(() =>
                    {
                        NinjaTrader.Gui.Tools.AccountSelector accountSelector = (Window.GetWindow(ChartControl.Parent).FindFirst("ChartTraderControlAccountSelector") as NinjaTrader.Gui.Tools.AccountSelector);
    
                        accountSelector.IsEnabled = false;
                    }));
    Please let us know if we may be of further assistance to you.
    Kate W.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Cross161, Today, 10:33 PM
    0 responses
    3 views
    0 likes
    Last Post Cross161  
    Started by neilzep, Today, 08:55 PM
    0 responses
    6 views
    0 likes
    Last Post neilzep
    by neilzep
     
    Started by javier.filgueira, Today, 03:29 PM
    3 responses
    10 views
    0 likes
    Last Post javier.filgueira  
    Started by Da vinci, Today, 03:15 PM
    1 response
    8 views
    0 likes
    Last Post NinjaTrader_ChrisL  
    Started by Da vinci, Today, 02:51 PM
    1 response
    14 views
    0 likes
    Last Post NinjaTrader_ChrisL  
    Working...
    X