Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Prevent orders types from rearranging in right click menu based on price

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

    Prevent orders types from rearranging in right click menu based on price

    Hello!

    Is there a way to prevent the orders types from rearranging based on where the mouse is on a chart in relation to the current price? For example, in this screenshot, the cursor is BELOW the current price, so the order types in the right click menu are...

    - buy limit
    - buy MIT
    - sell stop market
    - sell stop limit

    Click image for larger version  Name:	Screenshot (1).png Views:	0 Size:	24.3 KB ID:	1227779

    However, if the cursor is ABOVE the price, the order types are in the following order...
    • ​sell limit
    • sell MIT
    • buy stop market
    • buy stop limit

    Click image for larger version  Name:	Screenshot (2).png Views:	0 Size:	25.4 KB ID:	1227780
    This is an issue because in fast moving markets if you try right click at a specific point in the chart where you want to place your order, and the price ends up on the opposite side of your cursor after you've right clicked, Ninja trader will give you an error saying the order type isn't correct for where the price currently is and you've lost valuable seconds closing out the error message and trying to input the order again.

    If the placement of the order types were constant, it would be easy to create an AutoHotkey script so that you could input the exact order you wanted without having to open the right click menu. Alternatively, it'd be great to have an order hotkey set the price at where the mouse/cursor is on the chart.

    Thanks!
    Last edited by memyselfandhai; 12-15-2022, 08:38 PM.

    #2
    Hello memyselfandhai,

    Thank you very much for your post!

    The order types listed on the Chart Trader right-click menu are pre-set and would always only show the combinations that are valid and can be submitted at this price point.

    However, it might be possible to change what options are available using NinjaScript; If you are interested in learning more about this, please let me know. Our Engineering Support Team could take a look at it and assess whether it would be feasible or assist you with how it may be created. Please note; They would not be able to program this on your behalf.

    If you have no experience in C# programming, an alternative would be to reach out to one of our vendors, as they might be able to program this on your behalf.

    Please don't hesitate to let me know if you would like further information in either case!
    Manfred F.NinjaTrader Customer Service

    Comment


      #3
      Hi Manfred! Would you kindly ask the engineering team to take a look? Thanks!

      Comment


        #4
        Hello memyselfandhai,

        That would not be possible to change how the platform reacts to the mouse position. The menu is built based on the mouse position, trading position and price under the mouse, as a measure to prevent wrong side of market orders only the correct type of orders for that side of the market are displayed.

        The situation you described means that the location you had clicked was too close to the active market so the price moved past that point before you could decide on an order. Now when you submit an order it will generate an error because you are submitting the order too late. You would need to submit it further away and then move it closer using an order line or use a custom order hotkey instead. That would let you offset a order based on the current price without opening the context menu. https://ninjatrader.com/support/help...omOrderActions



        JesseNinjaTrader Customer Service

        Comment


          #5
          Originally posted by memyselfandhai View Post
          Hello!

          Is there a way to prevent the orders types from rearranging based on where the mouse is on a chart in relation to the current price? For example, in this screenshot, the cursor is BELOW the current price, so the order types in the right click menu are...

          - buy limit
          - buy MIT
          - sell stop market
          - sell stop limit
          Those are simple orders configs. Rather than working through the menu would it be less complicated to use NT8 order and custom hotkey options? And then is there even a need for AutoHotkey?



          Hedge

          Comment


            #6
            NinjaTrader_Jesse -> Gotcha. Thanks for checking on that!

            hedgeplay -> that would have to suffice. What I'm trying to accomplish is to only enter a sell order if prices touch where the crosshair is in the attached screenshot . Hotkey orders only allow you to set the price offset to bid/ask AFAIK, but not at specific prices on the chart. I've been using order hot keys and and manually moving it, but even that is sometimes too slow and prices can move without you. Any tips?

            Click image for larger version

Name:	Screen Shot 2023-01-05 at 8.46.26 PM.png
Views:	98
Size:	95.1 KB
ID:	1230047

            Comment


              #7
              Originally posted by memyselfandhai View Post

              hedgeplay -> that would have to suffice. What I'm trying to accomplish is to only enter a sell order if prices touch where the crosshair is in the attached screenshot . Hotkey orders only allow you to set the price offset to bid/ask AFAIK, but not at specific prices on the chart. I've been using order hot keys and and manually moving it, but even that is sometimes too slow and prices can move without you. Any tips?
              "What I'm trying to accomplish is to only enter a sell order if prices touch where the crosshair is ..."

              Ah.. theses link might provide good help.. ClickLimit.. ~"hold down the control key and left click to enter"

              ClickLimitOrderIndicatorExpanded from NinjaTrader_Jim https://ninjatrader.com/support/foru...78#post1137778

              Extensions of that work and work by Jesse and Chelsea.

              https://ninjatraderecosystem.com/use...lmkthotkeysqs/

              https://ninjatraderecosystem.com/use...ellmkthotkeys/

              Hedge

              Comment


                #8
                Thanks hedgeplay!

                Comment

                Latest Posts

                Collapse

                Topics Statistics Last Post
                Started by dtichkev, 09-16-2024, 12:39 PM
                2 responses
                16 views
                0 likes
                Last Post dtichkev  
                Started by Rainmakersg, Today, 02:09 AM
                0 responses
                7 views
                0 likes
                Last Post Rainmakersg  
                Started by frantic, 01-21-2020, 02:34 PM
                75 responses
                4,622 views
                0 likes
                Last Post Brockjava  
                Started by siddhugaddi, Yesterday, 10:48 AM
                2 responses
                24 views
                0 likes
                Last Post siddhugaddi  
                Started by Bob-Habanai, 09-14-2024, 08:10 AM
                2 responses
                23 views
                0 likes
                Last Post Bob-Habanai  
                Working...
                X