Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

Partner 728x90

Collapse

ChartCustomToolBarExample

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

    ChartCustomToolBarExample

    I used the example that Chelsea was kind enough to create for us as a guide for my tool bar. https://ninjatrader.com/support/foru...7&postcount=17

    I have run into an issue trying to put a separator in the drop down menu. In case I do not know what I am talking about which could very well be the case, on NT8 Drawing Menu it is the horizontal line just below "Stay In Draw Mode". What is that called? Is it WPF or Forms? What terms do I need to google? Or maybe you could toss me a bone with a code sample?

    topMenuItem1.Items.Add(new Separator());

    is throwing error "The type or Namespace name "Separator" could not be found (are you missing a using directive or an assembly reference"

    Thanks.

    #2
    Hello TAJTrades,

    Use these examples instead.
    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



    I would recommend googling: wpf separator.

    Below is a publicly available link to the microsoft documentation.


    You either need to use the fully qualified namespace or add a using statement for System.Windows.Controls.

    As an example, take a look at how the variable theMenu is declared in the example script.
    private System.Windows.Controls.Menu theMenu;

    Below is a publicly available link to a 3rd party education site on using statements.
    Understand the using keyword. Handle IDisposable types like StreamReader with using.
    Last edited by NinjaTrader_ChelseaB; 11-29-2017, 08:12 AM.
    Chelsea B.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by GussJ, 03-04-2020, 03:11 PM
    11 responses
    3,221 views
    0 likes
    Last Post xiinteractive  
    Started by andrewtrades, Today, 04:57 PM
    1 response
    10 views
    0 likes
    Last Post NinjaTrader_Manfred  
    Started by chbruno, Today, 04:10 PM
    0 responses
    7 views
    0 likes
    Last Post chbruno
    by chbruno
     
    Started by josh18955, 03-25-2023, 11:16 AM
    6 responses
    438 views
    0 likes
    Last Post Delerium  
    Started by FAQtrader, Today, 03:35 PM
    0 responses
    9 views
    0 likes
    Last Post FAQtrader  
    Working...
    X