Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

exitonclose

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

    exitonclose

    As i trade fx in asian hours using intraday bars, how do i code for positions to be exited only if the next day is not a trading day?

    as NY friday close = asia saturday morning, which day do I use in my code if i live in asia?

    #2
    Hi kaywai,

    ExitOnClose will use the days and times defined in your session template. You may be able to create your own session template if the built in FOREX one doesn't fit your desired exit times. If you want more control, can also custom code exits by reading day of week, time of day, etc.

    Ryan M.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by CarlTrading, 03-31-2026, 09:41 PM
    1 response
    65 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by CarlTrading, 04-01-2026, 02:41 AM
    0 responses
    35 views
    0 likes
    Last Post CarlTrading  
    Started by CaptainJack, 03-31-2026, 11:44 PM
    0 responses
    59 views
    1 like
    Last Post CaptainJack  
    Started by CarlTrading, 03-30-2026, 11:51 AM
    0 responses
    62 views
    0 likes
    Last Post CarlTrading  
    Started by CarlTrading, 03-30-2026, 11:48 AM
    0 responses
    51 views
    0 likes
    Last Post CarlTrading  
    Working...
    X