Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Opens and intrabar execution

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

    Opens and intrabar execution

    One of the things I was hoping with the new NT8 CEP was the ability to not just enter intrabar in simulation, but to also generate orders based off the next bar's open. Then enter intrabar.

    In TradeStation and MultiCharts this is easily achieved with (to paraphrase):
    "EnterLong at Open of Tomorrow + TrueRange Stop..."

    The closest thing I can come up with in NT is the following, which of course doesn't work. Would be nice if it did!
    double LongEntry = Open[-1]+ATR(1)[0];
    EnterLongStopLimit(numContracts, LongEntry, LongEntry,"LE");

    Any thoughts?

    I'm just trying to get around the massive issue of having to use minute data versus daily data with is a lot more plentiful and accurate.

    #2
    Hello,

    Thank you for the question.

    If your strategy is running as CalculateOnBarClose = false or with a secondary series, for intra bar orders you could use the following items to assist in creating logic that happens on each new bar or on each new session.





    On a daily bar, if you wanted to enter an IntraBar order you could use IsFirstTickOfBar to determine the new bar, when a new bar generates and is the first tick you could submit an order using the Current bars Open.

    I look forward to being of further assistance.

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Mindset, Today, 06:46 AM
    0 responses
    14 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by M4ndoo, Yesterday, 05:21 PM
    0 responses
    22 views
    0 likes
    Last Post M4ndoo
    by M4ndoo
     
    Started by M4ndoo, 04-19-2026, 05:54 PM
    0 responses
    16 views
    0 likes
    Last Post M4ndoo
    by M4ndoo
     
    Started by cmoran13, 04-16-2026, 01:02 PM
    0 responses
    82 views
    0 likes
    Last Post cmoran13  
    Started by PaulMohn, 04-10-2026, 11:11 AM
    0 responses
    51 views
    0 likes
    Last Post PaulMohn  
    Working...
    X