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

Name:	image.png
Views:	286
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:	269
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 SalmaTrader, 07-07-2026, 10:26 PM
        0 responses
        54 views
        0 likes
        Last Post SalmaTrader  
        Started by CarlTrading, 07-05-2026, 01:16 PM
        0 responses
        25 views
        0 likes
        Last Post CarlTrading  
        Started by CaptainJack, 06-17-2026, 10:32 AM
        0 responses
        17 views
        0 likes
        Last Post CaptainJack  
        Started by kinfxhk, 06-17-2026, 04:15 AM
        0 responses
        23 views
        0 likes
        Last Post kinfxhk
        by kinfxhk
         
        Started by kinfxhk, 06-17-2026, 04:06 AM
        0 responses
        24 views
        0 likes
        Last Post kinfxhk
        by kinfxhk
         
        Working...
        X