PureBytes Links
Trading Reference Links
|
Hi Peter,
You should just use foreign to generate the signals,
set the current stock to QQQ and "apply to" current stock only
in Automatic analysis window. Also set one day delay and
open price as a sell price in Settings.
The formula for simple MA crossover would look like this:
nasdaq = foreign( "^IXIC", "C");
buy = cross( nasdaq, ma( nasdaq, 20 ) );
sell = cross( ma( nasdaq, 20 ), nasdaq );
Best regards,
Tomasz Janeczko
===============
AmiBroker - the comprehensive share manager.
http://www.amibroker.com
----- Original Message -----
From: "Peter Gialames" <investor@xxxx>
To: <amibroker@xxxxxxxxxxxxxxx>
Sent: Friday, August 10, 2001 6:20 PM
Subject: [amibroker] Buy/Sell QQQ on NASDAQ signals
> If there is a thread that the idea of this topic is discussed please point
> me to it.
>
> I would like to back test a system that buys and sells QQQ based on signals
> of the NASDAQ composite. I am sure I would use the foreign() function but
> am unsure on how to implement. For example:
>
> If I get a signal on the NASDAQ for a BUY based on EOD numbers, I would want
> to BUY QQQ on the next days OPEN.
>
> If I get a signal on the NASDAQ for a SELL based on EOD numbers, I would
> want to SELL QQQ on the next days OPEN.
>
> Any help would be appreciated,
> Peter Gialames
>
>
>
>
>
> Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
>
>
>
|