Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Compute time difference beetween renko candles in Strategy Builder

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

    Compute time difference beetween renko candles in Strategy Builder

    Hi, i could not find how i can store in a custom serie the difference beetween timestamp of openings of renko candles . I could retrieve the result stored in the custom series for condition in strategy builder. Thank you for your help

    #2
    Hello rht5692,

    A Series<DateTime> would hold a datetime value for each bar.
    https://ninjatrader.com/support/help...t8/seriest.htm

    A Series<Int> could hold a number of seconds (such as number of seconds to the previous bar).

    While the opening time of each bar is not available, you could subtract the close time of the current bar with the close time of the previous bar.
    Time[0].Subtract(Time[1])


    For a series to be available in the Strategy Builder, this must be a plot added with AddPlot() and a returned Series<double>.
    I'm trying to expose my variables to the strategy builder so everyone can have better use of the WaveTrend indicator (it has a lot of code). Explain this to me like I am 5 because this isnt the first time I've tried to figure it out and hit a wall. What is Series? I know its like an array that stores bars. Why not just call it
    Chelsea B.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Mindset, 04-21-2026, 06:46 AM
    0 responses
    90 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by M4ndoo, 04-20-2026, 05:21 PM
    0 responses
    137 views
    0 likes
    Last Post M4ndoo
    by M4ndoo
     
    Started by M4ndoo, 04-19-2026, 05:54 PM
    0 responses
    68 views
    0 likes
    Last Post M4ndoo
    by M4ndoo
     
    Started by cmoran13, 04-16-2026, 01:02 PM
    0 responses
    120 views
    0 likes
    Last Post cmoran13  
    Started by PaulMohn, 04-10-2026, 11:11 AM
    0 responses
    71 views
    0 likes
    Last Post PaulMohn  
    Working...
    X