Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Toolbar Buttons

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

    Toolbar Buttons

    I got this code from e mini-fools site and compile in NT7.there were some errors in it but fixed.What i was looking ,,,have some buttons on top of chart to turn on/off strategy,,instead of opening and using enable/disable function.Specially when news are comming OR FOMC rate annoucment is due and b4 market hit u,,,just turn on or off by one click.Plz use it on your own risk.NO responsibility on my side.Its my first
    contribution in file sharing with a file.THANKS
    Attached Files

    #2
    Thanks for sharing alfa123.
    BertrandNinjaTrader Customer Service

    Comment


      #3
      Originally posted by alfa123 View Post
      I got this code from e mini-fools site and compile in NT7.there were some errors in it but fixed.What i was looking ,,,have some buttons on top of chart to turn on/off strategy,,instead of opening and using enable/disable function.Specially when news are comming OR FOMC rate annoucment is due and b4 market hit u,,,just turn on or off by one click.Plz use it on your own risk.NO responsibility on my side.Its my first
      contribution in file sharing with a file.THANKS
      Hello alfa123, yeah we have the same thing looking for. I also want to have an idea on how to have buttons on top of the chart to turn on/off strategy so that no need for us to go to the strategy tab to enable and disable strategy which could take a lot of time. For example, we detected a gap then something had happen in the market we want to off directly our strategies so that we could not be hit by the market and stay out from the loss.

      Comment


        #4
        Thanks for reply.Did u try toolbarbuttons?

        Comment


          #5
          Yes, but I don't know how it really works well I mean his full potential. If I have 5 strategies running can I control all of it by using this ToolBarButtons?

          Comment


            #6
            yes,just add like a strategy in all your charts and enable when u want to use ,it will work like any other stratyegy.good luck.

            Comment


              #7
              alfa,
              I have found a problem in Dispose(). With it enabled, not commented out, any draw objects are persistent and are not erased upon removal of the strategy.

              However, with it commented out, additional buttons are added.

              To Resolve, simply add

              RemoveDrawObjects();

              to Dispose()

              Comment


                #8
                Thanks for your feed back.

                Comment


                  #9
                  What code do you need to add so that it will enable/disable a strategy?

                  Comment


                    #10
                    Shell

                    Here is a modification that allows for auto and manual entries.

                    It adds two buttons for manual entry. The Auto button must be set to Manual and the Long or Short entry buttons enabled (Green). Then a click on either manual button will place a market order, Long or Short.

                    I hope there aren't too many errors.
                    Attached Files
                    Last edited by snaphook; 03-21-2011, 11:14 AM.

                    Comment


                      #11
                      Thanks again for your hard work.

                      Comment


                        #12
                        Excellent!

                        Originally posted by snaphook View Post
                        Here is a modification that allows for auto and manual entries.

                        It adds two buttons for manual entry. The Auto button must be set to Manual and the Long or Short entry buttons enabled (Green). Then a click on either manual button will place a market order, Long or Short.

                        I hope there aren't too many errors.
                        Many thanks. This is much more than I expected. Much appreciated.

                        Comment


                          #13
                          Another update

                          This adds:
                          1) A Flatten button that immediately closes open positions,
                          2) separators between the buttons,
                          3) a confirmation Message Box when entering Auto Trading from Manual trading.
                          Attached Files

                          Comment


                            #14
                            nice work.carry on

                            Comment


                              #15
                              Snaphook,

                              great work. Thanks for sharing this. Did you ever think about changing it this way so that you can add the buttons vertically in the chart? (Because the toolbar is getting so extended and the chart too)

                              Just an idea.

                              Thanks again and best regards
                              Tony

                              Comment

                              Latest Posts

                              Collapse

                              Topics Statistics Last Post
                              Started by frankthearm, Today, 09:08 AM
                              3 responses
                              9 views
                              0 likes
                              Last Post NinjaTrader_Clayton  
                              Started by yertle, Today, 08:38 AM
                              5 responses
                              15 views
                              0 likes
                              Last Post NinjaTrader_BrandonH  
                              Started by adeelshahzad, Today, 03:54 AM
                              3 responses
                              16 views
                              0 likes
                              Last Post NinjaTrader_BrandonH  
                              Started by bill2023, Yesterday, 08:51 AM
                              6 responses
                              27 views
                              0 likes
                              Last Post NinjaTrader_Erick  
                              Started by NinjaTrader_ChelseaB, 01-08-2017, 06:59 PM
                              80 responses
                              19,667 views
                              5 likes
                              Last Post NinjaTrader_ChelseaB  
                              Working...
                              X