Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Exit On Session closed entered a buy order

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

    Exit On Session closed entered a buy order

    I was running a strategy that had exit on session closed = true
    I put exit on session 3000 seconds before 5 pm which should close everything right around 4pm
    Instead it opened a buy order at 4:09:30

    A Few hours before this happened the strategy entered 2 buy longs at market that I couldnt close from the ninjatrader 8 so I closed it thru rithimic instead but the unrealized pnl stayed open on ninjatrader. Any idea what could have happen and how to avoid this

    #2
    Hello rickyblah12,

    Thank you for your reply.

    What interval chart are you running the strategy on? (1 minute, 4 renko, etc)

    Is this a single series strategy, or does it use multiple data series?

    Is the strategy run On Each Tick, On Bar Close, or On Price Change?

    Thanks in advance; I look forward to assisting you further.

    Comment


      #3
      1. Its a special chart called Ninzarenko
      2. Strategy is Multiple data series
      3.Strategy is on bar close

      Comment


        #4
        Hello rickyblah12,

        Thank you for your reply.

        The issue is that you're setting Exit on Session close early, but you're not telling your strategy not to enter after that time, when the market is still open. All Exit at Session close does is place an order to close your current position when you tell it to - it doesn't keep your strategy from entering after that point if there's still data coming in and bars forming. You'd need to set up a time comparison to make sure no entries are taken after that point.

        Here's a link to our help guide that goes over using a time filter to limit trading hours:



        Please let us know if we may be of further assistance to you.

        Comment


          #5
          thats the thing I do have a time limit on it that stops trading before the exit on session close

          Comment


            #6
            Hello rickyblah12,

            Thank you for your reply.

            Please post a sample of your code showing your time restriction setup -- I'd like to take a look. If you feel comfortable posting the whole strategy, you may do so.

            Thanks in advance; I look forward to assisting you further.

            Comment

            Latest Posts

            Collapse

            Topics Statistics Last Post
            Started by NullPointStrategies, Today, 05:17 AM
            0 responses
            51 views
            0 likes
            Last Post NullPointStrategies  
            Started by argusthome, 03-08-2026, 10:06 AM
            0 responses
            128 views
            0 likes
            Last Post argusthome  
            Started by NabilKhattabi, 03-06-2026, 11:18 AM
            0 responses
            69 views
            0 likes
            Last Post NabilKhattabi  
            Started by Deep42, 03-06-2026, 12:28 AM
            0 responses
            42 views
            0 likes
            Last Post Deep42
            by Deep42
             
            Started by TheRealMorford, 03-05-2026, 06:15 PM
            0 responses
            46 views
            0 likes
            Last Post TheRealMorford  
            Working...
            X