Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Getting the ChartTrader Account from code

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

    Getting the ChartTrader Account from code

    I'm making an addon for chart trader. And I need to know the account that's selected. I've got the chart trader reference, and its got an Account property so that's fine.

    However I need to know if the account is changed, is there any way to hook into the Account dropdown box? Or another way to determine if the account is changed?

    Thanks

    Kevin

    #2
    Managed to figure this out:

    Code:
    var chartTrader Window.GetWindow(chart.ActiveChartControl.Parent).FindFirst("ChartWindowChartTraderControl") as Gui.Chart.ChartTrader;
    if (ChartTrader == null) return null;
    var accountSelector = ChartTrader.FindFirst("ChartTraderControlAccountSelector") as AccountSelector;
    From there, it has a selection ChangedEvent that can be bound to.

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by toughiee, Today, 12:04 AM
    0 responses
    2 views
    0 likes
    Last Post toughiee  
    Started by vdoan20, Yesterday, 08:30 PM
    0 responses
    7 views
    0 likes
    Last Post vdoan20
    by vdoan20
     
    Started by gupagoer, Yesterday, 07:42 PM
    0 responses
    9 views
    0 likes
    Last Post gupagoer  
    Started by Holligoly, Yesterday, 05:13 PM
    2 responses
    11 views
    0 likes
    Last Post Holligoly  
    Started by Raginpower, Yesterday, 01:53 PM
    0 responses
    14 views
    0 likes
    Last Post Raginpower  
    Working...
    X