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,703 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

  #41 (permalink)
 wireford 
Chicago, Illinois
 
Experience: Intermediate
Platform: NinjaTrader
Broker: AMP/ZENFIRE
Trading: 6E
Posts: 134 since Mar 2011
Thanks Given: 431
Thanks Received: 68

FT-

Thanks once again for a remarkable indicator. I am comfortable with just the VWAP but would love to know how to use bands in trading. I realize that they are deviations like BB bands. So should they act as support and resistance? Or judging the strength of a trend?
Help or direction to a thread from anyone would be appreciated as FT spends 38 hours per day developing indicators for knuckleads such as myself.

Thanks in advance.

Reply With Quote

Can you help answer these questions
from other members on NexusFi?
Deepmoney LLM
Elite Quantitative GenAI/LLM
Build trailing stop for micro index(s)
Psychology and Money Management
My NT8 Volume Profile Split by Asian/Euro/Open
NinjaTrader
NexusFi Journal Challenge - April 2024
Feedback and Announcements
Ninja Mobile Trader VPS (ninjamobiletrader.com)
Trading Reviews and Vendors
 
  #42 (permalink)
 
redratsal's Avatar
 redratsal 
Milan (I)
 
Experience: Advanced
Platform: Ninjatrader
Broker: Kinetick
Trading: FDAX,6E,CL,YM,NQ,ES
Posts: 1,648 since Oct 2010
Thanks Given: 1,215
Thanks Received: 2,090


wireford View Post
FT-

Thanks once again for a remarkable indicator. I am comfortable with just the VWAP but would love to know how to use bands in trading. I realize that they are deviations like BB bands. So should they act as support and resistance? Or judging the strength of a trend?
Help or direction to a thread from anyone would be appreciated as FT spends 38 hours per day developing indicators for knuckleads such as myself.

Thanks in advance.

Vwap is used to identify liquidity points. As a volume-weighted price measure, VWAP reflects price levels weighted by volume. This can help institutions with large orders. The idea is not to disrupt the market when entering large buy or sell orders. VWAP helps these institutions determine the liquid and illiquid price points for a specific security over a very short time period.

VWAP can also be used to measure trading efficiency. After buying or selling a security, institutions or individuals can compare their price to VWAP values. A buy order executed below the VWAP value would be considered a good fill because the security was bought at a below average price. Conversely, a sell order executed above the VWAP would be deemed a good fill because it was sold at an above average price.


The bands help you to identify how far is price compared to the vwap and act accordingly, I use them in my everyday trading, you can find some examples here

Visit my NexusFi Trade Journal Reply With Quote
  #43 (permalink)
 
josh's Avatar
 josh 
Georgia, US
Legendary Market Wizard
 
Experience: None
Platform: SC
Broker: Denali+Rithmic
Trading: ES, NQ, YM
Posts: 6,216 since Jan 2011
Thanks Given: 6,752
Thanks Received: 18,136



wireford View Post
FT-

Thanks once again for a remarkable indicator. I am comfortable with just the VWAP but would love to know how to use bands in trading. I realize that they are deviations like BB bands. So should they act as support and resistance? Or judging the strength of a trend?
Help or direction to a thread from anyone would be appreciated as FT spends 38 hours per day developing indicators for knuckleads such as myself.

Thanks in advance.

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.

Reply With Quote
  #44 (permalink)
 
forrestang's Avatar
 forrestang 
Chicago IL
 
Experience: None
Platform: Ninja, MT4, Matlab
Broker: CQG, AMP, MB, DTN
Trading: E/U, G/U
Posts: 1,329 since Jun 2010
Thanks Given: 354
Thanks Received: 1,047

@Fat Tails

If I want to reference a value from your study, would I do it like shown in the picture?

I'll make those inputs I'm trying to pass to it as user inputs on my study, but for now, how would I change this to just put the values directly into that line of code I have?

Attached Thumbnails
Click image for larger version

Name:	Prime2011-07-24_130647.png
Views:	238
Size:	8.2 KB
ID:	44364  
Reply With Quote
  #45 (permalink)
 
forrestang's Avatar
 forrestang 
Chicago IL
 
Experience: None
Platform: Ninja, MT4, Matlab
Broker: CQG, AMP, MB, DTN
Trading: E/U, G/U
Posts: 1,329 since Jun 2010
Thanks Given: 354
Thanks Received: 1,047


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.

That's the thread my friend that I am writing some aids for bases his trading on. He sent me a cliff notes version of the info he compiled from that thread for me to reference while I'm writing the script.

Reply With Quote
  #46 (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


forrestang View Post
@ Fat Tails

If I want to reference a value from your study, would I do it like shown in the picture?

I'll make those inputs I'm trying to pass to it as user inputs on my study, but for now, how would I change this to just put the values directly into that line of code I have?

The correct way to reference would be

 
Code
udSd3[0] = anaCurrentDayVWAPV33 (Input, anaBandTypeVWAP33.Variance_Distance, 
       anaSessionTypeVWAP33.ETH, 1.0, 2.0, 3.0,  anaSessionCountVWAP33.Hybrid).UpperBand3[0];
so you need to add "[0]" in the end, if you want to retrieve the current value, because it is a DataSeries object. If you call UpperBand3, that is the third band which is 3 standard deviations above the VWAP. The VWAP itself can be called via SessionVWAP.

Just a note on the parameters:

-> Input: The VWAP itself is calculated from the Typical Price. The input only affects the calculation of the standard deviation bands.
-> Vairance_Distance: Calculation mode. I recommend Variance_Distance.
-> ETH: Will use the data from the entire trading day, as defined by the session template of the bar series used.
-> 1,2,3 : multipliers for the standard deviation bands, 3 indicates that UpperBand3 uses a factor 3.
-> Hybrid: This settings is only relevant for RTH, it means that the indicator identifies the second intraday session of the trading day as RTH session, with the exception of currency futures and FOREX, where it will select the third intraday session. This requires the use of appropriate session templates. As long as you use ETH this has no meaning.

The indicator will not return any value for (CurrentBar = = 0), and will not calculate the VWAP for the first session to avoid that the reference period is incomplete. So best check for values before accessing the indicator:

 
Code
if(anaCurrentDayVWAPV33(Input, anaBandTypeVWAP33.Variance_Distance, anaSessionTypeVWAP33.ETH,
        1.0, 2.0, 3.0,  anaSessionCountVWAP33.Hybrid).UpperBand3.ContainsValue(0))
            udSd3[0] = anaCurrentDayVWAPV33 (Input, anaBandTypeVWAP33.Variance_Distance, 
            anaSessionTypeVWAP33.ETH, 1.0, 2.0, 3.0,  anaSessionCountVWAP33.Hybrid).UpperBand3[0];
This is recommended for all complex or third party indicators.

Reply With Quote
Thanked by:
  #47 (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


forrestang View Post
That's the thread my friend that I am writing some aids for bases his trading on. He sent me a cliff notes version of the info he compiled from that thread for me to reference while I'm writing the script.

It looks as if market profile takes its volume from the RTH session. In that case you would want to call the VWAP as RTH as well. I would not use the Hybrid setting, but rather call the First, the Second or the Third session of the trading day directly, depending on your instrument and session template.

Reply With Quote
  #48 (permalink)
 
forrestang's Avatar
 forrestang 
Chicago IL
 
Experience: None
Platform: Ninja, MT4, Matlab
Broker: CQG, AMP, MB, DTN
Trading: E/U, G/U
Posts: 1,329 since Jun 2010
Thanks Given: 354
Thanks Received: 1,047

I still get the same error I got before. These are all the same type of error btw.

Attached Thumbnails
Click image for larger version

Name:	Prime2011-07-24_142254.png
Views:	235
Size:	30.2 KB
ID:	44369  
Reply With Quote
  #49 (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


forrestang View Post
I still get the same error I got before. These are all the same type of error btw.

I have cheated a bit and corrected my previous post. The indicator is called anaCurrentVWAPV33 -> note the V33 in the end. The enums need to be called in full length including the enum type. Then it should work.

Reply With Quote
  #50 (permalink)
 
forrestang's Avatar
 forrestang 
Chicago IL
 
Experience: None
Platform: Ninja, MT4, Matlab
Broker: CQG, AMP, MB, DTN
Trading: E/U, G/U
Posts: 1,329 since Jun 2010
Thanks Given: 354
Thanks Received: 1,047



Fat Tails View Post
The enums need to be called in full length including the enum type. Then it should work.

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?

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