NexusFi: Find Your Edge


Home Menu

 





VWAP question


Discussion in NinjaTrader

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




 
Search this Thread
  #1 (permalink)
 
Todd's Avatar
 Todd 
Alpharetta, GA
 
Experience: Intermediate
Platform: ninja
Broker: Mirus / Zenfire
Trading: ES
Posts: 232 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?
SEC Chairman Calls for New Golden Age of SEC-CFTC Regula …
Traders Hideout
The May 31 Binary: 60% Trump Declares Iran Ops Over, Onl …
Prediction Markets & Event Contracts
GDP Day: The First Economic Reckoning -- Pahlavi at 6.55 …
Prediction Markets & Event Contracts
CME Raises Energy Futures Margins After Iran-War Volatil …
Commodities
CME Group Fee Schedule Changes Hit All Four Exchanges -- …
Traders Hideout
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Sober Journey With S&P
24 thanks
2026 Jlab journal
10 thanks
Algo automated / semi-automated trading anyone?
6 thanks
Lady Vols Primer: Trading Volatility Journal
6 thanks
Trying to learn Volume and price action correlation
5 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
Thanked by:
  #3 (permalink)
 
Todd's Avatar
 Todd 
Alpharetta, GA
 
Experience: Intermediate
Platform: ninja
Broker: Mirus / Zenfire
Trading: ES
Posts: 232 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


© 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