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

RE: [amibroker] MA on last day of week



PureBytes Links

Trading Reference Links

Try this, not sure if it works or not

WeekC = valuewhen( dayofweek()>ref(dayofweek(),1), C) ;
WeekMA = Sum(WeekC,20)/20;

You may need to tweek the values a bit. Not certain of the 20, whether this
should be the number of bars.

Or else there is a plugin for timeframes at the AB website.

Or more simply just change the chart and settings to weekly.

Cheers,
Graham
http://groups.msn.com/ASXShareTrading
http://groups.msn.com/FMSAustralia

-----Original Message-----
From: kk12338 [mailto:kk2628@xxxxxxxxxxxxxxxx] 
Sent: Sunday, 8 June 2003 4:20 PM
To: amibroker@xxxxxxxxxxxxxxx
Subject: [amibroker] MA on last day of week

HI,

I am having a problem try to get a MA for close on last day of the 
week for the past twenty weeks on a daily chart. Can someone help ?


thanks
KK



Send BUG REPORTS to bugs@xxxxxxxxxxxxx
Send SUGGESTIONS to suggest@xxxxxxxxxxxxx
-----------------------------------------
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 http://docs.yahoo.com/info/terms/ 


------------------------ Yahoo! Groups Sponsor ---------------------~-->
Get A Free Psychic Reading! Your Online Answer To Life's Important Questions.
http://us.click.yahoo.com/Lj3uPC/Me7FAA/ySSFAA/GHeqlB/TM
---------------------------------------------------------------------~->

Send BUG REPORTS to bugs@xxxxxxxxxxxxx
Send SUGGESTIONS to suggest@xxxxxxxxxxxxx
-----------------------------------------
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 http://docs.yahoo.com/info/terms/