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 charlesugo_1, 05-26-2026, 05:03 PM
|
0 responses
68 views
0 likes
|
Last Post
by charlesugo_1
05-26-2026, 05:03 PM
|
||
|
Started by DannyP96, 05-18-2026, 02:38 PM
|
1 response
151 views
0 likes
|
Last Post
|
||
|
Started by CarlTrading, 05-11-2026, 05:56 AM
|
0 responses
162 views
0 likes
|
Last Post
by CarlTrading
05-11-2026, 05:56 AM
|
||
|
Started by CarlTrading, 05-10-2026, 08:12 PM
|
0 responses
100 views
0 likes
|
Last Post
by CarlTrading
05-10-2026, 08:12 PM
|
||
|
Started by Hwop38, 05-04-2026, 07:02 PM
|
0 responses
288 views
0 likes
|
Last Post
by Hwop38
05-04-2026, 07:02 PM
|

Comment