Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Order rejected - reason: The exchange is closed (201)

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

    Order rejected - reason: The exchange is closed (201)

    Hello,

    I'm having troubles with this error. I'm currently running an strategy in several FX pairs.

    What I think is, since I'm using daily bars on all of them, the system is trying to place the order right after the bar closes ("calculate on bar close" is enabled), that is, when the market is already closed for the day.

    How can I solve this issue? I was thinking about disabling "calculate on bar close" and calculate the strategies on every tick, but that would be extremely inefficient in my opinion.

    I'm sure is just some basic thing I'm doing wrong. I'm sorry, I'm just getting started with the automatic trading.

    Thanks,
    Emilio

    #2
    Welcome to our forums Emilio - which broker would you be using here with NT? Would you mind contacting us via Help >> Mail to Support from within NT so we could review your trace and log files? With CalculateOnBarClose set the daily bar would not close until the open tick of new bar would be seen, so I would expect the exchange than being available for trading. If not a custim time filter in your script could help to ensure the current time is in the desired range.

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Geovanny Suaza, 02-11-2026, 06:32 PM
    0 responses
    649 views
    0 likes
    Last Post Geovanny Suaza  
    Started by Geovanny Suaza, 02-11-2026, 05:51 PM
    0 responses
    370 views
    1 like
    Last Post Geovanny Suaza  
    Started by Mindset, 02-09-2026, 11:44 AM
    0 responses
    109 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by Geovanny Suaza, 02-02-2026, 12:30 PM
    0 responses
    573 views
    1 like
    Last Post Geovanny Suaza  
    Started by RFrosty, 01-28-2026, 06:49 PM
    0 responses
    576 views
    1 like
    Last Post RFrosty
    by RFrosty
     
    Working...
    X