I am trying to get the 220 day Moving Average of the Australian Share XAO index, I run an Explore on the ASX using the code below the Index = Foreign("XAO","C",1); works fine it gives me the correct value of the XAO and it is the same value for every symbol , but I expected IndexMA = MA (Index, 220); to give me the same value for every symbol since it is based on the XAO not the symbol but it is a different value for each symbol. I have attached an Excel spreadsheet showing the result notice IndexMA has a different value for each symbol. Thanks for any help.
Filter = ( C>0.01 );
Index = Foreign("XAO","C",1);
IndexMA = MA (Index, 220);
AddColumn(Index, "Index" );
AddColumn(IndexMA, "IndexMA" );
Attachment(s) from pauldavey@live.com.au [amibroker] | View attachments on the web
1 of 1 File(s)
Posted by: pauldavey@live.com.au
Reply via web post | • | Reply to sender | • | Reply to group | • | Start a New Topic | • | Messages in this topic (1) |
This group is for the discussion between users only.
This is *NOT* technical support channel.
TO GET TECHNICAL SUPPORT send an e-mail directly to
SUPPORT {at} amibroker.com
TO SUBMIT SUGGESTIONS please use FEEDBACK CENTER at
http://www.amibroker.com/feedback/
(submissions sent via other channels won't be considered)
For NEW RELEASE ANNOUNCEMENTS and other news always check DEVLOG:
http://www.amibroker.com/devlog/
EmoticonEmoticon