• 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 Vincere, Today, 03:08 AM
                              0 responses
                              2 views
                              0 likes
                              Last Post Vincere
                              by Vincere
                               
                              Started by curious, Today, 02:17 AM
                              2 responses
                              10 views
                              0 likes
                              Last Post curious
                              by curious
                               
                              Started by pmmkm, Yesterday, 11:13 PM
                              0 responses
                              3 views
                              0 likes
                              Last Post pmmkm
                              by pmmkm
                               
                              Started by pulpiwapi, 03-04-2019, 11:18 PM
                              11 responses
                              150 views
                              0 likes
                              Last Post music_p13  
                              Started by indy73, 06-25-2019, 10:52 PM
                              3 responses
                              22 views
                              0 likes
                              Last Post sledge
                              by sledge
                               
                              Working...
                              X