• 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 superg3, Today, 12:33 AM
    0 responses
    3 views
    0 likes
    Last Post superg3
    by superg3
     
    Started by vppzepuq, Yesterday, 11:28 PM
    0 responses
    1 view
    0 likes
    Last Post vppzepuq  
    Started by Steve L, 05-25-2019, 10:04 PM
    1 response
    6 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by mestril, 05-25-2019, 10:22 AM
    1 response
    14 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by hir04068, 05-25-2019, 09:29 PM
    7 responses
    21 views
    0 likes
    Last Post hir04068  
    Working...
    X