[amibroker] Correlation in "explore"

 

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: Edilson Santos <edilson.floriano@yahoo.com.br>
Reply via web post Reply to sender Reply to group Start a New Topic Messages in this topic (1)
**** 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