Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Simple Pivot Indicator Not Working
Collapse
X
-
Simple Pivot Indicator Not Working
Hello world. I've attached this simple indicator that I'm working on. For some reason it won't load the data. I use it on a Range bar chart. It's purpose is to take data from multi-time frame (dailyBars). Please look at attached and help if possible.Tags: None
-
Hello ginx10k,
Thank you for your post.
Your issue is that you're checking if the secondary series has at least BarsRequiredToPlot bars loaded before plotting:
if (CurrentBars[0] < BarsRequiredToPlot || CurrentBars[1] < BarsRequiredToPlot)
return;
Since this is a 1 day series, you'd need to have at least 20 days of data loaded for this to plot anything.
Try changing that to this:
if (CurrentBars[0] < BarsRequiredToPlot || CurrentBars[1] < 1)
return;
You should then see it plot if at least 1 day of data is loaded on the chart.
Please let us know if we may be of further assistance to you.
-
Hello ginx10k,
Thank you for your reply.
I'm attaching the script with the change I made and I can confirm this is working on my end. Please see the screenshot below:
I would suggest comparing your script with the one with my change below to see what may be different between the two.
Please let us know if we may be of further assistance to you.
- Likes 1
Comment
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by Hwop38, 05-04-2026, 07:02 PM
|
0 responses
154 views
0 likes
|
Last Post
by Hwop38
05-04-2026, 07:02 PM
|
||
|
Started by CaptainJack, 04-24-2026, 11:07 PM
|
0 responses
306 views
0 likes
|
Last Post
by CaptainJack
04-24-2026, 11:07 PM
|
||
|
Started by Mindset, 04-21-2026, 06:46 AM
|
0 responses
244 views
0 likes
|
Last Post
by Mindset
04-21-2026, 06:46 AM
|
||
|
Started by M4ndoo, 04-20-2026, 05:21 PM
|
0 responses
345 views
0 likes
|
Last Post
by M4ndoo
04-20-2026, 05:21 PM
|
||
|
Started by M4ndoo, 04-19-2026, 05:54 PM
|
0 responses
176 views
0 likes
|
Last Post
by M4ndoo
04-19-2026, 05:54 PM
|

Comment