Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

close - flatten

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

    close - flatten

    Hello,

    when running NT-script-strategies it occurs that a strategy can be closed with chart-trader (of course in another chart-window as the strategy) and also it occurs that another strategy can not be closed with chart-trader (I had to solve by adding a flatten-button as flatten-conditon within the strategy).

    This is interesting and I couldn´t find out untill now why.

    Can you please inform what is the reason or how to determine so that a strategy can be closed with chart-trader?

    Thanks
    Tony

    #2
    you can try Position.Close()

    Comment


      #3
      Hello,

      thank you for your reply. Where do you mean this? In the script? (There I have now ExitShort(); and ExitLong(); linked with a customized flatten-button in the strategy.)

      It´s OK by doing with the flatten-button I made after recognizing the issue (maybe its not an issue but an error on my end - just curious when a strat can be closed with "close" in chart-trader and when not)

      Best regards
      Tony

      Originally posted by bukkan View Post
      you can try Position.Close()

      Comment


        #4
        TonyNT,

        Could you clarify what you mean? Are you witnessing Chart trader being able to close orders sometimes and sometimes not?
        Adam P.NinjaTrader Customer Service

        Comment


          #5
          Hello,

          yes I think this happened. Is this possible that script-strategies can not be closed by chart-trader maybe? (as one can not modify the stops created from a script-strategy).

          I clicked several times on close button in Chart-trader but the trades could not be closed.

          Thanks
          Tony

          Originally posted by NinjaTrader_AdamP View Post
          TonyNT,

          Could you clarify what you mean? Are you witnessing Chart trader being able to close orders sometimes and sometimes not?

          Comment


            #6
            TonyNT,

            Thanks for your note.

            Due to internal order handling rules, if you place a sell on the same instrument a buy is in place, it will close out your position. You could try to use the unmanaged approach which doesn't have the built-in safety features of the managed approach but lets you have more control over orders.

            Please find a link here : http://www.ninjatrader.com/support/h...d_approach.htm
            Adam P.NinjaTrader Customer Service

            Comment

            Latest Posts

            Collapse

            Topics Statistics Last Post
            Started by bmartz, Today, 09:30 AM
            2 responses
            11 views
            0 likes
            Last Post bltdavid  
            Started by f.saeidi, Today, 11:02 AM
            1 response
            3 views
            0 likes
            Last Post NinjaTrader_BrandonH  
            Started by geotrades1, Today, 10:02 AM
            4 responses
            12 views
            0 likes
            Last Post geotrades1  
            Started by rajendrasubedi2023, Today, 09:50 AM
            3 responses
            16 views
            0 likes
            Last Post NinjaTrader_BrandonH  
            Started by lorem, Today, 09:18 AM
            2 responses
            11 views
            0 likes
            Last Post NinjaTrader_ChelseaB  
            Working...
            X