PureBytes Links
Trading Reference Links
|
Hello,
You can use Ref() function. More:
http://www.amibroker.com/guide/afl/afl_view.php?id=122
as for your needs, it would be:
//simple 24-period MA
Plot(MA(C,24),"ma1",colorRed );
//displaced 24 periods MA
Plot(Ref(MA(C,24),-24) ,"displaced",colorBlue );
best regards
Marcin Gorzynski
amibroker.com
--- In amibroker@xxxxxxxxxxxxxxx, "m_o_t_o2003" <m_o_t_o2003@xxxx>
wrote:
> Hello all
>
> Is it possible to displace a moving average in Amibroker? For
> example, if I wanted to have two 24 period ma, but I wanted the
> second to start 24 bars after the first. Does anyone have any
clues?
>
> Thanks in advance.
>
> Matt
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
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/amibroker/
<*> To unsubscribe from this group, send an email to:
amibroker-unsubscribe@xxxxxxxxxxxxxxx
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
|