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.
    JesseNinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by fitspressoburnfat, Today, 04:25 AM
    0 responses
    2 views
    0 likes
    Last Post fitspressoburnfat  
    Started by Skifree, Today, 03:41 AM
    1 response
    4 views
    0 likes
    Last Post Skifree
    by Skifree
     
    Started by usazencort, Today, 01:16 AM
    0 responses
    1 view
    0 likes
    Last Post usazencort  
    Started by kaywai, 09-01-2023, 08:44 PM
    5 responses
    604 views
    0 likes
    Last Post NinjaTrader_Jason  
    Started by xiinteractive, 04-09-2024, 08:08 AM
    6 responses
    23 views
    0 likes
    Last Post xiinteractive  
    Working...
    X