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

Ninjatrader 8 AutoHotKey

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

    Ninjatrader 8 AutoHotKey

    I use AutoHotKeys with Ninjatrader 7 on Chart Trader to submit my orders and it works great, but the same script does not work for Ninjatrader 8. Does anyone know how to fix this or what has changed?

    This is the script I use. . .

    ;###
    ;### Control-.-Left Mouse Key -> Ninjatrader Buy at cursor price level on the chart
    ;###
    ^z::
    if ( GetKeyState("ScrollLock", "T") ) { ;### Insure Scroll Lock Key is ON
    if ( GetKeyState("LControl", "D") ) { ;### Insure Control Key Key is Down
    Send {Escape}{Click Up Left}{Click Up Right}{b}{Enter}{Escape}
    }
    }
    return

    ;###
    ;### Control-,-Left Mouse Key -> Ninjatrader Sell at cursor price level on the chart
    ;###
    ^x::
    if ( GetKeyState("ScrollLock", "T") ) { ;### Insure Scroll Lock Key is ON
    if ( GetKeyState("LControl", "D") ) { ;### Insure Control Key Key is Down
    Send {Escape}{Click Up Left}{Click Up Right}{s}{Enter}{Escape}
    }
    }
    return

    #2
    Hello,

    Thank you for the post.

    This may be due to the change of window systems in the platforms. NT7 was created with Windows Forms, and NT8 is WPF. Depending on how AutoHotKeys handles the key presses for WPF could determine how it handles NT8. I am not certain how AutoHotKeys works to provide an accurate answer on what may be preventing it from working.

    I have not used AutoHotKeys to know what functionality it has, but you may try other macro programs or potentially posting on the AutoHotKeys forum as well.

    If any other users have had any experience with this software and NT8 please feel free to comment.

    I look forward to being of further assistance,
    JesseNinjaTrader Customer Service

    Comment


      #3
      did you ever get this working?

      Comment


        #4
        Hi WeyldFalcon

        No I didn't. Gave up in the end. Sorry I can't help more than that.

        Comment


          #5
          Thank you for responding. If I find it I will come back and post here Have a great day.

          Comment


            #6
            Hello,

            A script that uses key modifiers may (or may not) be helpful.
            This is a conversion of the a1ChartNotes indicator by monpere. Chart Notes v3 Add notes to your chart. For example, identify a chart template, or put specific notes on how to trade a particular chart, or instrument, etc. – Added selectable fonts and text color – Control Shift toggles compact/expanded visibility (number of lines shown) […]
            Chelsea B.NinjaTrader Customer Service

            Comment


              #7
              Found those workarounds


              SetTitleMatchMode, 2 with IfWinExist

              https://futures.io/ninjatrader/8373-...html#post98758


              TestStack.White (would be nice to have a demo of this one)

              Hi there, I saw your message and had a question. I know you programmed the Z as a sell limit...is the same as a middle mouse button action or is that a sell stop. I want to use your script however i`m not really good at understanding scripts etc. What i`m looking for is one button for a buy stop and one for sell stop. The way I want to use this is for example i want to go for a buy, i want to be able to click the letter X and then it would take me into the trade at the current price or one tick above. Similiarly, …




              Comment


                #8
                here new hotkeys script

                Comment

                Latest Posts

                Collapse

                Topics Statistics Last Post
                Started by techgetgame, Yesterday, 11:42 PM
                0 responses
                8 views
                0 likes
                Last Post techgetgame  
                Started by sephichapdson, Yesterday, 11:36 PM
                0 responses
                2 views
                0 likes
                Last Post sephichapdson  
                Started by bortz, 11-06-2023, 08:04 AM
                47 responses
                1,613 views
                0 likes
                Last Post aligator  
                Started by jaybedreamin, Yesterday, 05:56 PM
                0 responses
                10 views
                0 likes
                Last Post jaybedreamin  
                Started by DJ888, 04-16-2024, 06:09 PM
                6 responses
                20 views
                0 likes
                Last Post DJ888
                by DJ888
                 
                Working...
                X