VWAP bands - NinjaTrader | futures io social day trading
futures io futures trading


VWAP bands
Updated: Views / Replies:37,419 / 102
Created: by crazybears Attachments:43

Welcome to futures io.

(If you already have an account, login at the top of the page)

futures io is the largest futures trading community on the planet, with over 90,000 members. At futures io, our goal has always been and always will be to create a friendly, positive, forward-thinking community where members can openly share and discuss everything the world of trading has to offer. The community is one of the friendliest you will find on any subject, with members going out of their way to help others. Some of the primary differences between futures io and other trading sites revolve around the standards of our community. Those standards include a code of conduct for our members, as well as extremely high standards that govern which partners we do business with, and which products or services we recommend to our members.

At futures io, our focus is on quality education. No hype, gimmicks, or secret sauce. The truth is: trading is hard. To succeed, you need to surround yourself with the right support system, educational content, and trading mentors Ė all of which you can find on futures io, utilizing our social trading environment.

With futures io, you can find honest trading reviews on brokers, trading rooms, indicator packages, trading strategies, and much more. Our trading review process is highly moderated to ensure that only genuine users are allowed, so you donít need to worry about fake reviews.

We are fundamentally different than most other trading sites:
  • We are here to help. Just let us know what you need.
  • We work extremely hard to keep things positive in our community.
  • We do not tolerate rude behavior, trolling, or vendors advertising in posts.
  • We firmly believe in and encourage sharing. The holy grail is within you, we can help you find it.
  • We expect our members to participate and become a part of the community. Help yourself by helping others.

You'll need to register in order to view the content of the threads and start contributing to our community.  It's free and simple.

-- Big Mike, Site Administrator

Reply
 43  
 
Thread Tools Search this Thread
 

VWAP bands

  #51 (permalink)
Elite Member
Berlin, Europe
 
Futures Experience: Advanced
Platform: NinjaTrader, MultiCharts
Broker/Data: Interactive Brokers
Favorite Futures: Keyboard
 
Fat Tails's Avatar
 
Posts: 9,653 since Mar 2010
Thanks: 4,226 given, 25,601 received
Forum Reputation: Legendary


forrestang View Post
Do you mean like this:

 
Code
#region Using declarations
using System;
using System.Diagnostics;
using System.ComponentModel;
using System.Collections;
using System.Diagnostics;
using System.Drawing;
using System.Drawing.Drawing2D;
using System.Xml.Serialization;
using NinjaTrader.Cbi;
using NinjaTrader.Data;
using NinjaTrader.Gui.Chart;
#endregion

#region Global Enums

public enum anaSessionTypeVWAP33 {ETH, RTH, RTH_Multi}
public enum anaSessionCountVWAP33 {First, Second, Third, Hybrid}
public enum anaBandTypeVWAP33 {Variance_Distance, Variance_Last, Session_Range, None} 

#endregion
I am still getting quite a few errors. Have you called for these values in this study from another place before?

You do not need to recode the enums, but as they are enums, you need to call them this way:

 
Code
if(anaCurrentDayVWAPV33(Input, anaBandTypeVWAP33.Variance_Distance, anaSessionTypeVWAP33.ETH,         
1.0, 2.0, 3.0,  anaSessionCountVWAP33.Hybrid).UpperBand3.Contains  Value(0))             
         udSd3[0] = anaCurrentDayVWAPV33 (Input, anaBandTypeVWAP33.Variance_Distance,
         anaSessionTypeVWAP33.ETH, 1.0, 2.0, 3.0,  anaSessionCountVWAP33.Hybrid).UpperBand3[0];


Last edited by Fat Tails; July 24th, 2011 at 09:27 PM.
Reply With Quote
 
  #52 (permalink)
Urban Samurai
Chicago IL
 
Futures Experience: Intermediate
Platform: Ninja, MT4,TOS, SC, Matlab
Broker/Data: CQG, AMP, MB, DTN
Favorite Futures: E/U, G/U
 
forrestang's Avatar
 
Posts: 1,039 since Jun 2010
Thanks: 226 given, 688 received

I'm not sure what you mean? I have that particular line you named in my script. I'm not sure what I need to do to reference your study?

Attached Files
Register to download File Type: cs FPJPStudy.cs (7.2 KB, 28 views)
Reply With Quote
 
  #53 (permalink)
Urban Samurai
Chicago IL
 
Futures Experience: Intermediate
Platform: Ninja, MT4,TOS, SC, Matlab
Broker/Data: CQG, AMP, MB, DTN
Favorite Futures: E/U, G/U
 
forrestang's Avatar
 
Posts: 1,039 since Jun 2010
Thanks: 226 given, 688 received


I got it. There were some erroneous 'D' s in there, I highlighted one or two of them.

 
Code
if(anaCurrentDayVWAPV33(Input, anaBandTypeVWAPD33.Variance_Distance, anaSessionTypeVWAPD33.ETH,1.0, 2.0, 3.0,  anaSessionCountVWAPD33.Hybrid).UpperBand3.Contains  Value(0))             
         udSd3[0] = anaCurrentDayVWAPV33 (Input, anaBandTypeVWAPD33.Variance_Distance,  anaSessionTypeVWAP[COLOR="rgb(255, 140, 0)"]D[/COLOR]33.ETH, 1.0, 2.0, 3.0,  anaSessionCountVWAPD33.Hybrid).UpperBand3[0];
Still in the first line, where the 'if' is, that is causing a parsing error for some reason. I.e. if I make the changes to those erroneous Ds, and comment out the 'if' statement, it will reference that value correctly.

Reply With Quote
 
  #54 (permalink)
Elite Member
Berlin, Europe
 
Futures Experience: Advanced
Platform: NinjaTrader, MultiCharts
Broker/Data: Interactive Brokers
Favorite Futures: Keyboard
 
Fat Tails's Avatar
 
Posts: 9,653 since Mar 2010
Thanks: 4,226 given, 25,601 received
Forum Reputation: Legendary


forrestang View Post
I got it. There were some erroneous 'D' s in there, I highlighted one or two of them.

 
Code
if(anaCurrentDayVWAPV33(Input, anaBandTypeVWAPD33.Variance_Distance, anaSessionTypeVWAPD33.ETH,1.0, 2.0, 3.0,  anaSessionCountVWAPD33.Hybrid).UpperBand3.Contains  Value(0))             
         udSd3[0] = anaCurrentDayVWAPV33 (Input, anaBandTypeVWAPD33.Variance_Distance,  anaSessionTypeVWAP[COLOR="rgb(255, 140, 0)"]D[/COLOR]33.ETH, 1.0, 2.0, 3.0,  anaSessionCountVWAPD33.Hybrid).UpperBand3[0];
Still in the first line, where the 'if' is, that is causing a parsing error for some reason. I.e. if I make the changes to those erroneous Ds, and comment out the 'if' statement, it will reference that value correctly.

The "ContainsValue" must be one word. It has been cut into 2 pieces by the forum software, I cannot even change it.

Yes, you are right for the "Ds". Reason is that I do not have the VWAP33 installed anymore, as I am running a newer version. With V35 I had introduced the PD for the daily VWAP, as I needed to differentiate it from the weekly VWAP which has a PW in its enums. It is not possible to use identical enums for several indicators. Each indicator needs to have a different enum, because otherwise they interfere and produce compiler errors.

Have not had the time to make all the required updates in the download section of the forum. I have simply posted too many indicators to catch up.

Reply With Quote
The following 3 users say Thank You to Fat Tails for this post:
 
  #55 (permalink)
Urban Samurai
Chicago IL
 
Futures Experience: Intermediate
Platform: Ninja, MT4,TOS, SC, Matlab
Broker/Data: CQG, AMP, MB, DTN
Favorite Futures: E/U, G/U
 
forrestang's Avatar
 
Posts: 1,039 since Jun 2010
Thanks: 226 given, 688 received

@Fat Tails
Do you have any studies that have a POC in them? I need to find a study that has a POC I can reference, and the one I have (CalculateDevelopingValueArea) of course I'm having trouble referencing that value.

I need one that leaves a ghost image of where it was, similar to the picture I have attached.

Attached Thumbnails
VWAP bands-poc.png  
Reply With Quote
 
  #56 (permalink)
Site Administrator
Manta, Ecuador
 
Futures Experience: Advanced
Platform: My own custom solution
Favorite Futures: E-mini ES S&P 500
 
Big Mike's Avatar
 
Posts: 46,240 since Jun 2009
Thanks: 29,352 given, 83,231 received


josh View Post
A poster by the name of jperl over at TL posted a series of threads entitled "Trading With Market Statistics" .. google it and you will find tons of info on trading with vwap and SD bands.

You are free to link to other forums directly. This isn't TL or T2W after all...

But where possible, why not create the discussion here on futures.io (formerly BMT) as well if you found it to be a useful topic?

Mike

Due to time constraints, please do not PM me if your question can be resolved or answered on the forum.

Need help?
1) Stop changing things. No new indicators, charts, or methods. Be consistent with what is in front of you first.
2) Start a journal and post to it daily with the trades you made to show your strengths and weaknesses.
3) Set goals for yourself to reach daily. Make them about how you trade, not how much money you make.
4) Accept responsibility for your actions. Stop looking elsewhere to explain away poor performance.
5) Where to start as a trader? Watch this webinar and read this thread for hundreds of questions and answers.
6)
Help using the forum? Watch this video to learn general tips on using the site.

If you want
to support our community, become an Elite Member.

Reply With Quote
 
  #57 (permalink)
Urban Samurai
Chicago IL
 
Futures Experience: Intermediate
Platform: Ninja, MT4,TOS, SC, Matlab
Broker/Data: CQG, AMP, MB, DTN
Favorite Futures: E/U, G/U
 
forrestang's Avatar
 
Posts: 1,039 since Jun 2010
Thanks: 226 given, 688 received


forrestang View Post
@Fat Tails
Do you have any studies that have a POC in them? I need to find a study that has a POC I can reference, and the one I have (CalculateDevelopingValueArea) of course I'm having trouble referencing that value.

I need one that leaves a ghost image of where it was, similar to the picture I have attached.

@Fat Tails
I managed to reference that value from the study I was using. So no worries, thanks bud!

Reply With Quote
The following user says Thank You to forrestang for this post:
 
  #58 (permalink)
Elite Member
Berlin, Europe
 
Futures Experience: Advanced
Platform: NinjaTrader, MultiCharts
Broker/Data: Interactive Brokers
Favorite Futures: Keyboard
 
Fat Tails's Avatar
 
Posts: 9,653 since Mar 2010
Thanks: 4,226 given, 25,601 received
Forum Reputation: Legendary


forrestang View Post
@Fat Tails
Do you have any studies that have a POC in them? I need to find a study that has a POC I can reference, and the one I have (CalculateDevelopingValueArea) of course I'm having trouble referencing that value.

I need one that leaves a ghost image of where it was, similar to the picture I have attached.

Just send me your indie, and I will tell you how to reference it - or is it compiled?

Reply With Quote
 
  #59 (permalink)
Membership Revoked
British Columbia
 
Futures Experience: Advanced
Platform: NINJA
Broker/Data: ZEN
Favorite Futures: Crude
 
Posts: 1,091 since May 2010
Thanks: 192 given, 484 received

Hey FatTails, do you have a multisession VWAP?



Fat Tails View Post
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.


Reply With Quote
 
  #60 (permalink)
Elite Member
Berlin, Europe
 
Futures Experience: Advanced
Platform: NinjaTrader, MultiCharts
Broker/Data: Interactive Brokers
Favorite Futures: Keyboard
 
Fat Tails's Avatar
 
Posts: 9,653 since Mar 2010
Thanks: 4,226 given, 25,601 received
Forum Reputation: Legendary



syxforex View Post
Hey FatTails, do you have a multisession VWAP?

The question is what you call a multi-session VWAP.

The standard VWAP in the downloads allows you to select between three modes: ETH, RTH and RTH_Multi.

Let us take for example CL and assume that you have divided the day into three sessions: the night session (6:00 PM to 9:00 AM), the RTH session (9:00 AM to 2:30 PM) and the after session (2:30 PM to 5:00 PM). This is possible:

ETH: VWAP will be calculated for the entire trading day.
RTH 1: VWAP will only be calculated for the night session (first segment).
RTH 2: VWAP will only be calculated for the RTH session (second segment).
RTH-Multi 2: VWAP will be calculated for the RTH session (second segment) calculation will be continued into the after-session (third segment).

If you are talking about a weekly VWAP with standard deviation bands, I think I have it somewhere, but I still need to rework that one a little bit.

I also think I have done a version that compares 1-day VWAP (average price of the current day) with a 2-day VWAP (average price over a 2-day-period) and a 3-day VWAP. But that one is still experimental.

I also plan to code a multi- timeframe VWAP, as the accuracy is not yet good on longer period (> 10 min ) charts. VWAP is a typical example, where the resolution matters:

-> on small period tick charts it will possibly never stop calculating and exhaust your CPU
-> on large period charts it will be inaccurate

So in the two cases it is better to load a 1-minute series and use it to calculate the VWAP. This will solve both the CPU and accuracy problems.

But what do you look for?


Last edited by Fat Tails; July 26th, 2011 at 05:28 PM. Reason: I have seen it...
Reply With Quote

Reply



futures io > > > > VWAP bands

Thread Tools Search this Thread
Search this Thread:

Advanced Search



Upcoming Webinars and Events (4:30PM ET unless noted)

Jigsaw Trading: TBA

Elite only

FuturesTrader71: TBA

Elite only

NinjaTrader: TBA

Jan 18

RandBots: TBA

Jan 23

GFF Brokers & CME Group: Futures & Bitcoin

Elite only

Adam Grimes: TBA

Elite only

Ran Aroussi: TBA

Elite only
     

Similar Threads
Thread Thread Starter Forum Replies Last Post
Acceleration Bands DarrenH NinjaTrader 12 March 31st, 2016 07:20 AM
DOM bands indicator GoldStandard NinjaTrader 32 March 15th, 2016 09:24 PM
IB Range Bands fesx NinjaTrader Programming 48 March 5th, 2014 09:31 PM
Keltner Bands indicator cory The Elite Circle 21 November 15th, 2012 04:31 PM
Bollinger Bands MWinfrey Traders Hideout 8 February 8th, 2011 08:02 AM


All times are GMT -4. The time now is 01:15 PM.

Copyright © 2017 by futures io, s.a., Av Ricardo J. Alfaro, Century Tower, Panama, +507 833-9432, info@futures.io
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.
no new posts
Page generated 2017-12-14 in 0.17 seconds with 20 queries on phoenix via your IP 54.234.255.29