Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Identify largest volume level
Collapse
X
-
Hello brucelevy,
Thank you for the post.
As far as I am aware, there is nothing built in to detect this and would require some logic to complete. You would very likely need to store this information yourself after calculating it and then reference it after the bar closes.
For this idea, you would likely need to use either a combination of adding a secondary tick series and logically using BarsInProgress to accumulate volume at various price levels or using OnMarketData and OnBarUpdate for the same purpose.
Using a Dictionary would likely be easiest to manage price levels. For example, you could check if a price key is in a dictionary or not, if it is not you would add it as a key to the dictionary with the value being the current volume. If it is in the dictionary, you could check if the current volume is greater than the volume stored in the dictionary at that level, if so increase the volume in the dictionary to match and if not, do nothing.
After the accumulation process described above, on the next bar you could access the dictionary and check specific price levels (keys) for their value (volume) which should be the accumulated MAX at that point for each level.
I am unaware of a specific sample that includes this type of logic to attach to this post. I would suggest reviewing the Dictionary samples on MSDN for some ideas on how to use dictionaries if that is not clear. There are a few samples near the bottom of the following page: https://msdn.microsoft.com/en-us/lib...v=vs.110).aspx
I look forward to being of further assistance.
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by Geovanny Suaza, 02-11-2026, 06:32 PM
|
0 responses
579 views
0 likes
|
Last Post
|
||
|
Started by Geovanny Suaza, 02-11-2026, 05:51 PM
|
0 responses
334 views
1 like
|
Last Post
|
||
|
Started by Mindset, 02-09-2026, 11:44 AM
|
0 responses
101 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
554 views
1 like
|
Last Post
|
||
|
Started by RFrosty, 01-28-2026, 06:49 PM
|
0 responses
551 views
1 like
|
Last Post
by RFrosty
01-28-2026, 06:49 PM
|

Comment