Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

fixing time for the exit on close???

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

    fixing time for the exit on close???

    in ninja trader the exit on close execute @ 01:00 time period by default.. is there any option for modifying time according to user requirements..

    #2
    Deall, that would entirely depend on the session template you've chosen to use - you can adjust to any custom times for example by definining your own under Tools > Session Manager.

    Or you custom code a time exit to run at your desired bar time, that would be an option as well - the bar time can be accessed via Time[0] - http://www.ninjatrader.com/support/h...hlightsub=Time

    Comment


      #3
      FLATTENEVERYTHING COMMAND
      wat is the syntax for this FLATTENEVERYTHING COMMAND
      and where to initialize

      Comment


        #4
        There's unfortunately no directly supported NinjaScript method for this command, however you can look into

        Code:
        NinjaTrader.Gui.SuperDom.SuperDom.FlattenEverything()
        It would :

        - Cycle through each open connection
        - Cycle through each account within the connection
        - Terminate any running strategies on the account
        - Cancel any active orders on the account
        - Close any open position on the account

        Comment

        Latest Posts

        Collapse

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