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

Turn strategy on with hotkey / macro

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

    Turn strategy on with hotkey / macro

    Hi,
    Is it possible to turn a strategy on with hot keys?

    if so is these a good source of information I can refer to on this?
    Thank you

    #2
    Hello yertle,

    Thanks for your post.

    NinjaScript strategies must be manually enabled and cannot be enabled using Hot Keys or through code.

    If you would like me to, I would be happy to submit this as a feature request to the Development team so they may consider adding this Hot Key option in a future NinjaTrader release.

    Please let me know if you would like me to submit the feature request on your behalf.
    Brandon H.NinjaTrader Customer Service

    Comment


      #3
      yes please, submit the feature request. Thank you.

      I will also look for non-supported solutions

      Comment


        #4
        Hello yertle,

        Thanks for your notes.

        I have added a vote for you to an existing feature request. This request is being tracked under the number SFT-2386.

        As with all feature requests, interest is tracked before implementation is considered, so we cannot offer an ETA or promise of fulfillment. If implemented, it will be noted on the Release Notes page of the Help Guide.

        Release Notes — https://ninjatrader.com/support/help...ease_notes.htm
        Brandon H.NinjaTrader Customer Service

        Comment


          #5
          What about binding a keyboard macro to a switch within the strategy,
          Assume it is enabled manually.

          Is there some documentation / code snippet available for turning on/off a bool within the strategy from a macro?
          - ie a chart trader button, linked to a macro
          Last edited by yertle; 04-18-2024, 09:42 AM.

          Comment


            #6
            Hello yertle,

            Thanks for your notes.

            NinjaScript strategies are intended to be manually enabled.

            There are no supported methods/properties available for enabling a NinjaScript strategy through code.

            This forum thread will be open for other community members to share their insights on unsupported code you could try.
            Brandon H.NinjaTrader Customer Service

            Comment


              #7
              Yertle,

              this might help, depending on what you have set up. I have used a program called AutoIt.. which basically records your mouse movements and clicks and then run a task scheduler to run the code. The mouse, at whatever time, will move and click on the chart and enable strategy for you. You just have to leave the chart window open at all times and figure out the xy location is, on your screen, of the chart, strategies, enable, apply and ok buttons are located.

              Comment


                #8
                Ryjoga,
                Thank you, I will look in to it

                Comment


                  #9
                  Click image for larger version

Name:	image.png
Views:	27
Size:	57.4 KB
ID:	1300264

                  Here is what my AutoIt code looks like. within AutoIt it has the xy info of where your mouse is located on the screen.. so you just copy the numbers when you hover over the buttons you want it to select. then you compile the the code and it creates an exe. file, which then you can set your task scheduler to run at whatever time you want it to.

                  Comment


                    #10
                    Amazing stuff.... Thank you
                    #Big Help

                    Comment

                    Latest Posts

                    Collapse

                    Topics Statistics Last Post
                    Started by f.saeidi, Today, 07:07 AM
                    6 responses
                    19 views
                    0 likes
                    Last Post f.saeidi  
                    Started by cmtjoancolmenero, Today, 02:31 PM
                    6 responses
                    14 views
                    0 likes
                    Last Post cmtjoancolmenero  
                    Started by Graci117, Yesterday, 11:40 PM
                    5 responses
                    26 views
                    0 likes
                    Last Post NinjaTrader_BrandonH  
                    Started by rene69851, Today, 03:25 PM
                    0 responses
                    3 views
                    0 likes
                    Last Post rene69851  
                    Started by Irukandji, Yesterday, 05:50 AM
                    3 responses
                    9 views
                    0 likes
                    Last Post NinjaTrader_ChristopherJ  
                    Working...
                    X