Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Why backtesting auto exits on close?

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

    Why backtesting auto exits on close?

    i am backtesting a strategy but it is exiting trades automatically at close of the day. My system is positional. Is it possible to make the system exit only when the exit signal is generated?

    #2
    Under order handling, set EXIT ON CLOSE to false. That way when the session ends, it does not close your positions

    Comment


      #3
      Thanks Richa. It helped

      Comment


        #4
        you can change it in your script
        just find exit on close = true and change it to true and then press F5 to compile it. then by default it will be false - you won't need to change it by hand

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by geddyisodin, Yesterday, 05:20 AM
        8 responses
        49 views
        0 likes
        Last Post geddyisodin  
        Started by DayTradingDEMON, Today, 09:28 AM
        3 responses
        19 views
        0 likes
        Last Post NinjaTrader_ChelseaB  
        Started by Stanfillirenfro, Today, 07:23 AM
        9 responses
        23 views
        0 likes
        Last Post NinjaTrader_ChelseaB  
        Started by George21, Today, 10:07 AM
        0 responses
        8 views
        0 likes
        Last Post George21  
        Started by navyguy06, Today, 09:28 AM
        1 response
        7 views
        0 likes
        Last Post NinjaTrader_Gaby  
        Working...
        X