Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Add bars when one bar closes above or below the high or low of prior bar
Collapse
X
-
Add bars when one bar closes above or below the high or low of prior bar
I am trying to make an indicator that counts when a bar closes above or below the prior bar's low or high? Is there an indicator that can be used within the Strategy Builder to do what I want it to do? Thank you.Tags: None
-
Hello james79, thanks for your post and welcome to the NinjaTrader forum.
I attached an indicator that counts all bars within a session that closed below the previous Low and above the previous High just as a starting example. This can also be used in the builder because of the added plot. See here for documentation on all available price series including an example:
https://ninjatrader.com/support/help...riceseries.htm
If you are just beginning NinjaScript work, please also see this guide going over documentation and educational resources:
https://ninjatrader.com/support/foru...sample-scripts
Kind regards,
-ChrisL
Attached Files
-
Hello james79, thanks for your reply.
I apologize but I will not be able to make new code and examples. This is so that we can provide the same high level of service to all of our clients. We recommend those creating NinjaScript be at least intermediate to advanced level in C# programming level before beginning to code in NinjaScript. If you have specific questions that I can help with I will be happy to help out.
Kind regards.
Comment
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by Geovanny Suaza, 02-11-2026, 06:32 PM
|
0 responses
599 views
0 likes
|
Last Post
|
||
|
Started by Geovanny Suaza, 02-11-2026, 05:51 PM
|
0 responses
344 views
1 like
|
Last Post
|
||
|
Started by Mindset, 02-09-2026, 11:44 AM
|
0 responses
103 views
0 likes
|
Last Post
by Mindset
02-09-2026, 11:44 AM
|
||
|
Started by Geovanny Suaza, 02-02-2026, 12:30 PM
|
0 responses
558 views
1 like
|
Last Post
|
||
|
Started by RFrosty, 01-28-2026, 06:49 PM
|
0 responses
557 views
1 like
|
Last Post
by RFrosty
01-28-2026, 06:49 PM
|

Comment