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 Hwop38, 05-04-2026, 07:02 PM
        0 responses
        164 views
        0 likes
        Last Post Hwop38
        by Hwop38
         
        Started by CaptainJack, 04-24-2026, 11:07 PM
        0 responses
        319 views
        0 likes
        Last Post CaptainJack  
        Started by Mindset, 04-21-2026, 06:46 AM
        0 responses
        246 views
        0 likes
        Last Post Mindset
        by Mindset
         
        Started by M4ndoo, 04-20-2026, 05:21 PM
        0 responses
        350 views
        0 likes
        Last Post M4ndoo
        by M4ndoo
         
        Started by M4ndoo, 04-19-2026, 05:54 PM
        0 responses
        179 views
        0 likes
        Last Post M4ndoo
        by M4ndoo
         
        Working...
        X