Welcome to NexusFi: the best trading community on the planet, with over 150,000 members Sign Up Now for Free
Genuine reviews from real traders, not fake reviews from stealth vendors
Quality education from leading professional traders
We are a friendly, helpful, and positive community
We do not tolerate rude behavior, trolling, or vendors advertising in posts
We are here to help, just let us know what you need
You'll need to register in order to view the content of the threads and start contributing to our community. It's free for basic access, or support us by becoming an Elite Member -- see if you qualify for a discount below.
-- Big Mike, Site Administrator
(If you already have an account, login at the top of the page)
The last version of the VWAP was anaCurrentDayVWAPV32. It did not have bands. The version V33 will have the bands, that is the reason I am posting here. But the bands need to be correct and fast.
If you read this thread you are just participating in the creation of the new version.
I am using version 32 now, very powerful
I removed other MAs, it makes the chart clean and simple, especially for big picture.
looking forward to version 33
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.
Options
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.
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.
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 hVWAP from the Download section of BigMike's seems to produce an identicla output as the anaCurrentDayVWAPV33X1 in ETH / Variance_Last mode, although
-> it cannot adapt to various RTH session
-> it will not work in Varaince_Distance or Session_Range mode
But unlike the VWAP from the NinjaTrader forum it correctly calculates the bands.
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.