NexusFi: Find Your Edge


Home Menu

 





5min VWAP value for higher timeframe


Discussion in NinjaTrader

Updated
      Top Posters
    1. looks_one omaha786 with 2 posts (0 thanks)
    2. looks_two Silvester17 with 2 posts (0 thanks)
    3. looks_3 Big Mike with 1 posts (0 thanks)
    4. looks_4 trendisyourfriend with 1 posts (0 thanks)
    1. trending_up 2,598 views
    2. thumb_up 0 thanks given
    3. group 2 followers
    1. forum 7 posts
    2. attach_file 2 attachments




 
Search this Thread

5min VWAP value for higher timeframe

  #1 (permalink)
 Blackburn 
Malchow (Meckl.)
 
Experience: Intermediate
Platform: NinjaTrader, TWS
Trading: Stocks
Posts: 17 since Mar 2011
Thanks Given: 15
Thanks Received: 0

Hallo,

i want to implement the value of the 5min VWAP in my 30min strategy
i try this:

protected override void Initialize()
....
Add(PeriodType.Minute, 5);


protected override void OnBarUpdate()
....
if (BarsInProgress != 0)
return;

if (ToTime(Time[0]) >= 90000 && ToTime(Time[0]) <= 190000
&& Close [0] > VWAP().VWAPLine (BarsArray [1] ) [0]

I get an error. what am I doing wrong?

Blackburn

Started this thread Reply With Quote

Can you help answer these questions
from other members on NexusFi?
What broker to use for trading palladium futures
Commodities
Better Renko Gaps
The Elite Circle
ZombieSqueeze
Platforms and Indicators
Pivot Indicator like the old SwingTemp by Big Mike
NinjaTrader
MC PL editor upgrade
MultiCharts
 
  #3 (permalink)
 
trendisyourfriend's Avatar
 trendisyourfriend 
Quebec Canada
Market Wizard
 
Experience: Intermediate
Platform: NinjaTrader
Broker: AMP/CQG
Trading: ES, NQ, YM
Frequency: Daily
Duration: Minutes
Posts: 4,527 since Oct 2009
Thanks Given: 4,176
Thanks Received: 6,020


I do not knwo anything to Ninja lingo but i know the number of parenthesis should match and in your case it does not so i'd investigate that possibility.

Reply With Quote
  #4 (permalink)
 
Big Mike's Avatar
 Big Mike 
Manta, Ecuador
Site Administrator
Developer
Swing Trader
 
Experience: Advanced
Platform: Custom solution
Broker: IBKR
Trading: Stocks & Futures
Frequency: Every few days
Duration: Weeks
Posts: 50,463 since Jun 2009
Thanks Given: 33,236
Thanks Received: 101,661


Blackburn View Post
I get an error. what am I doing wrong?

Helpful if you would post the exact error message.

Mike

We're here to help: just ask the community or contact our Help Desk

Quick Links: Change your Username or Register as a Vendor
Searching for trading reviews? Review this list
Lifetime Elite Membership: Sign-up for only $149 USD
Exclusive money saving offers from our Site Sponsors: Browse Offers
Report problems with the site: Using the NexusFi changelog thread
Follow me on Twitter Visit my NexusFi Trade Journal Reply With Quote
  #5 (permalink)
 omaha786 
San Diego, California
 
Experience: Intermediate
Platform: Sierra Chart
Broker: IB, OEC, Optimus, DDT
Trading: ES, ZN
Posts: 221 since Jun 2010
Thanks Given: 512
Thanks Received: 158

Is vwap supposed to be time frame independent?

Visit my NexusFi Trade Journal Reply With Quote
  #6 (permalink)
 
Silvester17's Avatar
 Silvester17 
Columbus, OH
Market Wizard
 
Experience: None
Platform: NT 8, TOS
Trading: ES
Posts: 3,603 since Aug 2009
Thanks Given: 5,139
Thanks Received: 11,527


omaha786 View Post
Is vwap supposed to be time frame independent?

do you mean the same value, but different time frames?

yes vwap is always the same, doesn't matter if 1 min, 10 min, tick, range etc.

Attached Thumbnails
Click image for larger version

Name:	ES 12-11 (1 Min) _ ES 12-11 (10 Min) _ ES 12-11 (4 Range)  10_5_2011.jpg
Views:	200
Size:	101.7 KB
ID:	51032  
Reply With Quote
  #7 (permalink)
 omaha786 
San Diego, California
 
Experience: Intermediate
Platform: Sierra Chart
Broker: IB, OEC, Optimus, DDT
Trading: ES, ZN
Posts: 221 since Jun 2010
Thanks Given: 512
Thanks Received: 158


Silvester17 View Post
do you mean the same value, but different time frames?

yes vwap is always the same, doesn't matter if 1 min, 10 min, tick, range etc.

Yes, that's what I mean. The vwap in your chart seems to be just an approximation. Try 30 min or 60 min chart.

Visit my NexusFi Trade Journal Reply With Quote
  #8 (permalink)
 
Silvester17's Avatar
 Silvester17 
Columbus, OH
Market Wizard
 
Experience: None
Platform: NT 8, TOS
Trading: ES
Posts: 3,603 since Aug 2009
Thanks Given: 5,139
Thanks Received: 11,527


omaha786 View Post
Yes, that's what I mean. The vwap in your chart seems to be just an approximation. Try 30 min or 60 min chart.

here's 1 min, 30 min and 60 min

still same value. or at least it better be.

Attached Thumbnails
Click image for larger version

Name:	ES 12-11 (1 Min) _ ES 12-11 (30 Min) _ ES 12-11 (60 Min)  10_5_2011.jpg
Views:	202
Size:	88.0 KB
ID:	51038  
Reply With Quote




Last Updated on October 5, 2011


© 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