Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

Partner 728x90

Collapse

Trading Hours and orders outside those times

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

    Trading Hours and orders outside those times

    Hi,
    I am wondering if Ninja will send orders outside the times dictated by the TradingHours template.
    For example the "CME US Index Futures ETH" template finishes at 4pm and restarts at 5pm.

    If a strategy got a signal bang on the end of the session, e.g. at 4pm, and placed a market order to enter, would Ninja immediately place the order, or wait until 5pm?
    Is it at all possible that ticks can arrive to the strategy between 4pm and 5pm using this TradingHours template?

    Apologies for the basic questions - on this side we are trying to pin down the reason for an 'out of hours' problem with a broker.

    Cheers,
    saltminer

    #2
    Hello saltminer,

    OnBarUpdate and OnMarketUpdate are data driven. When the time is outside of the hours defined in the Trading hours template, the data stops being driven and these methods do not trigger.

    Which means there isn't anything to drive order placement.

    Theoretically you could use a timer to continue sending orders though..
    Chelsea B.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by cummish, Yesterday, 08:43 PM
    1 response
    20 views
    0 likes
    Last Post NinjaTrader_Clayton  
    Started by elirion, Yesterday, 09:32 PM
    2 responses
    16 views
    0 likes
    Last Post elirion
    by elirion
     
    Started by cupir2, Yesterday, 07:44 PM
    1 response
    15 views
    0 likes
    Last Post NinjaTrader_Gaby  
    Started by ETFVoyageur, 05-07-2024, 07:05 PM
    13 responses
    89 views
    0 likes
    Last Post ETFVoyageur  
    Started by ldanenberg, Yesterday, 03:19 PM
    1 response
    8 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Working...
    X