[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

VWAP Support/Resistance Problems



PureBytes Links

Trading Reference Links

{In the May 2001 Tech. analysis of Stocks & Commodities, George Reyna
presents the following Metastock indicator:

Volume Weighted Ave. Price Support/Resistance

Problem:
The indicator will not plot on any Metastock window.  I checked into the
Metastock website to see if they had a correction to the code, but did
not see any.  Does anyone on this listserv have success with using this
indicator?

Thanks,
Stephen Bell, Tucson AZ USA}


{From P.67, TASC, May 2001
MIDAS Volume Weighted Ave Price-Support/resist.}

sm:=Input("Starting Month",1,12,1);
sd:=Input("Starting day of month",1,31,1);
sy:=Input("Starting year",1980,2100,2000);
start:= sd = DayOfMonth() AND sm = Month() AND sy = Year();
pv:= MP()*V;

denom:=If(Cum(V)-ValueWhen(1,start,Cum(V))=0,1,Cum(V)-ValueWhen(1,start,Cum(V)));

If(BarsSince(start),(Cum(pv)-ValueWhen(1,start,Cum(pv)))/denom,MP())