Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Offset 1 minute candles by 30 seconds

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

    Offset 1 minute candles by 30 seconds

    Hi,

    As they are programmed now, time-based candles open at the whole minute. For example, 1-minute chart candles open at 9:30:00, 9:31:00, 9:32:00, etc etc. I would like 1 minute candles that open at 9:30:30, 9:31:30, 9:32:30, etc etc.

    I'll skip most of the code, but was hoping to write a custom hours template as such:

    <Sessions>
    <Session>
    <BeginDay>Monday</BeginDay>
    <BeginTime>830.5</BeginTime>
    <EndDay>Monday</EndDay>
    <EndTime>1515.5</EndTime>
    <TradingDay>Monday</TradingDay>

    and similar for Tuesday-Friday. NT didn't like this. Is there a different way I should be formatting the time that can make this work? Or am I not on the right track here.

    thanks!

    -Ryan

    #2
    Hello rypatsalm,

    Welcome to the NinjaTrader forums!

    Unfortunately, trading hours templates cannot include seconds. These are hour and minute only.

    I'm not certain of a workaround to cause minute bars to close every half minute. It may be necessary to open a 30 minute chart.
    Chelsea B.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by argusthome, 03-08-2026, 10:06 AM
    0 responses
    105 views
    0 likes
    Last Post argusthome  
    Started by NabilKhattabi, 03-06-2026, 11:18 AM
    0 responses
    53 views
    0 likes
    Last Post NabilKhattabi  
    Started by Deep42, 03-06-2026, 12:28 AM
    0 responses
    35 views
    0 likes
    Last Post Deep42
    by Deep42
     
    Started by TheRealMorford, 03-05-2026, 06:15 PM
    0 responses
    38 views
    0 likes
    Last Post TheRealMorford  
    Started by Mindset, 02-28-2026, 06:16 AM
    0 responses
    74 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Working...
    X