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

Add Buttons To Superdom

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

    Add Buttons To Superdom

    Hell ,
    on NTecosystem I found an add on, which was created by NinjaTrader_AlanP : Add Buttons To Superdom for NT 8


    I has imported the add on which works so far, but I do not know how to configurate the added buttons with specific functions.
    Can anybody help please?

    Thanks a lot
    Regards André



    #2
    Hello André,

    Button click actions can be added to an event handler method that is assigned to the buttons .Click event.

    Below is a link to an example named ChartTraderCustomButtonsExample that adds buttons and has handler methods assigned to the buttons .Click event.
    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
    Chelsea B.NinjaTrader Customer Service

    Comment


      #3
      Where to assign the event handler? In an indicator or strategy? I want to assign the actions to turn my strategy on, and the other to flatten everything with strategy also turning off.

      Comment


        #4
        Hello chinaexpert1a,

        The Click event handler for a button can be assigned a method handler in an indicator, strategy, superdom column script or addon. The examples I have linked demonstrate assigning this from State.DataLoaded in an indicator.

        Unfortunately, there is no supported way to enable a NinjaScript Strategy from code. These are intentionally designed to be enabled manually by the user.

        It is possible to disable a strategy from code with CloseStrategy().
        https://ninjatrader.com/support/help...sestrategy.htm
        Chelsea B.NinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by f.saeidi, Yesterday, 02:09 PM
        3 responses
        18 views
        0 likes
        Last Post NinjaTrader_ChelseaB  
        Started by Jltarrau, Today, 05:57 AM
        1 response
        5 views
        0 likes
        Last Post NinjaTrader_LuisH  
        Started by kujista, Today, 06:23 AM
        0 responses
        2 views
        0 likes
        Last Post kujista
        by kujista
         
        Started by traderqz, Yesterday, 04:32 PM
        1 response
        12 views
        0 likes
        Last Post NinjaTrader_Gaby  
        Started by f.saeidi, Today, 05:56 AM
        1 response
        5 views
        0 likes
        Last Post Jltarrau  
        Working...
        X