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 SalmaTrader, 07-07-2026, 10:26 PM
    0 responses
    29 views
    0 likes
    Last Post SalmaTrader  
    Started by CarlTrading, 07-05-2026, 01:16 PM
    0 responses
    17 views
    0 likes
    Last Post CarlTrading  
    Started by CaptainJack, 06-17-2026, 10:32 AM
    0 responses
    9 views
    0 likes
    Last Post CaptainJack  
    Started by kinfxhk, 06-17-2026, 04:15 AM
    0 responses
    15 views
    0 likes
    Last Post kinfxhk
    by kinfxhk
     
    Started by kinfxhk, 06-17-2026, 04:06 AM
    0 responses
    18 views
    0 likes
    Last Post kinfxhk
    by kinfxhk
     
    Working...
    X