Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Chart Toolbar code

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

    Chart Toolbar code

    Thanks for the ChartCustomToolBarExample indicator.

    I have questions:

    1) how to right justify items added to the toolbar (because trading is on the right side of the chart)

    2) I have more than one indicator per chart that (in NT7) shares the same toolbar. How can I do this, with the ChartCustomToolBarExample indicator?

    3) This is quite a bit of specialized code inside an indicator to add the toolbar and items. To keep the lines of code down would it be possible to make this (similary to ChartCustomToolBarExample) a Class?

    Questions to the community also...thanks

    #2
    Hello vantojo,

    This would fall under general C# and WPF and is not documented by NinjaTrader. These inquiries may be better suited for a forum dedicated to general WPF and C# like stackoverflow.

    You may be able to set the HorizontalAlignment on some WPF objects to right.


    Below is a link to an example that can be added to multiple tabs on the same chart by detecting if the current tab is the tab of the indicator.
    Hello All, Moving forward this will be maintained in the help guide reference samples and no longer maintained on the forum. Creating Chart WPF (UI) Modifications from an Indicator - https://ninjatrader.com/support/help...ui)-modifi.htm (https://ninjatrader.com/support/helpGuides/nt8/creating-chart-wpf-(ui)-modifi.htm) I've



    You may be able a custom class, this would fall under general C# and would not be documented by NinjaTrader.


    This thread will remain open for any community members that would like to provide further information.
    Chelsea B.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Geovanny Suaza, 02-11-2026, 06:32 PM
    0 responses
    593 views
    0 likes
    Last Post Geovanny Suaza  
    Started by Geovanny Suaza, 02-11-2026, 05:51 PM
    0 responses
    343 views
    1 like
    Last Post Geovanny Suaza  
    Started by Mindset, 02-09-2026, 11:44 AM
    0 responses
    103 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by Geovanny Suaza, 02-02-2026, 12:30 PM
    0 responses
    556 views
    1 like
    Last Post Geovanny Suaza  
    Started by RFrosty, 01-28-2026, 06:49 PM
    0 responses
    554 views
    1 like
    Last Post RFrosty
    by RFrosty
     
    Working...
    X