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
Can you help answer these questions from other members on futures io?