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

Sample code for chart trader buttons / Addons

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

    #16
    Hello rare312,

    A ChartExecution collection would not be documented for NinjaTrader 7.
    There would not be a documented equivalent for NinjaTrader 8 that I can link you.

    I'll look around and if I find something I will let you know.

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

    Comment


      #17
      Originally posted by NinjaTrader_ChelseaB View Post
      Hello rare312,

      A ChartExecution collection would not be documented for NinjaTrader 7.
      There would not be a documented equivalent for NinjaTrader 8 that I can link you.

      I'll look around and if I find something I will let you know.

      This thread will also remain open for any community members that would like to provide undocumented code.
      ok. Thank you.
      I will wait.
      Please, let me know even if you will not find anything.

      Comment


        #18
        Originally posted by NinjaTrader_ChelseaB View Post

        There is an open feature request for a tradeperformance collection for the account tracked with ID# SFT-3088. I will add your vote to this.
        Please add my vote as well.

        Thanks!
        HedgePlay

        Comment


          #19
          Hello HedgePlay,

          I've added your vote to SFT-3088.

          Thank you for your voice.
          Chelsea B.NinjaTrader Customer Service

          Comment


            #20
            Just found this thread... and a related post might be of interest.

            Note: My other post is primarily about reporting... but does deal (properly) with the issues raised here about matching executions - a topic which Ninjatrader does not do a very stellar job of (case-in-point... reporting trades that start with an exit, and end with an entry.. yep. Sighs deeply...)

            Hope it is of some help in this discussion,
            Cheers,
            T.

            Comment


              #21
              Originally posted by NinjaTrader_ChelseaB View Post
              Hello rare312,

              A ChartExecution collection would not be documented for NinjaTrader 7.
              There would not be a documented equivalent for NinjaTrader 8 that I can link you.

              I'll look around and if I find something I will let you know.

              This thread will also remain open for any community members that would like to provide undocumented code.
              Hello, Chelsea.
              Did you try to find any helpful things related to my question?

              Comment


                #22
                Hello rare312,

                No, there is nothing supported in NinjaTrader 8 for this undocumented item ChartExecution from NinjaTrader 7.

                You would have to loop through the Account.Executions.
                https://ninjatrader.com/support/help...executions.htm
                Last edited by NinjaTrader_ChelseaB; 11-18-2022, 08:01 AM.
                Chelsea B.NinjaTrader Customer Service

                Comment


                  #23
                  Hello Chelsea
                  +1

                  Please add my vote to SFT-3088.

                  Thx.

                  Comment


                    #24
                    Hello IsaacBillion,

                    Thanks for you vote.

                    I've added this to SFT-3088.
                    Chelsea B.NinjaTrader Customer Service

                    Comment


                      #25
                      Originally posted by NinjaTrader_ChelseaB View Post
                      Hello NickyD,

                      This would require a custom coded script. It could be an indicator applied to a chart.

                      To have logic that can choose if an order is submitted you will want to create your own buttons to submit the orders.

                      Below is a link to a few examples of indicators that add buttons to charts.
                      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


                      As well as a link to an example script that places orders on a button click, where you could add custom logic to decide if the order is actually submitted.


                      Below are links to examples of addons that you have requested.




                      The NinjaTrader Ecosystem website is for educational and informational purposes only and should not be considered a solicitation to buy or sell a futures contract or make any other type of investment decision. The add-ons listed on this website are not to be considered a recommendation and it is the reader's responsibility to evaluate any product, service, or company. NinjaTrader Ecosystem LLC is not responsible for the accuracy or content of any product, service or company linked to on this website.

                      Hi Chelsea,
                      I refer to the buttons drawn by the strategies/indicators. I have a button drawn by an indicator on the top of my chart. AFTER I click a button, there will be a faint blue line that is drawn on the top and bottom of the button, indicating that it is being selected.

                      If I press the spacebar, the button is activated again (without clicking). I have to click in an area outside the button to "unselect" the button such that the blue lines disappear and pressing the spacebar will not activate it further.

                      I have an indicator that toggles some important chart features using the spacebar. So after clicking the "buy" button, and if I press the spacebar, the indicator fires another buy order without me clicking. As such, is there a way to deselect a button once it is clicked so that further pressing the space bar would not activate it again?

                      Thanks a lot.

                      Comment


                        #26
                        Hello Rainmakersg,

                        That would be the expected behavior of clicking on anything in C#, that it would get focus.

                        You can try and give focus to something else with custom C#.

                        Below is a link to a google search you may find helpful.
                        Chelsea B.NinjaTrader Customer Service

                        Comment

                        Latest Posts

                        Collapse

                        Topics Statistics Last Post
                        Started by terofs, Yesterday, 04:18 PM
                        1 response
                        21 views
                        0 likes
                        Last Post terofs
                        by terofs
                         
                        Started by CommonWhale, Today, 09:55 AM
                        1 response
                        3 views
                        0 likes
                        Last Post NinjaTrader_Erick  
                        Started by Gerik, Today, 09:40 AM
                        2 responses
                        7 views
                        0 likes
                        Last Post Gerik
                        by Gerik
                         
                        Started by RookieTrader, Today, 09:37 AM
                        2 responses
                        13 views
                        0 likes
                        Last Post RookieTrader  
                        Started by alifarahani, Today, 09:40 AM
                        1 response
                        7 views
                        0 likes
                        Last Post NinjaTrader_Jesse  
                        Working...
                        X