Dave, Thank you.  Your formalu did just what I wanted. I modified it 
slightly to add a parameter box.

ticker = ParamStr( "Ticker", "spy" );
OtherStk = Foreign (ticker, "Close");
Spread = Close - OtherStk;
Plot( Spread, "Spread - Difference", colorRed, styleDots );



--- In [email protected], "MarketMonk777" <[EMAIL PROTECTED]> 
wrote:
>
> You can try this:
> 
> OtherStk = Foreign ("AMD", "Close");
> Delta = Close - OtherStk;
> Plot( Delta, "Diff of 2 stocks", colorRed, styleDots ); 
> 
> You would put this in a chart on your INTC stock.  Keep in mind 
that as you
> change your current symbol, this chart will show the difference 
between the
> currently viewed symbol and AMD.
> 
> You might be able to select two symbols via the parameters box and 
plot
> their difference if this is something specific you are trying to 
accomplish
> or need the flexibility to change symbols.
> 
> Regards,
> 
> Dave
> 
> -----Original Message-----
> From: [email protected] [mailto:[EMAIL PROTECTED] 
On Behalf
> Of personal592002
> Sent: Saturday, July 22, 2006 10:20 AM
> To: [email protected]
> Subject: [amibroker] How to plot the spread (differnce) between two
> securities?
> 
> How to plot the spread (difference) between two securities?
> 
> For example, I want to plot (chart) the difference between the 
price of INTC
> and AMD..... 
> 
> 
> 
> 
> 
> 
> 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
> 
>  
> Yahoo! Groups Links
>






------------------------ Yahoo! Groups Sponsor --------------------~--> 
Great things are happening at Yahoo! Groups.  See the new email design.
http://us.click.yahoo.com/TISQkA/hOaOAA/yQLSAA/GHeqlB/TM
--------------------------------------------------------------------~-> 

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

 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/amibroker/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 


Reply via email to