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 CarlTrading, 03-31-2026, 09:41 PM
    1 response
    41 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by CarlTrading, 04-01-2026, 02:41 AM
    0 responses
    20 views
    0 likes
    Last Post CarlTrading  
    Started by CaptainJack, 03-31-2026, 11:44 PM
    0 responses
    29 views
    1 like
    Last Post CaptainJack  
    Started by CarlTrading, 03-30-2026, 11:51 AM
    0 responses
    46 views
    0 likes
    Last Post CarlTrading  
    Started by CarlTrading, 03-30-2026, 11:48 AM
    0 responses
    37 views
    0 likes
    Last Post CarlTrading  
    Working...
    X