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 Mindset, 04-21-2026, 06:46 AM
    0 responses
    44 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by M4ndoo, 04-20-2026, 05:21 PM
    0 responses
    54 views
    0 likes
    Last Post M4ndoo
    by M4ndoo
     
    Started by M4ndoo, 04-19-2026, 05:54 PM
    0 responses
    35 views
    0 likes
    Last Post M4ndoo
    by M4ndoo
     
    Started by cmoran13, 04-16-2026, 01:02 PM
    0 responses
    95 views
    0 likes
    Last Post cmoran13  
    Started by PaulMohn, 04-10-2026, 11:11 AM
    0 responses
    57 views
    0 likes
    Last Post PaulMohn  
    Working...
    X