PureBytes Links
Trading Reference Links
|
Kieth,
I wish I could provide an answer but.... I have posed this question
several times in the past to Tomasz, apparently it might have
something to do with the internal weekly chart view ( I do not know
)... I believe we are pulling the right information from the data, so it
matches the data that is used in the weekly chart view, ( That was
accompolished with help from Tomasz ).
Also, Using Stephane's DLL ( Average Weekly Price ) in daily mode ,
produces different values than when simply ploting moving averages in
weekly mode. So, there are differences there too.
Anthony
Keith Newhouse wrote:
> I have borrowod from Anthony Faragasso code in an attempt to produce
> weekly time frame moving averages on a daily chart. Below is the
> code I have used and it produces MAs that have no no resemblance to
> the MAs on the Weekly chart itself.
>
> /Weekly MAs on daily charts
>
> weekstart = DayOfWeek() < Ref( DayOfWeek(), -1 );
> weekend = DayOfWeek() > Ref( DayOfWeek(),1);
>
> /**Establish weekly Price Arrays**/
> WeeklyHigh = ValueWhen( weekend, HighestSince( weekstart, High ) );
> WeeklyLow = ValueWhen( weekend, LowestSince( weekstart, Low ) );
>
> Plot(MA(WeeklyHigh,17),"WkHIGHMA",colorRed,styleLine);
> Plot(MA(WeeklyLow,17),"WkLOWMA",colorGreen,styleLine);
>
> Plot(Close,"CLOSE",colorBlack,styleCandle);
> Plot(LinearReg(Close,17),"linReg",colorRed,styleLine);
>
> Can someone assist me with by pointing out where I have gone wrong.
>
> Regards,
> Keith
>
>
> Yahoo! Groups Sponsor
ADVERTISEMENT
>
> Post AmiQuote-related messages ONLY to: amiquote@xxxxxxxxxxxxxxx
> (Web page: http://groups.yahoo.com/group/amiquote/messages/)
>
> Check group FAQ at:
> http://groups.yahoo.com/group/amibroker/files/groupfaq.html
>
> Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
|