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

Re: [amibroker] MACD () not liking parameters



PureBytes Links

Trading Reference Links

Mymfast Mymslow Mymsignal are arrays, you must use static value periods in MACD

Or create from the base calculation for MACD creating the EMA via AMA,
or put within a loop using functions for macd calculation

-- 
Cheers
Graham Kav
AFL Writing Service
http://www.aflwriting.com



2008/5/3 gmorlosky <gmorlosky@xxxxxxxxx>:
> The m = MACD() doesn't like when I use Mymfast Mymslow Mymsignal in
>  place of mfast mslow msignal. Why is that ?
>
>  pds = Param("pds", 2, 1, 10, 1 );
>  VolROC = 1 + abs(ROC( EMA( C, pds ), pds ) / 100);
>
>  mfast = Param("MACD Fast", 8,8,15,1);
>  mslow = Param("MACD Slow", 17,17,30,1);
>  msignal = Param("MACD Signal", 9,6,15,1);
>
>  Mymfast = mfast *VolROC;
>  Mymslow = mslow *VolROC;
>  Mymsignal = msignal *VolROC;
>
>  m = MACD(mfast, mslow);
>  s = Signal(mfast, mslow, msignal);
>

------------------------------------

Please note that this group is for discussion between users only.

To get support from AmiBroker please send an e-mail directly to 
SUPPORT {at} amibroker.com

For NEW RELEASE ANNOUNCEMENTS and other news always check DEVLOG:
http://www.amibroker.com/devlog/

For other support material please check also:
http://www.amibroker.com/support.html
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/amibroker/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/amibroker/join
    (Yahoo! ID required)

<*> To change settings via email:
    mailto:amibroker-digest@xxxxxxxxxxxxxxx 
    mailto:amibroker-fullfeatured@xxxxxxxxxxxxxxx

<*> 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/