How to Calculate Value Area in unbalanced market profile ? - NinjaTrader | futures io social trading
futures io futures trading

How to Calculate Value Area in unbalanced market profile ?
Updated: Views / Replies:553 / 4
Created: by sameers Attachments:0

Welcome to futures io.

Welcome, Guest!

This forum was established to help traders (especially futures traders) by openly sharing indicators, strategies, methods, trading journals and discussing the psychology of trading.

We are fundamentally different than most other trading forums:
  • We work extremely hard to keep things positive on our forums.
  • We do not tolerate rude behavior, trolling, or vendor advertising in posts.
  • We firmly believe in openness and encourage sharing. The holy grail is within you, it is not something tangible you can download.
  • We expect our members to participate and become a part of the community. Help yourself by helping others.

You'll need to register in order to view the content of the threads and start contributing to our community. It's free and simple, and we will never resell your private information.

-- Big Mike

Thread Tools Search this Thread

How to Calculate Value Area in unbalanced market profile ?

  #1 (permalink)
Trading Apprentice
Futures Experience: Intermediate
Platform: NinjaTrader
Favorite Futures: Crude CL
Posts: 1 since Sep 2016
Thanks: 0 given, 0 received

How to Calculate Value Area in unbalanced market profile ?

How one should calculate Values Area in unbalanced market profile ?

On balanced profile, method described in "Mind Over Markets"( where we move two levels up or down starting from POC) works very well.

But consider profile that contains Single Prints in middle.

Can following method/algo give better value area levels for any profile(balanced or unbalanced) ?

resultVAL = POC;
resultVAH = POC:

CurrentVolume = POCVolume

CurrentValIndex = POC - 1;
ValVolume = volume[CurrentValIndex-1];

CurrentVahIndex = POC + 1;
VahVolume = volume[CurrentVahIndex-1];

while CurrentVolume < (70% of Total Volume)
if ValVolume > VahVolume:
CurrentVolume += ValVolume;
resultVAL = valIndex;

valVolume = volume[vahIndex]; (new volume)

// This is idea I am suggesting where we also advance vahIndex
vahVolume += volume[vahIndex]; (cumulative volume)

CurrentVolume += VahVolume;
resultVAH = vahIndex;

vahVolume = volume[vahIndex];

// This is idea I am suggesting where we also advance valIndex
vahVolume += volume[valIndex];

so in each iterations we advance both valIndex and vahIndex.

Last edited by sameers; September 6th, 2016 at 07:58 AM.
Reply With Quote
  #2 (permalink)
Elite Member
Omer עומר / Israel י
Futures Experience: Master
Platform: NinjaTrader, Proprietary,
Broker/Data: Ninjabrokerage/IQfeed + Synthetic datafeed
Favorite Futures: 6A, 6B, 6C, 6E, 6J, 6S, ES, NQ, YM, AEX, CL, NG, ZB, ZN, ZC, ZS, GC
rleplae's Avatar
Posts: 1,969 since Sep 2013
Thanks: 1,386 given, 2,949 received
Forum Reputation: Legendary

There are several ways to do the calculation...

Few algorithms are documented in the dvalue indicator, but it's not using tick data, it's a proximation.

Reply With Quote
  #3 (permalink)
Trading Apprentice
Hartselle, AL, USA
Futures Experience: Advanced
Platform: Sierra Chart, MarketDelta, MetaTrader, Proprietary
Favorite Futures: Oil, Russell, Forex
Posts: 6 since Jun 2015
Thanks: 5 given, 3 received

Please elaborate

Hi. sameers, can you please elaborate on exactly what you are doing with your pseudo-code? I am not understanding exactly what you are suggesting. If you can exemplify I can try to develop an indicator for NT8 so we can test the results.

Reply With Quote
  #4 (permalink)
Trading Apprentice
Raleigh, NC
Futures Experience: Master
Platform: NinjaTrader, custom built
Broker/Data: Direct Market Access
Favorite Futures: ES 6E, CL, GC, ZN
Posts: 3 since Jun 2010
Thanks: 0 given, 2 received

Value area calculation in an unbalanced market profile

I have come across what appears to be the same issue as I began writing code to implement a value area calculation. You could have a very low volume area creating an effective barrier between a point of control and any volume below the very low volume area. This barrier (think of the extreme case of 2 prices that traded 1 contract each) couldn't be breached regardless of how much volume was below until all prices to the high side had been exhausted.

I suspect that is a pretty rare case and if it occurs maybe you just have to live with it but it does seem problematic. I have considered skipping over the volume if it is arbitrarily low and it has "lost" several times in a row (say 4 times) to a higher price. However, that approach seems to be somewhat capricious. I have done quite a few searches (which brought me to this thread) but have not come across anything useful.

Reply With Quote
  #5 (permalink)
Elite Member
Toronto Canada
Futures Experience: Intermediate
Platform: ninjatrader
Favorite Futures: es
mmaker's Avatar
Posts: 353 since Feb 2011
Thanks: 1,167 given, 392 received


Market profile is based on 30 minute timeframe increments.

Volume profile is based on volume.

It looks like you are using volume.

With respect to a double distribution with single prints in the middle, one of the two distributions will have more volume than the other.

So I would start at the vpoc and add rows above and below until the last row was hit. Then you have no choice but to take rows where they are available even if they eat all the single prints and eat into the other distribution(s).

Reply With Quote


futures io > > > > How to Calculate Value Area in unbalanced market profile ?

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Upcoming Webinars and Events (4:30PM ET unless noted)

FIO Journal Challenge featuring NinjaTrader ($2,000+ of prizes)


EasyLanguage ABC's: Mastering TradeStation Programming w/Chris Kaiser

Elite only

Prototyping Python Strategies (part 2: Backtesting) w/Ran Aroussi [special time: 1PM ET]

Elite only

Portfolio Diversification w/Brendon Delate @ Diversify Portfolio

Elite only

An Afternoon with FIO member Softsoap (being rescheduled)

Elite only

Similar Threads
Thread Thread Starter Forum Replies Last Post
Steidlmayer Market Profile then who created Volume Profile? TradeAction Traders Hideout 7 August 13th, 2016 09:20 PM
Volume Profile Value Area Definition? Revv Traders Hideout 5 June 14th, 2016 12:15 PM
Volume Profile/Market Profile Snapshot Indicator djkiwi The Elite Circle 63 March 4th, 2015 12:25 AM
How to calculate volume profile in excel (if your platform doesnt have it) budfox Traders Hideout 4 February 13th, 2014 03:09 AM
Calculate Developing Value Area Mauro_60 NinjaTrader Programming 8 September 24th, 2013 02:08 PM

All times are GMT -4. The time now is 08:49 PM.

Copyright © 2017 by futures io, s.a. Av Ricardo J. Alfaro, Century Tower, Panama, +507 833-9432,
All information is for educational use only and is not investment advice.
There is a substantial risk of loss in trading commodity futures, stocks, options and foreign exchange products. Past performance is not indicative of future results.
no new posts
Page generated 2017-05-23 in 0.08 seconds with 19 queries on phoenix via your IP