|
Hello,
Detailed instructions are here:
Mathematical background:
http://en.wikipedia.org/wiki/Correlation Correlation(Close,Foreign("NDX","Close"),250) is correlation calculated of 250 days as defined
in the article above.
So 'n' parameter in the mathematical equations
presented in
the article above is equal to 250.
Q: What is the difference between: StDev(Close,50) and MA(StDev(Close,1),50)?
A: the differnece is fundamental, first is standard deviation
over 50 days,
second statement MA(StDev(Close,1),50)
just always evaluates to ZERO, because It calculates
average of ONE DAY standard deviation.
Since during ONE DAY there is no deviation - so it is effectively EQUAL ZERO non-stop. If you perform moving average of ZERO you will get ZERO.
Advice:
ALWAYS PLOT the output of your formula, this will clearly show you whenever things are different or not. Best regards, Tomasz Janeczko amibroker.com
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 other support material please check also: http://www.amibroker.com/support.html
SPONSORED LINKS
YAHOO! GROUPS LINKS
|
