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

How to control order fill time (trading hours) for profit target orders?

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

    How to control order fill time (trading hours) for profit target orders?

    I run a strategy which has both a profit target and a stop loss provision. The strategy is running against my IB account.
    I noticed a difference how the orders are submitted to IB: the Profit Target order is submitted as GTC, Fill outside regular hours allowed. The Stop loss order is submitted as GTC, Fill outside RTH disabled.

    This leads to problems for backtesting and also in resuming the correct state when I restart my strategies (e.g. at the beginning of a new week). The strategy is being run in regular trading hours, but sometimes the Profit Target is hit during extended hours, and the strategy will not know about that, so it will start in the wrong state.

    Is there a way to change how Profit Target orders are submitted? I want them to execute only in RTH.

    #2
    Hi mic414, thanks for your post.

    It's not possible to make a resting order have special conditions unless you broker would support something like this. You can cancel the profit target order during electronic hours and re-submit the order, or you could move the profit target during ETH hours.
    Chris L.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by adeelshahzad, Today, 03:54 AM
    5 responses
    31 views
    0 likes
    Last Post NinjaTrader_BrandonH  
    Started by stafe, 04-15-2024, 08:34 PM
    7 responses
    31 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by merzo, 06-25-2023, 02:19 AM
    10 responses
    823 views
    1 like
    Last Post NinjaTrader_ChristopherJ  
    Started by frankthearm, Today, 09:08 AM
    5 responses
    18 views
    0 likes
    Last Post NinjaTrader_Clayton  
    Started by jeronymite, 04-12-2024, 04:26 PM
    3 responses
    43 views
    0 likes
    Last Post jeronymite  
    Working...
    X