[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [amibroker] Pairs Trading Backtesting - Help!



PureBytes Links

Trading Reference Links

Can't you just create the difference of the long/short pair by reading one 
of them using the foreign() function?

for instance:

spread = (Close -Foreign("QQQQ", "Close"));


----- Original Message ----- 
From: "KBGlenn" <kbglenn@xxxxxxxxx>
To: <amibroker@xxxxxxxxxxxxxxx>
Sent: Wednesday, January 10, 2007 7:13 PM
Subject: [amibroker] Pairs Trading Backtesting - Help!


> Does anyone know how to backtest a long-short pair?  I built my own
> indicators and code for the buys and sells but I don't know how to
> backtest two stocks simultaneously...I don't think Amibroker can do
> this, but is there a way around it?
>
> Tks!
>
>
>
>
> 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 NEW RELEASE ANNOUNCEMENTS and other news always check DEVLOG:
> http://www.amibroker.com/devlog/
>
> For other support material please check also:
> http://www.amibroker.com/support.html
>
> Yahoo! Groups Links
>
>
>


Content-Description: "AVG certification"
No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.5.432 / Virus Database: 268.16.9/622 - Release Date: 1/10/2007 2:52 PM