Will look at this over next day or so...
Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Calculate Value Area - histogram
Collapse
X
-
-
-
hey guy, i'm a noob.
what do the green dotted lines (VAt) and red dotted lines represent (VAb)?
also, does keeping present method = 0 give you a dynamic read of the volume histogram so that you can see any sudden changes to the POC that occur in real-time?
thanks,
Comment
-
dvaluearea
Thank you Ben, for the code to build on. I had fun with this as my first try at plot overrides. I was a little disappointed how inefficient the overrides can be when the calcs get a little busy, but it makes sense that windows will have to hit it with each draw request (which happens almost all the time). Hopefully this "undocumented" plot code will hold up when new versions of NT come out.
The 3 lines (POC, VA(x)) will not always be the exact same as Ben's for 2 reasons... 1. I added 3 rules I found elseware, and put the POC more in the middle of a (slot) range, rather than the bottom, and 2. Added the Slots thing to group ticks into ranges. Main reason I grouped them was to limit the array size so that program wouldn't quit when more that 1000 tick range on a day happend. Also adds the option and can change the numbers sometimes. I've actually found that I like the lower settings a little better (i.e. 10, 20, 40, etc.)
radante, there is a lot of info about using this type stuff... just do web searches on Market Profiles and Value Areas. The 3 lines are not real time in that they are showing "yesterdays" placements. I did add 3 numbers on right screen that float around, showing todays development. Think I saw a case or 2 where they changed when the next day started, but are mostly accurate.
I don't plan on doing more development with my code, so Ben or anyone can take it (or any part they like) and grow with it. Just save under a different name in case I do do some maint. on it sometime.
Thanks again Ben, for the base code. Saved me a lot of time to be able to just add on to it.Last edited by DeanV; 02-24-2009, 07:05 AM.
Comment
-
Max Volume Level indicator
Here is one for people who can not afford Volfix or Se7en.
It calculates using all the bars loaded that you asked for when you open a new chart, not just the ones showing on the chart. Here is a comparison between Volfix and Se7en.
Note: If I open a tick chart going back 2 months Ninja uses 650 MB of RAM and I only have 1,000 MB. This is with no indicators loaded, but the really bad thing is when I close the chart Ninja does not give my computer back that 650 MB of RAM, I have to close down Ninja to get my RAM back.... this is very disappointing programming I feel. So bear this in mind when you are trying to get super accurate levels over many weeks. It is better with lesser amounts of days, or using minutes or hourly bars for big look back periods, this will also let you see the histogram better too, to show you how big each level is compared with other levels.
Play with it a bit and you'll soon see what I mean.
I noticed the original CalculateValueAreaHisto does not work on the JPY/USD futures so neither does this one, must be something to do with there being 6 digits after the decimal.
Dean.
EDIT:
There is a similar indicator here:
.
Comment
-
deanz thanks for the script!
I just wanted to check what is the best way to get exact data?
When I use 1 tick data for GC for example it is different from the result I get when I try 1 minute.
Can you explain how to use it properly?
And another request - can you make it to calculate trades (as Se7en)
and if possible to modify the script to display a range of 10 top values , not just one?Last edited by fed2008; 03-08-2009, 12:49 AM.
Comment
-
1 tick chart will be the most accurate, but also the most CPU and RAM intensive, you may find a 1 minute chart is good enough, or even 10 minute, it all depends on how you like to trade. Like if you trade daily candles then having to get levels off a 1 tick chart may be over kill.Originally posted by fed2008 View Postdeanz thanks for the script!
I just wanted to check what is the best way to get exact data?
When I use 1 tick data for GC for example it is different from the result I get when I try 1 minute.
Can you explain how to use it properly?
And another request - can you make it to calculate trades (as Se7en)
and if possible to modify the script to display a range of 10 top values , not just one?
Sorry I am not capable of making it display like se7en, maybe someone else will try. If you want to know where other levels are, just go to a higher time frame and look at the shape of the volume profile.
Price tends to congregates around high volume [hills] on the profile, and where there is a valley, it will tend to go to and reverse, or quickly jump over.
Comment
-
many thanks Dean.
i hope someone can make a version wich calculate max volume of previous month, week, day using tick, plot the line and erase the ram after it. Is it impossible? Using tick to calculate the max vol of the last hour and 15 min i think is not a problem.
i have two pcs here, one with 512MB and another with 768 and in this way is impossible to use this indicator.
Comment
-
RAM is cheap these days...Originally posted by giraia_br View Postmany thanks Dean.
i hope someone can make a version wich calculate max volume of previous month, week, day using tick, plot the line and erase the ram after it. Is it impossible? Using tick to calculate the max vol of the last hour and 15 min i think is not a problem.
i have two pcs here, one with 512MB and another with 768 and in this way is impossible to use this indicator.
Comment
-
Originally posted by deanz View Post
It calculates using all the bars loaded that you asked for when you open a new chart, not just the ones showing on the chart. Here is a comparison between Volfix and Se7en.
Dean.
Dean,
Thanks a lot, this is an awesome indicator!
Is there a way to add a date range into it? For example if I wanted last weeks volume I could enter start date and end date, kind of like Se7en...
This way you don't have to open several charts. Would be great.
Cheers!Last edited by Jamaica; 06-27-2009, 10:36 AM.
Comment
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by Geovanny Suaza, 02-11-2026, 06:32 PM
|
0 responses
648 views
0 likes
|
Last Post
|
||
|
Started by Geovanny Suaza, 02-11-2026, 05:51 PM
|
0 responses
369 views
1 like
|
Last Post
|
||
|
Started by Mindset, 02-09-2026, 11:44 AM
|
0 responses
108 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
572 views
1 like
|
Last Post
|
||
|
Started by RFrosty, 01-28-2026, 06:49 PM
|
0 responses
573 views
1 like
|
Last Post
by RFrosty
01-28-2026, 06:49 PM
|

Comment