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:	265
Size:	8.9 KB
ID:	1271122Click image for larger version

Name:	image.png
Views:	266
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:	249
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 CarlTrading, 03-31-2026, 09:41 PM
        1 response
        41 views
        0 likes
        Last Post NinjaTrader_ChelseaB  
        Started by CarlTrading, 04-01-2026, 02:41 AM
        0 responses
        20 views
        0 likes
        Last Post CarlTrading  
        Started by CaptainJack, 03-31-2026, 11:44 PM
        0 responses
        28 views
        1 like
        Last Post CaptainJack  
        Started by CarlTrading, 03-30-2026, 11:51 AM
        0 responses
        45 views
        0 likes
        Last Post CarlTrading  
        Started by CarlTrading, 03-30-2026, 11:48 AM
        0 responses
        37 views
        0 likes
        Last Post CarlTrading  
        Working...
        X