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

[amibroker] Multiple Timeframe Analysis



PureBytes Links

Trading Reference Links

I'd like to apply this to intraday charts, but I think it will be 
easier as an example on daily data.

I'm aiming to plot an indicator (eg: a moving average) using multiple 
sets of data, as determined by the timeframe in which they occur.

For example, plotting a MA(C,20) of the daily close simultaneously 
with a MA(C,20) of the weekly close.

What I have got so far is below, but is wrong for two reasons, (1) 
middle of the week data points are filled with last week's close, 
thus skewing the MA calculation; & (2) the last day of the week is 
not always Friday (DayofWeek()==5).  Any thoughts?

MAWC=IIf(DayOfWeek()==5,C,ValueWhen(DayOfWeek()==5,C,1));
Graph1=MA(MAWC,5);



------------------------ Yahoo! Groups Sponsor ---------------------~-->
Rent DVDs from home.
Over 14,500 titles. Free Shipping
& No Late Fees. Try Netflix for FREE!
http://us.click.yahoo.com/BVVfoB/hP.FAA/uetFAA/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/