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 <[EMAIL PROTECTED]>: > 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); >
