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 NullPointStrategies, Yesterday, 05:17 AM
    0 responses
    59 views
    0 likes
    Last Post NullPointStrategies  
    Started by argusthome, 03-08-2026, 10:06 AM
    0 responses
    133 views
    0 likes
    Last Post argusthome  
    Started by NabilKhattabi, 03-06-2026, 11:18 AM
    0 responses
    73 views
    0 likes
    Last Post NabilKhattabi  
    Started by Deep42, 03-06-2026, 12:28 AM
    0 responses
    45 views
    0 likes
    Last Post Deep42
    by Deep42
     
    Started by TheRealMorford, 03-05-2026, 06:15 PM
    0 responses
    50 views
    0 likes
    Last Post TheRealMorford  
    Working...
    X