Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

AtmStrategy.AtmStrategySelector not found

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

    AtmStrategy.AtmStrategySelector not found

    Hi all !

    I am trying to implement the example of Event fired by a change in the ATM strategy Selector as shown in the Help for the AtmStrategySelector item



    Defining the variable as

    private AtmStrategy.AtmStrategySelector

    doesn't work because there is no AtmStrategySelector in the AtmStrategy in the class. And I don't find how I can get the ATM strategy selector to attach to the SelectionChanged a trigger.

    I am developing an indicator and would like to fired an event when the user changes the ATM strategy in the ChartTrader.

    I have found the way to do that in case of a change in the Account with this code :

    CuentaSeleccionada = Window.GetWindow(ChartControl.Parent).FindFirst("C hartTraderControlAccountSelector") as NinjaTrader.Gui.Tools.AccountSelector;


    CuentaSeleccionada.SelectionChanged += (o,args) =>
    {
    AccountName = CuentaSeleccionada.SelectedAccount.ToString();
    lock (Account.All)
    myAccount = Account.All.FirstOrDefault(a => a.Name == AccountName);
    Print("CAMBIO CUENTA " + myAccount);
    };​



    How could I do the same but with the ATM strategy selector ?

    Thanks


    #2
    Hello hbolorin,

    Attached is an example.

    Attached Files
    Chelsea B.NinjaTrader Customer Service

    Comment


      #3
      Thnk you for the file. That is what I needed.

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by CaptainJack, 05-29-2026, 05:09 AM
      0 responses
      163 views
      0 likes
      Last Post CaptainJack  
      Started by CaptainJack, 05-29-2026, 12:02 AM
      0 responses
      83 views
      0 likes
      Last Post CaptainJack  
      Started by charlesugo_1, 05-26-2026, 05:03 PM
      0 responses
      126 views
      0 likes
      Last Post charlesugo_1  
      Started by DannyP96, 05-18-2026, 02:38 PM
      1 response
      207 views
      0 likes
      Last Post NinjaTrader_ChelseaB  
      Started by CarlTrading, 05-11-2026, 05:56 AM
      0 responses
      185 views
      0 likes
      Last Post CarlTrading  
      Working...
      X