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

[amibroker] Re: MA on last day of week



PureBytes Links

Trading Reference Links

Dear Graham,

Thank you for your reply and help. But the formula not really working 
because I am not getting the same MA value when I switch it to weekly 
chart. I guess because the weekC is filled at every bar with the same 
weekC until the next last day of week.

I've also looked into the plugin but the value still not the same as 
the weekly chart value.

Thanks
KK

--- In amibroker@xxxxxxxxxxxxxxx, "Graham" <gkavanagh@xxxx> wrote:
> 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@x...] 
> 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@xxxx
> Send SUGGESTIONS to suggest@xxxx
> -----------------------------------------
> 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/