Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Manually exiting an order

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

    Manually exiting an order

    Hi
    Is there an obvious way to exit an order in progress from a Ninjascript strategy?
    I don't want to always do it but may need to do so occasionally so I don't want any complicated code.
    If I disable the strategy can I close the order via chart trader?

    #2
    Hello IndieTrader,

    Thanks for your post.

    If you use the "Close" button on the chart trader, on the same instrument that the strategy is running on, it will issue an order to close the active position and will disable the strategy.

    Paul H.NinjaTrader Customer Service

    Comment


      #3
      Thanks....but I've noticed that's only true when you enable the strategy right off the chart. If I enable it from the strategies panel the chart trader is inactive. Or am I missing something?

      Comment


        #4
        Hello IndieTrader,

        Thanks for your reply.

        If the strategy and the chart trader are on the same instrument and same account you should see orders placed by the strategy on the chart and clicking the chart trader close button will close the position and will disable the strategy on the strategies tab.

        Alternately, you could disable the strategy on the strategy tab then go to the position tab and right mouse click on the existing position and choose "close position" or the all-encompassing "Flatten everything".

        Reference: https://ninjatrader.com/support/help...itions_tab.htm


        Paul H.NinjaTrader Customer Service

        Comment


          #5
          Thank you very much I've got it now

          Comment


            #6
            Hi im using IBKR paper trading account, im unable to close the trades using chart trader for some reason, please advise. attached imageClick image for larger version

Name:	Screenshot 2021-03-30 at 15.32.29.png
Views:	347
Size:	77.8 KB
ID:	1149198

            Comment


              #7
              Found the answer, the chart shows SIm1 account whereas im using IBKR paper trading account. so please ignore

              Comment

              Latest Posts

              Collapse

              Topics Statistics Last Post
              Started by wzgy0920, 04-20-2024, 06:09 PM
              2 responses
              27 views
              0 likes
              Last Post wzgy0920  
              Started by wzgy0920, 02-22-2024, 01:11 AM
              5 responses
              32 views
              0 likes
              Last Post wzgy0920  
              Started by wzgy0920, 04-23-2024, 09:53 PM
              2 responses
              74 views
              0 likes
              Last Post wzgy0920  
              Started by Kensonprib, 04-28-2021, 10:11 AM
              5 responses
              193 views
              0 likes
              Last Post Hasadafa  
              Started by GussJ, 03-04-2020, 03:11 PM
              11 responses
              3,235 views
              0 likes
              Last Post xiinteractive  
              Working...
              X