NexusFi: Find Your Edge


Home Menu

 





VWAP question


Discussion in NinjaTrader

Updated
    1. trending_up 4,543 views
    2. thumb_up 1 thanks given
    3. group 2 followers
    1. forum 3 posts
    2. attach_file 0 attachments




 
Search this Thread

VWAP question

  #1 (permalink)
 
Todd's Avatar
 Todd 
Alpharetta, GA
 
Experience: Intermediate
Platform: ninja
Broker: Mirus / Zenfire
Trading: ES
Posts: 234 since Jun 2009
Thanks Given: 28
Thanks Received: 40

In TradeStation, I've got a vwap (25) that paints blue when going and red when going down. However, when I try to set the same settings on the ninja double moving average, I get very different results.

Here is the code the TS VWAP on my TS chart.
{ VWAP MA }
input:
Price(AvgPrice),length(25),upColor(cyan),dnColor(red);
vars:
it(0);
it = VWAP_SMA(Price,length);
plot1(it,"VWAP MA");
if plot1 > plot1[1] then setplotcolor(1,upColor);
if plot1 < plot1[1] then setplotcolor(1,dnColor);

Can someone tell me how to get these results with the ninja double moving average?

See screenshot of my TS chart. The blue/red dotted line is the one I'm trying to re-create in ninja.
2009-06-15_1345

Thanks,
Todd

Started this thread Reply With Quote

Can you help answer these questions
from other members on NexusFi?
My NT8 Volume Profile Split by Asian/Euro/Open
NinjaTrader
Request for MACD with option to use different MAs for fa …
NinjaTrader
ZombieSqueeze
Platforms and Indicators
NexusFi Journal Challenge - April 2024
Feedback and Announcements
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Battlestations: Show us your trading desks!
57 thanks
Retail Trading As An Industry
54 thanks
NexusFi site changelog and issues/problem reporting
48 thanks
What percentage per day is possible? [Poll]
31 thanks
GFIs1 1 DAX trade per day journal
29 thanks

  #2 (permalink)
 
wh's Avatar
 wh 
Neubrandenburg, Germany
 
Experience: Advanced
Platform: R
Trading: Stocks
Posts: 538 since Jun 2009
Thanks Given: 298
Thanks Received: 512

i think the logic of plots between tradestation and nt is a little bit different.

what you can do:

create new indicator with some plots per example

main, up and down then use

main.Set(VWAP(Close,14).Line[0])
if(main[0] > main[1]) up.Set(main[0]); //or up.Set(VWAP(Close,14)[0]);
if(main[0] < main[1]) down.Set(main[0]); // ....

i do not look at the code of vwap, but this is what you can do.

Best regards
arne

Reply With Quote
The following user says Thank You to wh for this post:
  #3 (permalink)
 
Todd's Avatar
 Todd 
Alpharetta, GA
 
Experience: Intermediate
Platform: ninja
Broker: Mirus / Zenfire
Trading: ES
Posts: 234 since Jun 2009
Thanks Given: 28
Thanks Received: 40


Thanks, Arne... I'll take a look at that. Thanks for your help.

Started this thread Reply With Quote
  #4 (permalink)
stuart123
sydney
 
Posts: 7 since Mar 2010
Thanks Given: 0
Thanks Received: 0

did you end up figuring out the wvap for ninja. i would like to know your results

Reply With Quote





Last Updated on March 14, 2010


© 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