Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Quick Question about Daily Close within Minute Strat

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

    Quick Question about Daily Close within Minute Strat

    I would like to use yesterdays close into a model that is based on a minute basis. I can't seem to wrap my head about how to do it.

    I've tried adding a Add(PeriodType.Day, 1); then asking the system to reference the last price against Closes[1][1], but I don't think the system wants me to (for example) look at a 30 min bar against yesterdays closing value.

    Any ideas would be greatly appreciated.

    Thanks
    C

    #2
    Hello Canuck,

    Yes, this is the right idea but you should be aware of the daily time stamp in relation to the minute time stamp.

    You will not be able to access data if the time stamp is dated beyond in relation to the other series.

    This works differently in real time and backtest. You are able access the current day in real time, even if the time stamp is in advance of the other series.

    To get a handle on what data is available, it's useful to print the time stamps for each series.

    Print("Primary Series: " + Time[0] + " Secondary Series: " + Times[1][0]);
    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
    649 views
    0 likes
    Last Post Geovanny Suaza  
    Started by Geovanny Suaza, 02-11-2026, 05:51 PM
    0 responses
    370 views
    1 like
    Last Post Geovanny Suaza  
    Started by Mindset, 02-09-2026, 11:44 AM
    0 responses
    109 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by Geovanny Suaza, 02-02-2026, 12:30 PM
    0 responses
    573 views
    1 like
    Last Post Geovanny Suaza  
    Started by RFrosty, 01-28-2026, 06:49 PM
    0 responses
    576 views
    1 like
    Last Post RFrosty
    by RFrosty
     
    Working...
    X