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

RE: [amibroker] Buy/Sell QQQ on NASDAQ signals



PureBytes Links

Trading Reference Links

Thank you Tomasz ...

But what if I need to reference a calculation on the NASDAQ (PDI()-MDI())?
Would I have to use VBScript for this? Or is there an update to the
foreign() function that can use other functions in the datafield?

Peter Gialames

-----Original Message-----
From: Tomasz Janeczko [mailto:amibroker@x...]
Sent: Friday, August 10, 2001 3:24 PM
To: amibroker@xxxxxxxxxxxxxxx
Subject: Re: [amibroker] Buy/Sell QQQ on NASDAQ signals


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/
>
>
>





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