Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Create a lisview in NinjaTrader 8

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

    Create a lisview in NinjaTrader 8

    I am working on creating NinjaTrader add on. I am trying to create a table to show information like this with custom information. I use list view but it look different. Is there any guidline or information that I can read to develop the ListView like this. Here is the code.
    Code:
    <ListView Name="AccountList" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Margin="5" Grid.Row="2" Grid.Column="2" BorderBrush="{StaticResource BorderThinBrush}" BorderThickness="1">
                        <ListView.View>
                            <GridView>
                                <GridViewColumn Header="Account Name" Width="200">
                                    <GridViewColumn.CellTemplate>
                                        <DataTemplate>
                                            <TextBlock Text="{Binding AccountName}" />
                                        </DataTemplate>
                                    </GridViewColumn.CellTemplate>
                                </GridViewColumn>
                                <GridViewColumn Header="Balance" Width="100">
                                    <GridViewColumn.CellTemplate>
                                        <DataTemplate>
                                            <TextBlock Text="{Binding Balance}" />
                                        </DataTemplate>
                                    </GridViewColumn.CellTemplate>
                                </GridViewColumn>
                                <GridViewColumn Header="Equity" Width="100">
                                    <GridViewColumn.CellTemplate>
                                        <DataTemplate>
                                            <TextBlock Text="{Binding Equity}" />
                                        </DataTemplate>
                                    </GridViewColumn.CellTemplate>
                                </GridViewColumn>
                                <!-- Add more columns as needed -->
                            </GridView>
                        </ListView.View>
                    </ListView>​
    Thank you!

    Click image for larger version

Name:	image.png
Views:	257
Size:	8.9 KB
ID:	1271122Click image for larger version

Name:	image.png
Views:	258
Size:	1.8 KB
ID:	1271123

    #2
    Hello QuanPh,

    Thank you for your post.

    Please take a look at the 'AddOnFramework' and 'ListChartIndicatorsExample' sample scripts in NinjaTrader 8 for examples of Add ons which use a list view.

    AddOnFramework example -


    ListChartIndicators example -



    Please let me know if you have questions about these scripts.

    Comment


      #3
      I have read all the sample but it didn't answer my question. I want to create a table to show infromation exactly the same style like this one.
      Click image for larger version

Name:	image.png
Views:	241
Size:	6.5 KB
ID:	1271266

      Comment


        #4
        The grids on the Control Center are grids and are not list views.

        Unfortunately, we do not have any examples of recreating the Control Center grids. This thread will remain open for any community members that would like to provide unsupported / undocumented code.

        You can also contact a professional NinjaScript Consultant who would be eager to create or modify this script at your request or assist you with your script. The NinjaTrader Ecosystem has affiliate contacts who provide educational as well as consulting services. Please let me know if you would like a list of affiliate consultants who would be happy to create this script or any others at your request or provide one on one educational services.

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by Geovanny Suaza, 02-11-2026, 06:32 PM
        0 responses
        566 views
        0 likes
        Last Post Geovanny Suaza  
        Started by Geovanny Suaza, 02-11-2026, 05:51 PM
        0 responses
        330 views
        1 like
        Last Post Geovanny Suaza  
        Started by Mindset, 02-09-2026, 11:44 AM
        0 responses
        101 views
        0 likes
        Last Post Mindset
        by Mindset
         
        Started by Geovanny Suaza, 02-02-2026, 12:30 PM
        0 responses
        547 views
        1 like
        Last Post Geovanny Suaza  
        Started by RFrosty, 01-28-2026, 06:49 PM
        0 responses
        548 views
        1 like
        Last Post RFrosty
        by RFrosty
         
        Working...
        X