Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

own Series<double> to keep track of the daily OHLC values

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

    own Series<double> to keep track of the daily OHLC values

    Hi,

    I want to create my own Series<double> to keep track of the daily OHLC values I wish to use for your indicator.

    The problem is that this Series<double> updates with each OnBarUpdate() of my primary series. How can I make the series update once a day instead of updating every 5 minutes as my primary series does?

    Best Regards,

    #2
    Hello Redmoon22,

    Thanks for your post.

    Correct, any created dataseries will match the primary bars (chart bars). One solution would be to add a daily bar series and sync your data series to it using the method identified in this reference sample: http://ninjatrader.com/support/forum...ead.php?t=3572

    If all you need is the daily OHLC values simply adding a day bar series will likely be the easiest and then just reference those values as needed. Here is a link to multi time frame considerations: http://ninjatrader.com/support/helpG...nstruments.htm

    Another alternative that uses the existing primary bars data series is the method GetDayBar() which will construct a daily bar based on the 5 minute data: http://ninjatrader.com/support/helpG...?getdaybar.htm

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by CarlTrading, 03-31-2026, 09:41 PM
    1 response
    81 views
    1 like
    Last Post NinjaTrader_ChelseaB  
    Started by CarlTrading, 04-01-2026, 02:41 AM
    0 responses
    42 views
    0 likes
    Last Post CarlTrading  
    Started by CaptainJack, 03-31-2026, 11:44 PM
    0 responses
    64 views
    2 likes
    Last Post CaptainJack  
    Started by CarlTrading, 03-30-2026, 11:51 AM
    0 responses
    68 views
    0 likes
    Last Post CarlTrading  
    Started by CarlTrading, 03-30-2026, 11:48 AM
    0 responses
    55 views
    0 likes
    Last Post CarlTrading  
    Working...
    X