NexusFi: Find Your Edge


Home Menu

 





How to Calculate Value Area in unbalanced market profile ?


Discussion in NinjaTrader

Updated
      Top Posters
    1. looks_one ScottB with 1 posts (0 thanks)
    2. looks_two rleplae with 1 posts (0 thanks)
    3. looks_3 sameers with 1 posts (0 thanks)
    4. looks_4 mmaker with 1 posts (0 thanks)
    1. trending_up 3,610 views
    2. thumb_up 0 thanks given
    3. group 5 followers
    1. forum 4 posts
    2. attach_file 0 attachments




 
Search this Thread

How to Calculate Value Area in unbalanced market profile ?

  #1 (permalink)
sameers
Mumbai
 
Posts: 1 since Sep 2016
Thanks Given: 0
Thanks Received: 0

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) ?

1.
resultVAL = POC;
resultVAH = POC:

2.
CurrentVolume = POCVolume

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

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

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

——valIndex;
valVolume = volume[vahIndex]; (new volume)

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

else
{
CurrentVolume += VahVolume;
resultVAH = vahIndex;

++vahVolume;
vahVolume = volume[vahIndex];

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

so in each iterations we advance both valIndex and vahIndex.

Reply With Quote

Can you help answer these questions
from other members on NexusFi?
REcommedations for programming help
Sierra Chart
Exit Strategy
NinjaTrader
ZombieSqueeze
Platforms and Indicators
Trade idea based off three indicators.
Traders Hideout
How to apply profiles
Traders Hideout
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Spoo-nalysis ES e-mini futures S&P 500
29 thanks
Just another trading journal: PA, Wyckoff & Trends
25 thanks
Tao te Trade: way of the WLD
24 thanks
Bigger Wins or Fewer Losses?
22 thanks
GFIs1 1 DAX trade per day journal
17 thanks
  #2 (permalink)
 
rleplae's Avatar
 rleplae 
Gits (Hooglede) Belgium
Legendary Market Wizard
 
Experience: Master
Platform: NinjaTrader, Proprietary,
Broker: Ninjabrokerage/IQfeed + Synthetic datafeed
Trading: 6A, 6B, 6C, 6E, 6J, 6S, ES, NQ, YM, AEX, CL, NG, ZB, ZN, ZC, ZS, GC
Posts: 3,003 since Sep 2013
Thanks Given: 2,442
Thanks Received: 5,863

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.

Follow me on Twitter Visit my NexusFi Trade Journal Reply With Quote
  #3 (permalink)
MiiMeldon
Hartselle, AL, USA
 
Posts: 6 since Jun 2015
Thanks Given: 5
Thanks Received: 4


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)
ScottB
Raleigh, NC
 
Posts: 3 since Jun 2010
Thanks Given: 0
Thanks Received: 2

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)
 
mmaker's Avatar
 mmaker 
Toronto Canada
 
Experience: Intermediate
Platform: ninjatrader
Trading: es
Frequency: Several times daily
Duration: Minutes
Posts: 400 since Feb 2011
Thanks Given: 1,178
Thanks Received: 508

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).

Visit my NexusFi Trade Journal Reply With Quote




Last Updated on November 29, 2016


© 2024 NexusFi™, s.a., All Rights Reserved.
Av Ricardo J. Alfaro, Century Tower, Panama City, Panama, Ph: +507 833-9432 (Panama and Intl), +1 888-312-3001 (USA and Canada)
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.
About Us - Contact Us - Site Rules, Acceptable Use, and Terms and Conditions - Privacy Policy - Downloads - Top
no new posts