So finally, I have finished a test version of the VWAP + bands indicator. It was a real headache.
I have found three ways to define volatility bands around the VWAP.
(1) Use the variance based on the distance of price from the corresponding value of the VWAP
Please not that this is not the way Bollinger Bands work. Typically you measure the distance of price from the last data point of the average not from the corresponding value. This method will generate narrower bands than the orthodox way, particularly on trending days.
(2) Use the variance based on the distance of price from the current (last) value of the VWAP
These bands are more like Bollinger Bands and will be wider on trending days.
(3) Replace the standard deviation with the quarter range of the current session as it develops.
The indicator allows you to choose between the three options. (1) is the default option and will possibly get you the best results. Also I managed to find an algorithm for (1) which is 15 times faster than the original one, so it is easy to use the indicator on small period tick charts now.
I have then added an option for coloring the band areas. This slows down the indicator loading time. If you want to use the indicator on high resolution charts, please set 'Opacity = 0'. The indicator will then work faster, but the ranges between the VWAP bands will not be colored.
SessionType ETH: The VWAP is calculated for the full trading day.
SessionType RTH: The VWAP is calculated for the selected RTH session, After the close of that session the values will further be displayed, if the following session(s) still belong to the same trading day. However, the values will no more be updated.
SessionType RTH-Multi: Same as RTH, but the values will be updated. You can use this setting for displaying a VWAP over the second and third intraday session of the trading day.
BandType Variance_Distance: The default setting for BandType is Variance_Distance. In this case the indicator will draw the bands by calculating multiples as selected of the standard deviation of price relative to the corresponding value of the VWAP.
BandType Variance_Last: In this case the indicator will determine the bands by calculating multiples as selected of the standard deviation of price relative to the current (last) value of the VWAP.
BandType Session_Range: If this option is selected, the offset of the bands from the VWAP is calculated as a multiple of the quarter range. The quarter range is 1/4 of the current's session range, session as selected for the VWAP.
Multipliers: For each of the bands the multipliers can be selected. Default values are 1,2 and 3, so the indicator will display
-> 1, 2 and 3 standard deviation bands in Variance mode
-> 1, 2 and 3 times the quarter range as measured from the VWAP in SessionRange mode
Hybrid: This is my personal setting, which selects the 3rd RTH session for FOREX and all currencies, but the second RTH session for all other instruments. You do not need to use it.
Holiday Settings: As usual the indicator will recognize special holiday rules for CME, so if there is no bug it should display a single session for Memorial Day and the next session.
As the indicator is quite complex, please do expect minor bugs. That is the reason that it is posted here and not in the Download Section of the forum. In particular, I still want to check the bahavior for holiday sessions.
The following 15 users say Thank You to Fat Tails for this post:
This thread started as an Investor/RT / MarketDelta question, but Fat Tails is posting NinjaTrader code now so I decided to move it to the NinjaTrader forum
When creating a new thread, note which subforum you are in. Here is a short list of suggestions:
- Topic: Anything to do with an Elite indicator -> Subforum: The Elite Circle
- Topic: Looking for an existing indicator, or how-to use an indicator -> Subforum: (the platform)
- Topic: Programmer needing help with non-Elite indicator -> Subforum: (the platform) - Programming
- Topic: Want an indicator created/modified -> Reply to "Want indicator created free" in Elite Circle
- Topic: Vendors (trading rooms, commercial indicators) -> Subforum: Vendors/Product Reviews
- Topic: Discussion of Forex or Currency trading -> Subforum: Forex and Currency Trading
- Topic: Journals of your trading -> Subforum: Trading Journals or Elite Trading Journals
- Topic: General trading related discussions -> Subforum: Traders Hideout
- Topic: Discussion of a trading method -> Subforum: Traders Hideout
- Topic: Automated Trading -> Subforum: Elite Automated Trading
Last, any Elite Member may create more or less any of these topics in The Elite Circle at your own discretion (your support is appreciated).
This is just a short general list and doesn't cover everything. If you are unsure where to create your new thread, just create it in Traders Hideout and a moderator will move it if necessary.
-- Big Mike Trading
Want my help or input? 1) Please don't PM me, instead make a post on the forum. 2) In your post, mention me by typing @Big Mike.
If you want to support our community, become an Elite Member.
Sorry, was just exploring the different VWAP bands, and as I could not resist, I coded them. I don't use Inverstor R/T or MarketDelta, but I used the information I got from there.
As I have now coded possible implementations of VWAP bands, it is now possible to compare other screenshots to what I have coded. the Sierra Chart implementation is similar so should be ok. If somebody posts a MarketDelta chart now, I should be able to tell, whether the indicator correctly works or not.
The following 3 users say Thank You to Fat Tails for this post:
Have again checked the Sierra Chart version. It looks like my version in Variance_Distance mode. This means that it is probably calculated by comparing price to the corresponding VWAP, not the terminal VWAP. This is what I consider the best method
-> as it gets the wanted results
-> as it calculates faster than the other method
It is also the default method of my indicator. I further assume that SierraChart uses the typical price to calculate the VWAP, the experimental versions still use the close, but I will probably switch to the Typical as well.
Silver Chart with VWAP Bands in Variance_Distance mode and Typical price attached. I cannot find any difference with the SierraChart VWAP, except for the bars, which are different as I started the session at 8:25.
Please register to view the post attachment(s), image(s), or screenshot(s) - it's simple and free.