• If this is your first visit, you will have to register before you can post. To view messages, please scroll below and select the forum that you would like to visits. Questions? Be sure to check out the Forum FAQ.

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 bomanpbm, Today, 09:27 PM
                              0 responses
                              1 view
                              0 likes
                              Last Post bomanpbm  
                              Started by tgn55, Today, 08:47 AM
                              0 responses
                              8 views
                              0 likes
                              Last Post tgn55
                              by tgn55
                               
                              Started by ballboy11, 05-04-2019, 10:26 AM
                              6 responses
                              58 views
                              0 likes
                              Last Post Kermit
                              by Kermit
                               
                              Started by mrlucky1x, Yesterday, 10:01 PM
                              0 responses
                              15 views
                              0 likes
                              Last Post mrlucky1x  
                              Started by roger556, Yesterday, 09:22 PM
                              0 responses
                              8 views
                              0 likes
                              Last Post roger556  
                              Working...
                              X