PureBytes Links
Trading Reference Links
|
You may do it directly, ROC is applied on arrays
http://www.amibroker.com/guide/afl/afl_view.php?id=126
DT
--- In amibroker@xxxxxxxxxxxxxxx, "Fred <fctonetti@xxxx>"
<fctonetti@xxxx> wrote:
> Price being an array you fill in ...
>
> MALen = 10;
> ROCLen = 10;
>
> XMA = MA(Price, MALen);
>
> ROCMA = 100 * (XMA - Ref(XMA, -ROCLen)) / Ref(XMA, -ROCLen)
>
> --- In amibroker@xxxxxxxxxxxxxxx, "Rik Rasmussen" <hrasmussen@xxxx>
> wrote:
> > Is it possible to do an ROC (isn't this same as momentum?) of an
MA
> instead
> > of price?
> > Rik Rasmussen
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/
|