NexusFi: Find Your Edge


Home Menu

 





5min VWAP value for higher timeframe


Discussion in NinjaTrader

Updated
      Top Posters
    1. looks_one Silvester17 with 2 posts (0 thanks)
    2. looks_two omaha786 with 2 posts (0 thanks)
    3. looks_3 Quick Summary with 1 posts (0 thanks)
    4. looks_4 Blackburn with 1 posts (0 thanks)
    1. trending_up 3,785 views
    2. thumb_up 0 thanks given
    3. group 2 followers
    1. forum 7 posts
    2. attach_file 2 attachments




 
Search this Thread
  #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?
CME Group CEO Calls CFTC-Approved Crypto Perps Dangerous …
Traders Hideout
Thursday May 28: GDP + Core PCE + Jobless Claims All at …
Traders Hideout
Roland Garros Final Day: $3M on Zverev at 80.5% -- Leban …
Prediction Markets & Event Contracts
CFTC Approves First US Bitcoin Perpetual Futures -- Kals …
Traders Hideout
GDP Day: The First Economic Reckoning -- Pahlavi at 6.55 …
Prediction Markets & Event Contracts
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
NexusFi site changelog and issues/problem reporting
8 thanks
Darmok and Jalad at Tanagra
3 thanks
  #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,581 since Oct 2009
Thanks Given: 4,267
Thanks Received: 6,208


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,669 since Jun 2009
Thanks Given: 33,669
Thanks Received: 102,577


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 X 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
Legendary Market Wizard
 
Experience: None
Platform: NT 8, TOS
Trading: ES
Posts: 3,603 since Aug 2009
Thanks Given: 5,139
Thanks Received: 11,531


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:	328
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
Legendary Market Wizard
 
Experience: None
Platform: NT 8, TOS
Trading: ES
Posts: 3,603 since Aug 2009
Thanks Given: 5,139
Thanks Received: 11,531


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:	299
Size:	88.0 KB
ID:	51038  
Reply With Quote




Last Updated on October 5, 2011


© 2026 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 - Downloads - Top
no new posts