NexusFi: Find Your Edge


Home Menu

 





Simple VWAP indicator


Discussion in NinjaTrader

Updated
      Top Posters
    1. looks_one psmf with 13 posts (30 thanks)
    2. looks_two Fat Tails with 13 posts (60 thanks)
    3. looks_3 Silvester17 with 6 posts (42 thanks)
    4. looks_4 Big Mike with 4 posts (2 thanks)
      Best Posters
    1. looks_one Silvester17 with 7 thanks per post
    2. looks_two Fat Tails with 4.6 thanks per post
    3. looks_3 psmf with 2.3 thanks per post
    4. looks_4 bkool with 1 thanks per post
    1. trending_up 42,985 views
    2. thumb_up 146 thanks given
    3. group 27 followers
    1. forum 57 posts
    2. attach_file 24 attachments




 
 

Simple VWAP indicator

 
psmf
NY
 
Posts: 14 since Nov 2010
Thanks Given: 3
Thanks Received: 30


psmf View Post
Intraday only simple VWAP indicator based on Thinkorswim logic.

Enjoy

Happy trading to all.

Updated

What's new:

- Two sets of Upper/Lower Bands;

- Using (Open + High + Low + Close)/4 for better accuracy;

Enjoy

Happy trading to all.

Attached Files
Elite Membership required to download: VWAP2.zip

Can you help answer these questions
from other members on NexusFi?
The space time continuum and the dynamics of a financial …
Emini and Emicro Index
Build trailing stop for micro index(s)
Psychology and Money Management
NexusFi Journal Challenge - April 2024
Feedback and Announcements
Futures True Range Report
The Elite Circle
ZombieSqueeze
Platforms and Indicators
 
 
 
Fat Tails's Avatar
 Fat Tails 
Berlin, Europe
Market Wizard
 
Experience: Advanced
Platform: NinjaTrader, MultiCharts
Broker: Interactive Brokers
Trading: Keyboard
Posts: 9,888 since Mar 2010
Thanks Given: 4,242
Thanks Received: 27,102


psmf View Post
Updated

What's new:

- Two sets of Upper/Lower Bands;

- Using (Open + High + Low + Close)/4 for better accuracy;

Enjoy

Happy trading to all.

@psmf: You do not need a separate DataSeries for _VWAP, but can use the plot series. If you replace "Default" under Properties in line 120 with "_VWAP", you can then delete the lines 90, 56 & 29 from bottom to top.

Thanked by:
 
psmf
NY
 
Posts: 14 since Nov 2010
Thanks Given: 3
Thanks Received: 30



Fat Tails View Post
@psmf: You do not need a separate DataSeries for _VWAP, but can use the plot series. If you replace "Default" under Properties in line 120 with "_VWAP", you can then delete the lines 90, 56 & 29 from bottom to top.

Thank you, FT.

My experience told me multiply times that holding data in Plots is completely unreliable.

BTW one of programming paradigm is that "any 100 lines of code contain at least one error", my code is not exception.

Thanked by:
 
 
Fat Tails's Avatar
 Fat Tails 
Berlin, Europe
Market Wizard
 
Experience: Advanced
Platform: NinjaTrader, MultiCharts
Broker: Interactive Brokers
Trading: Keyboard
Posts: 9,888 since Mar 2010
Thanks Given: 4,242
Thanks Received: 27,102


psmf View Post
Thank you, FT.

My experience told me multiply times that holding data in Plots is completely unreliable.

BTW one of programming paradigm is that "any 100 lines of code contain at least one error", my code is not exception.

The same applies to my own coding, which gradually evolves towards simplicity and fewer bugs.

 
ManuAdam
New Delhi
 
Posts: 9 since Aug 2011
Thanks Given: 1
Thanks Received: 2


psmf View Post
Thank you, FT.

My experience told me multiply times that holding data in Plots is completely unreliable.

BTW one of programming paradigm is that "any 100 lines of code contain at least one error", my code is not exception.

PSMF VWAP indicator is fast and works nicely. It would have been fantastic if PVP (Peak Volume Price) indicator is added with it. I would also request great master of futures.io (formerly BMT) forum Fattails to look at it. His ana series is simply fantastic!
Then NT user can also test the statistical experiment that went on traders lab forum sometimes back. According to that J.Perl's TRADING WITH MARKET STATISTICS threads: in normal situation if vwap>pvp then market has Long bias .. and it will be wrong to go short and vice versa. As such even without PVP indicator (which I feel is likely to be quite resource hungry), one can check that strategy by manually marking PVP line. However, ofc, with a fast PVP indicator it would be much better.

 
 
Fat Tails's Avatar
 Fat Tails 
Berlin, Europe
Market Wizard
 
Experience: Advanced
Platform: NinjaTrader, MultiCharts
Broker: Interactive Brokers
Trading: Keyboard
Posts: 9,888 since Mar 2010
Thanks Given: 4,242
Thanks Received: 27,102


ManuAdam View Post
PSMF VWAP indicator is fast and works nicely. It would have been fantastic if PVP (Peak Volume Price) indicator is added with it. I would also request great master of futures.io (formerly BMT) forum Fattails to look at it. His ana series is simply fantastic!
Then NT user can also test the statistical experiment that went on traders lab forum sometimes back. According to that J.Perl's TRADING WITH MARKET STATISTICS threads: in normal situation if vwap>pvp then market has Long bias .. and it will be wrong to go short and vice versa. As such even without PVP indicator (which I feel is likely to be quite resource hungry), one can check that strategy by manually marking PVP line. However, ofc, with a fast PVP indicator it would be much better.

At first sight I do not agree with the idea that the market has a long bias if VWAP > PVP. There are several different cases to be considered:

(1) Days with unimodal distributions

If the point of control (POC, same as PVP) is significantly smaller than the VWAP, this means that the distribution is non-Gaussian and skewed to the downside. The tail points to the upside. If at all, this points to a short and not long bias, as the tail indicates price rejection. But the relative position of today's compared to yesterday's price volume distribution also matters. It is not possible to setup a quick and easy rule.

(2) Double distribution days (bimodal distribution)

Such days have seen a sudden shift in the value area during the trading session. The VWAP typically is located inside the trough between the two volume peaks. The POC is the higher of the two peaks and will typically be confirmed during the afternoon session. If I apply the rule above, this would favour a tendency to mean reversion. Again this depends on the prior days, and I cannot see how such a simple rule may work.

(3) Trimodal distributions (rare occasions)

This would be even more complex to judge.

Thanked by:
 
 tflanner 
Chicago, IL
 
Experience: Advanced
Platform: Ninja
Broker: Ninja
Trading: ES, Ym, NQ, VTI, SPY, VXUS
Posts: 166 since Jan 2013
Thanks Given: 797
Thanks Received: 320


Fat Tails View Post
@psmf: Interesting, but inaccurate, in particular during the first hour. The orange one is yours, the green one is the good one.

But I admit that the accuracy of my VWAP can still be improved, just working on it. Also your formula for the variance is faster to calculate, I had just modified mine recently.

The problem is to find an adequate formula for the variance estimation. I will share my findings.


Hi Fat Tails-

I have noticed the inner band area of your VWAP is very similar to the Developing Value Area indicator. Do you use the Inner Band extremes as "value high and low".

thx

 
 
Fat Tails's Avatar
 Fat Tails 
Berlin, Europe
Market Wizard
 
Experience: Advanced
Platform: NinjaTrader, MultiCharts
Broker: Interactive Brokers
Trading: Keyboard
Posts: 9,888 since Mar 2010
Thanks Given: 4,242
Thanks Received: 27,102


tflanner View Post
Hi Fat Tails-

I have noticed the inner band area of your VWAP is very similar to the Developing Value Area indicator. Do you use the Inner Band extremes as "value high and low".

thx


Yes the inner bands can be used as value area high and low. I do use them that way and display the value area from the prior trading day on my chart.




However, the value area calculated from a VWAP can be quite different from the value area as used with market profile. Market profile builds its value area around the mode (point of control), while the value area of the VWAP is based on the mean (VWAP). On single distribution days the two value areas usually align well, but on double distribution days (or triple distribution days, which are pretty rare) the value areas can be quite different. The reason is shown below. The market profile value area is built around the mode (second peak), while the VWAP value area is built around the mean (trough).


 
 RickW00716 
Richmond Virginia
 
Experience: Intermediate
Platform: Ninja Trader
Trading: ES
Posts: 318 since Feb 2013
Thanks Given: 306
Thanks Received: 163


Fat Tails View Post
Yes the inner bands can be used as value area high and low. I do use them that way and display the value area from the prior trading day on my chart.




However, the value area calculated from a VWAP can be quite different from the value area as used with market profile. Market profile builds its value area around the mode (point of control), while the value area of the VWAP is based on the mean (VWAP). On single distribution days the two value areas usually align well, but on double distribution days (or triple distribution days, which are pretty rare) the value areas can be quite different. The reason is shown below. The market profile value area is built around the mode (second peak), while the VWAP value area is built around the mean (trough).


Do you give more importance to the VWAP value area or the market profile value area?

 
 
Fat Tails's Avatar
 Fat Tails 
Berlin, Europe
Market Wizard
 
Experience: Advanced
Platform: NinjaTrader, MultiCharts
Broker: Interactive Brokers
Trading: Keyboard
Posts: 9,888 since Mar 2010
Thanks Given: 4,242
Thanks Received: 27,102



RickW00716 View Post
Do you give more importance to the VWAP value area or the market profile value area?

Both can be used. The value area calculated from market profile is probably better known. I hope that somebody else answers the question, maybe my friend @tigertrader.

Thanked by:

 



Last Updated on February 28, 2018


© 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