Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

methods to modify working orders.

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

    methods to modify working orders.




    people with nt,



    this below is the only method i have found to modify the price for a working order.



    Click image for larger version

Name:	20240305 nt modify order 0001.jpg
Views:	50
Size:	12.8 KB
ID:	1294416


    this command above will increase or decrease price by one single tick. when orders are tens and tens of ticks away from the current price this makes it impossible to modify prices to breakeven or other price levels with this command.


    ¿are there any other methods in nt to modify the prices for working orders without having to cancel and create the orders again? ¿are there any methods to modify orders generated by an automated strategy without causing the strategies to stop running normally?


    #2
    Hello rtwave,

    Thanks for your notes.

    The settings you shared a screenshot of would be the only ones to increase, decrease, or cancel the working order from the right-click menu. NinjaTrader does not have a right-click menu option for moving a working order to breakeven.

    You could consider setting up an Order Entry Hot Key for 'Breakeven position' in the Tools > Hot Keys > Order Entry tab.

    Otherwise, you could consider manually moving the working order to the price you want it to be placed.

    See this help guide page for more information about Trading With Hot Keys: https://ninjatrader.com/support/help...h_hot_keys.htm

    If you are using a custom NinjaScript strategy for placing and handling orders, you could program the strategy to move an order to breakeven when a certain condition occurs.

    My colleague Chelsea has created educational examples of strategy builder breakeven and trailing stop in the strategy builder here which you could view.


    Last edited by NinjaTrader_BrandonH; 03-05-2024, 12:36 PM.
    Brandon H.NinjaTrader Customer Service

    Comment


      #3
      Originally posted by NinjaTrader_BrandonH View Post


      You could consider setting up an Order Entry Hot Key for 'Breakeven position' in the Tools > Hot Keys > Order Entry tab.

      Otherwise, you could consider manually moving the working order to the price you want it to be placed.



      ¿if one uses hot key commands will that disable or interfere with an automated strategy?


      when you mention manually moving the order, ¿what are you referring to? that is what i'm asking for, ¿how can that be done?

      Comment


        #4
        Hello rtwave,

        Thanks for your notes.

        If you are using an automated strategy I would not suggest using a hot key command to modify orders.

        To manually love an order you could click on the order and drag it to the price you want the order to be placed.

        Here is a demonstration video showing how to click and drag an order to manually move it to a different price: https://brandonh-ninjatrader.tinytak...Nl8yMjkyMDU2NQ

        Note: When using Set methods in a NinjaScript strategy, orders will move back based on the strategy's Calculate mode. For example, if you use a Calculate mode of OnBarClose, the Set methods would move back to their original position on the close of a bar. Instead, you would need to use Exit methods such as ExitLongStopLimit with the isLiveUntilCanceled property set to true and ensure that your logic is only calling the Exit methods once so that the order does not reset. When the isLiveUntilCanceled property is set to true the order will NOT expire at the end of a bar but instead remain live until the CancelOrder() method is called or its time in force is reached.

        Please refer to the help guide link below regarding Exit methods and the isLiveUntilCanceled property.



        Also, please refer to the attached example strategy demonstrating how this could be accomplished.
        Attached Files
        Brandon H.NinjaTrader Customer Service

        Comment


          #5



          people with nt,



          i just want to confirm that it is possible to use the chart trading functionality to move stop and target orders that were generated by an automated strategy. the strategy will never notice these changes and will just continue to operate normally.


          my strategies make use of the on order and execution capabilities, so i do use the relatively more advanced exitshortstop type of orders.


          this information should be useful if any other users will ever trade with real funds and want to make minuscule adjustments to the execution of automated strategies.

          Comment


            #6
            Hello rtwave,

            Thanks for your notes.

            NinjaScript strategies are intended to be run automated so that any actions occur from the strategy processing logic programmed into the script.

            Further, NinjaScript strategies are intended to be run without any manual intervention.

            That said, it would be possible to manually modify orders on the chart window as mentioned in post # 4. If you plan on manually modifying strategy orders, you should do so at your own discretion and thoroughly test the strategy and manually modifying the orders placed by the strategy to ensure the strategy continues working as expected.
            Brandon H.NinjaTrader Customer Service

            Comment

            Latest Posts

            Collapse

            Topics Statistics Last Post
            Started by Segwin, 05-07-2018, 02:15 PM
            14 responses
            1,789 views
            0 likes
            Last Post aligator  
            Started by Jimmyk, 01-26-2018, 05:19 AM
            6 responses
            837 views
            0 likes
            Last Post emuns
            by emuns
             
            Started by jxs_xrj, 01-12-2020, 09:49 AM
            6 responses
            3,293 views
            1 like
            Last Post jgualdronc  
            Started by Touch-Ups, Today, 10:36 AM
            0 responses
            13 views
            0 likes
            Last Post Touch-Ups  
            Started by geddyisodin, 04-25-2024, 05:20 AM
            11 responses
            63 views
            0 likes
            Last Post halgo_boulder  
            Working...
            X