• If this is your first visit, you will have to register before you can post. To view messages, please scroll below and select the forum that you would like to visits. Questions? Be sure to check out the Forum FAQ.

Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

new column at the execution tab at control center

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

    new column at the execution tab at control center

    I am looking to add a column on the executions tab of the control center on NT8. The column should show that chart a trade was entered into using the chart trader. I would want to know the instrument and the time frame of the chart. For example, ES 144 Tick. It's the same info that as the @DATASERIES information in the chart tabs.

    Is this possible to be achieved through add-on? Is there an existing one or should I develop one from scratch? Thank you for your time

    #2
    Hello julaya123,

    Welcome to the forums!

    This would involve using Inspect to obtain Automation ID's and then modifying the Infragistics grid. A reference to Program Files (x86)\NinjaTrader 8\bin64\InfragisticsWPF4.15.dll will need to be added before you will be able to make any modifications to this grid.

    EDIT

    The advise above could be used to get started to modify the Executions Grid, however it should be noted that we do not document any aspects of the Control Center for modification and there are several other unsupported items that will come into play to modify the grid.

    For academic purposes, I'll include some code that can help find the Executions grid and add a column, but further work will be involved to add entries appropriately for each Execution. Infragistics grid modifications would also be C# and WPF based and not specifically NinjaScript, so I would suggest using external sources to dig deeper.

    Code:
    protected override void OnWindowCreated(Window window)
    {
        ControlCenter cc = window as ControlCenter;
        if (cc == null)
            return;
    
        Gui.AccountData.ExecutionGrid execGrid = cc.FindFirst("ExecutionsGrid") as Gui.AccountData.ExecutionGrid;
        if (execGrid != null)
        {
            var layout = execGrid.NtGrid.FieldLayouts.First(f => f.Description == "ExecutionGridEntry");
    
            Field ff = new Field("Test");
            layout.Fields.Add(ff);
        }
    }
    Another challenge that you will run into when making such an AddOn would be finding the particular chart by the Execution. Execution and Order objects do not have information about the time frame of a chart where the order was submitted. Order and Execution objects are used throughout the platform and not only with charts.

    This particular item reaches out of the scope of support that we can offer, but I will leave this thread open for any community members who may have further input.
    Last edited by NinjaTrader_Jim; 12-17-2018, 05:04 PM.
    JimNinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by aslane, Today, 12:41 PM
    0 responses
    3 views
    0 likes
    Last Post aslane
    by aslane
     
    Started by NinjaCustomer, 06-06-2018, 08:47 AM
    15 responses
    1,079 views
    0 likes
    Last Post cls71
    by cls71
     
    Started by Johnny Santiago, 04-29-2019, 04:13 AM
    3 responses
    170 views
    1 like
    Last Post bltdavid  
    Started by Darringona, Today, 07:43 AM
    0 responses
    7 views
    0 likes
    Last Post Darringona  
    Started by simonkloot, Today, 07:28 AM
    0 responses
    8 views
    0 likes
    Last Post simonkloot  
    Working...
    X