Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Canel or Close

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

    Canel or Close

    NT has accepted my automated order and I am checking the PUF file. For some reason, I now want to stop running the strategy. Not sure if I should use a Cancel or a Close. Does it depend on whether or not the the entry order has been filled. It would seem that if the Avg Entry price is still 0 (therefore order not yet filled) I would want to send a Cancel. But if entry order has been filled, avg. entry price not 0, then I would want to send a Close. Do I have this correct?



    In NT, I use the Cancel Pending Positon Strategy to cancel my unfilled order. What is the equivalent NT/Automated command?



    Thanks,

    #2
    imported post

    Your understanding is correct, when zero, issue cancel.txt, when > 0, send close.txt. That is the equivalent AT command(s).
    RayNinjaTrader Customer Service

    Comment


      #3
      imported post

      But it doesn't hurt to issue CANCEL first anyways ..... correct ?

      NT ought remove the file once done..... whether a real cancel or fake cancel.

      Just to make sure, for automated trading, one ought be sure.

      Do I make sense ...

      Ray, your feedback would be appreciated, thanks.

      Comment


        #4
        imported post

        Correct.
        RayNinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by CarlTrading, 03-31-2026, 09:41 PM
        1 response
        68 views
        0 likes
        Last Post NinjaTrader_ChelseaB  
        Started by CarlTrading, 04-01-2026, 02:41 AM
        0 responses
        38 views
        0 likes
        Last Post CarlTrading  
        Started by CaptainJack, 03-31-2026, 11:44 PM
        0 responses
        62 views
        1 like
        Last Post CaptainJack  
        Started by CarlTrading, 03-30-2026, 11:51 AM
        0 responses
        62 views
        0 likes
        Last Post CarlTrading  
        Started by CarlTrading, 03-30-2026, 11:48 AM
        0 responses
        53 views
        0 likes
        Last Post CarlTrading  
        Working...
        X