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