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 mattbsea, Today, 05:44 PM
                  0 responses
                  4 views
                  0 likes
                  Last Post mattbsea  
                  Started by RideMe, 04-07-2024, 04:54 PM
                  6 responses
                  31 views
                  0 likes
                  Last Post RideMe
                  by RideMe
                   
                  Started by tkaboris, Today, 05:13 PM
                  0 responses
                  2 views
                  0 likes
                  Last Post tkaboris  
                  Started by GussJ, 03-04-2020, 03:11 PM
                  16 responses
                  3,282 views
                  0 likes
                  Last Post Leafcutter  
                  Started by WHICKED, Today, 12:45 PM
                  2 responses
                  20 views
                  0 likes
                  Last Post WHICKED
                  by WHICKED
                   
                  Working...
                  X