• 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

Binding hotkey to place an order 1 tick above or below the previous bar

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

    Binding hotkey to place an order 1 tick above or below the previous bar

    Hello, is it possible to bind hotkey or a create a script and bind to hotkey to place a Sell Stop Limit or Buy Stop Limit order 1 tick above or below the previous bar?

    #2
    Hello backtester831,

    The hotkeys created by NinjaTrader are not able to reference bar data on a chart.

    Custom hotkeys triggered in a script would be undocumented and is not officially supported, but it would be possible this way.

    Below is a link to a script that will give you the information you need.
    https://ninjatraderecosystem.com/use...ket-internals/


    The NinjaTrader Ecosystem website is for educational and informational purposes only and should not be considered a solicitation to buy or sell a futures contract or make any other type of investment decision. The add-ons listed on this website are not to be considered a recommendation and it is the reader's responsibility to evaluate any product, service, or company. NinjaTrader Ecosystem LLC is not responsible for the accuracy or content of any product, service or company linked to on this website.
    Chelsea B.NinjaTrader Customer Service

    Comment


      #3
      Originally posted by NinjaTrader_ChelseaB View Post
      Hello backtester831,

      The hotkeys created by NinjaTrader are not able to reference bar data on a chart.

      Custom hotkeys triggered in a script would be undocumented and is not officially supported, but it would be possible this way.

      Below is a link to a script that will give you the information you need.
      https://ninjatraderecosystem.com/use...ket-internals/


      The NinjaTrader Ecosystem website is for educational and informational purposes only and should not be considered a solicitation to buy or sell a futures contract or make any other type of investment decision. The add-ons listed on this website are not to be considered a recommendation and it is the reader's responsibility to evaluate any product, service, or company. NinjaTrader Ecosystem LLC is not responsible for the accuracy or content of any product, service or company linked to on this website.
      Thank you, I added that addon for NT8, but not sure where to look further for help. Could you please point me where to look? Is that the correct script?

      Comment


        #4
        Hello backtester831,

        In this script, the ChartControl.PreviewKeyDown event is being assign an event handler method that prevents the instrument selector overlay from appearing, then checks for the key sent, and triggers an action with the ModifierKeys.Alt and ModifierKeys.Control combination.
        Chelsea B.NinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by Botan626, Today, 04:43 AM
        0 responses
        4 views
        0 likes
        Last Post Botan626  
        Started by xsgex, Yesterday, 09:46 PM
        0 responses
        3 views
        0 likes
        Last Post xsgex
        by xsgex
         
        Started by Steve L, Yesterday, 09:36 PM
        0 responses
        6 views
        0 likes
        Last Post Steve L
        by Steve L
         
        Started by krugman25, Yesterday, 09:34 PM
        0 responses
        4 views
        0 likes
        Last Post krugman25  
        Started by indy73, Yesterday, 04:42 PM
        0 responses
        15 views
        0 likes
        Last Post indy73
        by indy73
         
        Working...
        X