Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Entering a trade in the same day as a daily trigger

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

    Entering a trade in the same day as a daily trigger

    Hi,

    I've tried several different ways to code this up, but I was hoping to get a definitive answer as to whether this is possible:

    I want to wait for a daily close, and enter the trade at the close. I know traditionally this isn't supported in NT7, but I was wondering if there was a way to have different session times or something to trick it into placing that order.

    For example, if I have two symbols in the instrument manager for APPL, one with RTH and the other with ETH. Wait for RTH APPL to Close at 4pm, then enter on ETH AAPL at 4:01pm.

    Does the base symbol's session override any other symbols added?

    Thanks for your help!
    Rick

    #2
    Hi Rick,

    That's a creative solution and it may work for you. If the secondary series is on the chart that the strategy is applied to, then it will use the session template selected for the series. You just have to distinguish the interval between the two series, so for ETH use 1440 minute bars for example.

    It's also good to keep in mind the bar closing event for daily series. A bar isn't closed until the next one begins, so you may have to work with CalculateOnBarClose = false or check conditions on the ETH time frame.

    Excerpted below is the section from the help guide regarding session templates and multi series scripts:
    If a multi-series script adds an additional Bars object that already exists on the chart, the script will use the preexisting series instead of creating a new one to conserve memory. This includes that series' session template as applied from the chart. If the Bars object does not exist on the chart, the session template of the added Bars object will be the session template of the primary Bars object. If the primary Bars object is using the "<Use instrument settings>" session template then the additional Bars objects will use the default session templates as defined for their particular instruments in the Instrument Manager.
    Ryan M.NinjaTrader Customer Service

    Comment


      #3
      Thanks for the quick reply!

      I forgot to mention that I am trying to get this to run in Backtest, so it seems like my solution won't work. Is there a way to override the order sending so that it is forced to send?

      Comment


        #4
        I don't believe there's a way to work around this in a backtest, as there's no way to specify programatically the session template applied. It will use the same one as the primary series.

        The timing model in a backtest is always condition evaluates true > order submitted to next bar. You can submit to a smaller series but won't be able to submit an order prior to the time stamp of the primary series.
        Ryan M.NinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by Geovanny Suaza, 02-11-2026, 06:32 PM
        0 responses
        662 views
        0 likes
        Last Post Geovanny Suaza  
        Started by Geovanny Suaza, 02-11-2026, 05:51 PM
        0 responses
        376 views
        1 like
        Last Post Geovanny Suaza  
        Started by Mindset, 02-09-2026, 11:44 AM
        0 responses
        110 views
        0 likes
        Last Post Mindset
        by Mindset
         
        Started by Geovanny Suaza, 02-02-2026, 12:30 PM
        0 responses
        574 views
        1 like
        Last Post Geovanny Suaza  
        Started by RFrosty, 01-28-2026, 06:49 PM
        0 responses
        580 views
        1 like
        Last Post RFrosty
        by RFrosty
         
        Working...
        X