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

Chart Trader - adjusting size through order flag logic

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

    Chart Trader - adjusting size through order flag logic

    When adjusting an open limit order size through the Chart Trader flag, it appears that separate orders are created instead of updating the existing open order. Is there a specific reason for that?

    When reducing the size again, it appears that Chart Trader loops through each open order, newest to oldest, and cancels each order until it get's to the correct orders size. And if the last open order is still greater than the provided quantity it will update that order with the requested quantity. Is this the correct logic used?

    #2
    Hello martyn73, thanks for your post.

    NT is designed to submit a new order for increasing quantity, thats just the design pattern we used. If you would like I can submit a feature request to add an option to modify the existing order. For stock trading, there is a setting in the Chart Trader properties that lets you pick to modify the preexisting order instead of submitting a new order for stocks if you are trading stocks.

    Kind regards.
    Chris L.NinjaTrader Customer Service

    Comment


      #3
      Thanks, I just want to understand the logic being used. How about the logic I described when reducing size again. Is that correct?

      Comment


        #4
        Hi martyn73, thanks for your reply.

        Yes, that is correct. E.g. if you have 1 quantity, increase it to 5, then decrease to 1 again, you will see the 4 contract order get canceled.

        Kind regards.
        Chris L.NinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by nandhumca, Yesterday, 03:41 PM
        1 response
        12 views
        0 likes
        Last Post NinjaTrader_Gaby  
        Started by The_Sec, Yesterday, 03:37 PM
        1 response
        11 views
        0 likes
        Last Post NinjaTrader_Gaby  
        Started by vecnopus, Today, 06:15 AM
        0 responses
        1 view
        0 likes
        Last Post vecnopus  
        Started by Aviram Y, Today, 05:29 AM
        0 responses
        5 views
        0 likes
        Last Post Aviram Y  
        Started by quantismo, 04-17-2024, 05:13 PM
        3 responses
        27 views
        0 likes
        Last Post NinjaTrader_Gaby  
        Working...
        X