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 charlesugo_1, 05-26-2026, 05:03 PM
    0 responses
    67 views
    0 likes
    Last Post charlesugo_1  
    Started by DannyP96, 05-18-2026, 02:38 PM
    1 response
    150 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by CarlTrading, 05-11-2026, 05:56 AM
    0 responses
    162 views
    0 likes
    Last Post CarlTrading  
    Started by CarlTrading, 05-10-2026, 08:12 PM
    0 responses
    99 views
    0 likes
    Last Post CarlTrading  
    Started by Hwop38, 05-04-2026, 07:02 PM
    0 responses
    287 views
    0 likes
    Last Post Hwop38
    by Hwop38
     
    Working...
    X