Announcement
Collapse
Looking for a User App or Add-On built by the NinjaTrader community?
Visit NinjaTrader EcoSystem and our free User App Share!
Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less
Partner 728x90
Collapse
NinjaTrader
Pulling intrabar volume data
Collapse
X
-
Pulling intrabar volume data
Hello, I am wondering how I pull intrabar volume data at a specific price. So not the total volume of a bar, but the volume traded at say, 15,100 on a specific, single 1 minute bar. Thank youTags: None
-
I would like to be more specific here actually, how do I loop through all the prices contained in a given bar, then return the bid/ask volume traded at each level. The issue I have found is on a chart with multiple ticks per level on the bars, I'm not sure how to check it as a group of 4 ticks instead of a 1 tick price level. Let me know If I need to explain my question further, I can include pictures if necessary as well.
-
Hello rbeckmann05,
There is not a specific method to do that. To be able to get a volume at a specific price would require that you first collected the volume information to a dictionary in realtime and then check if the dictionary has that price to see what volume you accumulated. Historical data does not have volume at price information so this would not be something you could do with historical time based data. Historical data contains a single datapoint for volume for the given bar, for example you have a total volume for each 1 minute bar. You could use a 1 tick series and then build logic to accumulate volumes at prices as it processes and save that information to a dictionary, that is similar to what the volumetric tools do. The platforms included VolumeProfile indicator uses a dictionary to accumulate bid/ask volume so that would be a good place to start learnings about collecting data.
JesseNinjaTrader Customer Service
Comment
-
The VolumeProfile that comes with NinjaTrader is a very good starting place for this. I've done it to create a VP over last N minutes and N ticks of price movement. If you don't want to do to of your own code there are FootPrint indicators that give this data and some put into a bar by bar profile format . NinjaTraders Order Flow Volume Profile does this bar by bar but I don't think the data is accessible.
Comment
-
I appreciate the reply, I was able to figure something out. I just have a while loop that adds a tick X ticksPerLevel addition to looping price till it hits High[x]. The code is much simpler than I thought a few months back
Comment
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by Jimmyk, 01-26-2018, 05:19 AM
|
6 responses
835 views
0 likes
|
Last Post
by emuns
Today, 11:27 AM
|
||
Started by jxs_xrj, 01-12-2020, 09:49 AM
|
6 responses
3,291 views
1 like
|
Last Post
by jgualdronc
Today, 10:56 AM
|
||
Started by Touch-Ups, Today, 10:36 AM
|
0 responses
10 views
0 likes
|
Last Post
by Touch-Ups
Today, 10:36 AM
|
||
Started by geddyisodin, 04-25-2024, 05:20 AM
|
11 responses
62 views
0 likes
|
Last Post Today, 10:08 AM | ||
Can someone turn this thinkscript into a ninjascript. 5PM CST OHL and Previous Day
by Option Whisperer
Started by Option Whisperer, Today, 09:55 AM
|
0 responses
9 views
0 likes
|
Last Post Today, 09:55 AM |
Comment