[amibroker] Re: Correlation in "explore"

 

Do you mean to be assigning a value to the variable Ticker twice, once from ParamStr and once through directly assigning "GBPUSD"? The first assignment isn't used anywhere and the second assignment doesn't look like a ticker symbol.



---In amibroker@yahoogroups.com, <edilson.floriano@...> wrote :

Hi all,
I am trying to figure out the correlation between two different assets in the "Explore"; I fixed an asset in the Analysis window and other one in code, but it does not work.
Could anyone help me?

//Correlations between symbols
Filter = 1;
Ticker = ParamStr( "Symbol", Name() );
range = Param( "Periods", 252, 2, 500, 1);
TicKer = "GBPUSD";
corr = Correlation( Close, Foreign( Ticker, "C"), range );
// check if different symbols are used
if( ticker == Name() ) 
    Title = "Please select different symbol from Parameter dialog";
AddColumn(corr,"CoefCorr",1.4);

Best Regards.
Edilson

__._,_.___

Posted by: rosenberggregg@yahoo.com
Reply via web post Reply to sender Reply to group Start a New Topic Messages in this topic (3)
**** IMPORTANT PLEASE READ ****
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