Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Did ChartTrader automation ID change?

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

    Did ChartTrader automation ID change?

    In beta 2, this line of code was working:

    Code:
    chartTrader = Window.GetWindow(ChartControl.Parent).
         FindFirst(GELConstants.CHART_TRADER_AUTO_ID) as ChartTrader;
    In beta 3 it is not.

    What changed regarding ChartTrader access?

    Gary

    #2
    Originally posted by GaryAlbers View Post
    What changed regarding ChartTrader access?

    Looks like they changed the automation id from ChartWindowChartTrader to ChartWindowChartTraderControl...





    -=Edge=-
    NinjaTrader Ecosystem Vendor - High Tech Trading Analysis

    Comment


      #3
      Thanks Edge.

      Do you mind sharing how you discovered that?
      I am not familiar enough with WPF/etc to know that trick.

      Thanks,
      Gary

      Comment


        #4
        Originally posted by GaryAlbers View Post
        Thanks Edge.

        Do you mind sharing how you discovered that?
        I am not familiar enough with WPF/etc to know that trick.

        Thanks,
        Gary

        Hidden Tip, well not hidden, but Tip at the bottom of AddOnBass Class in Help Guide..





        -=Edge=-
        NinjaTrader Ecosystem Vendor - High Tech Trading Analysis

        Comment


          #5
          Thanks, edge.

          Automation IDs are not documented and subject to change between releases without notification. Programs like Inspect, snoop, etc can be used to easily find these IDs if needed - or we'll be happy to look up on the current releases should you have trouble locating one.
          MatthewNinjaTrader Product Management

          Comment


            #6
            Can you please look up the automation ID for the the Account Selector ComboBox in Chart Trader. I was following your example posted below using the mainGrid, using the old NT7 name "cboAccount", going to each grid children element. No such luck finding it.

            Comment


              #7
              Originally posted by AlexJetski View Post
              Can you please look up the automation ID for the the Account Selector ComboBox in Chart Trader. I was following your example posted below using the mainGrid, using the old NT7 name "cboAccount", going to each grid children element. No such luck finding it.
              Looks like the AutomationId is "ChartTraderControlAccountSelector" ..


              -=Edge=-
              NinjaTrader Ecosystem Vendor - High Tech Trading Analysis

              Comment


                #8
                thanks Edge, I got that far from the example with
                chartTrader = Window.GetWindow(ChartControl.Parent).FindFirs("Ch artWindowChartTraderControl") as ChartTrader;
                mainGrid = chartTrader.FindName("grdMain")as Grid;

                I am trying to write a simple toggle function for an indicator to switch from Sim101 to live. Can't seem to find the automation ID for the ChartTrader Account ComboBox. Is this accessible through code like it was on NT7?

                Comment


                  #9
                  Originally posted by AlexJetski View Post
                  thanks Edge, I got that far from the example with
                  chartTrader = Window.GetWindow(ChartControl.Parent).FindFirs("Ch artWindowChartTraderControl") as ChartTrader;
                  mainGrid = chartTrader.FindName("grdMain")as Grid;

                  I am trying to write a simple toggle function for an indicator to switch from Sim101 to live. Can't seem to find the automation ID for the ChartTrader Account ComboBox. Is this accessible through code like it was on NT7?
                  Currently, the automation ID for the Chart Trader Account combo box is "ChartTraderControlAccountSelector." Let me know if there are any other specific ID's that you need and I can look them up. There are a few applications available online that you can use to view the properties of WPF UI's, including automation ID's.
                  Dave I.NinjaTrader Product Management

                  Comment

                  Latest Posts

                  Collapse

                  Topics Statistics Last Post
                  Started by Waxavi, 04-19-2024, 02:10 AM
                  3 responses
                  41 views
                  0 likes
                  Last Post gaz0001
                  by gaz0001
                   
                  Started by Max238, Today, 01:28 AM
                  2 responses
                  26 views
                  0 likes
                  Last Post NinjaTrader_ChristopherJ  
                  Started by Shansen, 08-30-2019, 10:18 PM
                  25 responses
                  949 views
                  0 likes
                  Last Post NinjaTrader_BrandonH  
                  Started by JonesJoker, 04-22-2024, 12:23 PM
                  8 responses
                  42 views
                  0 likes
                  Last Post JonesJoker  
                  Started by timko, Today, 06:45 AM
                  0 responses
                  6 views
                  0 likes
                  Last Post timko
                  by timko
                   
                  Working...
                  X