PureBytes Links
Trading Reference Links
|
All,
Try this one. Try an initial plot from a recent pivot high/low. It does not
like comma's in the year input.
{VWAP Sup/Res}
Sm:=Input("Starting Month",1,12,1);
Sd:=Input("Starting Day",1,31,2);
Sy:=Input("Starting Year",1950,2010,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)));
A:=If(BarsSince(start),(Cum(pv)-
ValueWhen(1,start,Cum(pv)))/denom,MP());
A;
Enjoy,
J.
>From: stephen bell <sbell@xxxxxxxxxxxxx>
>Reply-To: metastock@xxxxxxxxxxxxx
>To: metastock@xxxxxxxxxxxxxxxxxx
>Subject: VWAP Support/Resistance Problems
>Date: Fri, 13 Apr 2001 16:10:13 -0700
>
>{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())
>
_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com
|