NexusFi: Find Your Edge


Home Menu

 





VWAP bands


Discussion in NinjaTrader

Updated
      Top Posters
    1. looks_one Fat Tails with 44 posts (111 thanks)
    2. looks_two syxforex with 10 posts (6 thanks)
    3. looks_3 Big Mike with 8 posts (6 thanks)
    4. looks_4 forrestang with 8 posts (1 thanks)
      Best Posters
    1. looks_one gtichauer with 7 thanks per post
    2. looks_two Fat Tails with 2.5 thanks per post
    3. looks_3 Big Mike with 0.8 thanks per post
    4. looks_4 syxforex with 0.6 thanks per post
    1. trending_up 64,606 views
    2. thumb_up 153 thanks given
    3. group 33 followers
    1. forum 102 posts
    2. attach_file 49 attachments




 
Search this Thread

VWAP bands

  #11 (permalink)
 
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

If I compare the VWAP bands from the NinjaTrader forum to my own, I get strange results:

-> for some instruments they match very well (ES)
-> for other instruments they do not match at all (DX)

I think that the silver chart reveals the culprit.

See charts attached.

Any comment appreciated.

Attached Thumbnails
Click image for larger version

Name:	DX 06-11 (2 Min) 27_05_2011.jpg
Views:	401
Size:	129.4 KB
ID:	39560   Click image for larger version

Name:	ES 06-11 (2 Min) 27_05_2011.jpg
Views:	384
Size:	133.2 KB
ID:	39561   Click image for larger version

Name:	SI 07-11 (2 Min) 27_05_2011.jpg
Views:	394
Size:	141.2 KB
ID:	39562  
Reply With Quote
Thanked by:

Can you help answer these questions
from other members on NexusFi?
New Micros: Ultra 10-Year & Ultra T-Bond -- Live Now
Treasury Notes and Bonds
Better Renko Gaps
The Elite Circle
ZombieSqueeze
Platforms and Indicators
My NT8 Volume Profile Split by Asian/Euro/Open
NinjaTrader
NexusFi Journal Challenge - April 2024
Feedback and Announcements
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Get funded firms 2023/2024 - Any recommendations or word …
61 thanks
Funded Trader platforms
39 thanks
NexusFi site changelog and issues/problem reporting
26 thanks
Battlestations: Show us your trading desks!
26 thanks
The Program
18 thanks
  #12 (permalink)
 
LukeGeniol's Avatar
 LukeGeniol 
Italy (IT) Italy
 
Experience: Advanced
Platform: ATAS, R|Trader, NT8
Broker: Rithmic
Trading: CL, Brent, GC, TF
Frequency: Daily
Duration: Minutes
Posts: 1,499 since Apr 2010
Thanks Given: 408
Thanks Received: 985

This is Silver from SC:


Take your Pips, go out and Live.
Luke.
Reply With Quote
Thanked by:
  #13 (permalink)
 hegh 
paris
 
Experience: None
Platform: NinjaTrader
Posts: 60 since Oct 2009
Thanks Given: 1
Thanks Received: 54


hi,

Have you tried using other UTs than minutes to make the comparison, as Tick, Volume, Renko, ...

Attached Thumbnails
Click image for larger version

Name:	FESX 06-11 (50 Tick)  30_05_2011.jpg
Views:	273
Size:	66.9 KB
ID:	39575  
Reply With Quote
  #14 (permalink)
 
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


LukeGeniol View Post
This is Silver from SC:


@LukeGeniol: Thanks again for posting, the SierraChart version comes very close to my own version. I would say that this confirms that the VWAP bands that can be downloaded in the NinjaTrader forum are false.

If the Sierra Chart version is not 100% identical, this can be attributed to the input. Some charting packages use the Close, other the Typical or Weighted series as input price. I used the typical price.

Reply With Quote
  #15 (permalink)
 
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


hegh View Post
hi,

Have you tried using other UTs than minutes to make the comparison, as Tick, Volume, Renko, ...

Why should I test it for tick charts, if already the minute charts are false?

Reply With Quote
  #16 (permalink)
 hegh 
paris
 
Experience: None
Platform: NinjaTrader
Posts: 60 since Oct 2009
Thanks Given: 1
Thanks Received: 54

the VWAP (especially the bands) need time to be trained.
If you use a TU as minute early in the day (or even in the middle of the day) after a squeeze, only one bar long range may emerge bands as the recent volatility is too low. While on UTs other than minute, the volatility is progressive.

Reply With Quote
  #17 (permalink)
 
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


hegh View Post
the VWAP (especially the bands) need time to be trained.
If you use a TU as minute early in the day (or even in the middle of the day) after a squeeze, only one bar long range may emerge bands as the recent volatility is too low. While on UTs other than minute, the volatility is progressive.

I really do not understand what you mean. The volume weighted average price can be correctly approximated on any type of chart, provided that the resolution of the chart is high enough. If you take a 30 min chart, it is obvious that the values will be false for the first few bars, that can be well some hours into the session.

Otherwise it makes no difference whether you display the VWAP on a 1-minute chart, a 50-tick chart or whatsoever, if you keep the resolution high enough. VWAP and all bands will show up identical on all types of high resolution charts.

The VWAP is just a volume weighted average price, the bands are just calculated from the volume-weighted variance of all trades. If you calculate it correctly, you will always get the same result. It does not depend on the chart or bar types.

Attached my chart for Silver, which is near-identical with the Sierra Chart version. The slight differences can be explained by the session start time, my template uses 8:25 AM EST.

Attached Thumbnails
Click image for larger version

Name:	SI 07-11 (2 Min) 27_05_2011.jpg
Views:	304
Size:	104.4 KB
ID:	39577  
Reply With Quote
  #18 (permalink)
 
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


hegh View Post
the VWAP (especially the bands) need time to be trained.
If you use a TU as minute early in the day (or even in the middle of the day) after a squeeze, only one bar long range may emerge bands as the recent volatility is too low. While on UTs other than minute, the volatility is progressive.

Here come several tests of my VWAP indicator

Test 1: VWAP on 1 minute and 1000 tick chart

First of all, the visual appearance is very similar. Now if you look at the values in the end of the session:

VWAP: 1092.88 / 1092.88 ok
Upper Band 1: 1097.32 / 1097.31 ok
UpperBand 2 : 1101.75 / 1101.75 ok
UpperBand 3: 1106.18/ 1106.18 ok

For trading purposes they are identical.

Test 2: VWAP on 1 minute and 15 minute chart

VWAP: 1092.88 / 1093.47 -> 2 ticks off
Upper Band 1: 1097.32 / 1097.19 -> 1 tick off
UpperBand 2 : 1101.75 / 1100.91 -> 3 ticks off
UpperBand 3: 1106.18/ 1104.63 -> 6 ticks off

Now this becomes critical. The lower resolution data is not enough to plot the VWAP bands with an accuracy as needed for trading. While the error for the VWAP is 1 or 2 ticks, it may easily become 6 ticks for the outer bands. This makes the bands unusable on the 15 min chart.

What can be done about it?

All VWAPs should be only used on smaller timeframe charts. In my experience a 3 or 5 min chart is the minimum resolution required.

The best solution however will be to code a multi-time frame indicator, which calculates the VWAP from high resolution data such as 1 min bars. It is not necessary to increase resolution to tick level, as this would only slow down the indicator, while improving accuracy by another 1/10 of a tick.

Test 3: VWAP on 1 min and 50 tick chart

VWAP: 1092.88 / 1092.86 ok
Upper Band 1: 1097.32 / 1097.33 ok
UpperBand 2 : 1101.75 / 1101.79 ok
UpperBand 3: 1106.18/ 1106.26 ok

As the test shows, the 1-minute VWAP is accurate enough, it calculates about 50-100 times faster than the 50 tick VWAP.

Charts for the three tests attached.

Attached Thumbnails
Click image for larger version

Name:	ES 06-11 (1 Min) _ ES 06-11 (1000 Tick)  28_05_2010.jpg
Views:	319
Size:	152.6 KB
ID:	39594   Click image for larger version

Name:	ES 06-11 (1 Min) _ ES 06-11 (15 Min)  28_05_2010.jpg
Views:	284
Size:	134.0 KB
ID:	39595   Click image for larger version

Name:	ES 06-11 (1 Min) _ ES 06-11 (50 Tick)  28_05_2010.jpg
Views:	257
Size:	116.0 KB
ID:	39596  
Reply With Quote
  #19 (permalink)
 
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

I just tested both the forum VWAP and my indicator with triple bands. For testing purposes I put the indicator
on a 1 minute chart with a lookback period of 65 days.

Forum indicator: Result displayed after 35 seconds
New indicator (Variance_Distance mode) displayed after 30 seconds
New indicator (Variance_Close mode) displayed after 27 seconds

I think that all these indicators are too slow. You need to use them with high resolution data to get appropriate results, and the processing of the arrays or the DataSeries objects slows them down considerably.

So the next task will be to imprive the algorithm to allow for faster display. Once the algorithm is there, it can also be used for a multi-timeframe indicator.

Reply With Quote
  #20 (permalink)
 supermht 
Naperville IL
 
Experience: Intermediate
Platform: ninjatrader
Broker: NT broker
Trading: NQ ES 6E GC CL
Posts: 962 since Feb 2010
Thanks Given: 1,189
Thanks Received: 661


Good job, FT, when I open my indicator list, I can see "ana" everywhere....

Reply With Quote




Last Updated on March 6, 2012


© 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