Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Compute time difference beetween renko candles in Strategy Builder
Collapse
X
-
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
Tags: None
-
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 itChelsea B.NinjaTrader Customer Service
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by NullPointStrategies, Yesterday, 05:17 AM
|
0 responses
59 views
0 likes
|
Last Post
|
||
|
Started by argusthome, 03-08-2026, 10:06 AM
|
0 responses
133 views
0 likes
|
Last Post
by argusthome
03-08-2026, 10:06 AM
|
||
|
Started by NabilKhattabi, 03-06-2026, 11:18 AM
|
0 responses
73 views
0 likes
|
Last Post
|
||
|
Started by Deep42, 03-06-2026, 12:28 AM
|
0 responses
45 views
0 likes
|
Last Post
by Deep42
03-06-2026, 12:28 AM
|
||
|
Started by TheRealMorford, 03-05-2026, 06:15 PM
|
0 responses
50 views
0 likes
|
Last Post
|
Comment