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

[amibroker] Re: trading rule checking another index?



PureBytes Links

Trading Reference Links

Have a look at SetForeign/RestorePriceArrays 
http://www.amibroker.com/guide/afl/afl_view.php?id=247

SetForeign("some other symbol name");
Buy = Cross(Close, MA(Close, 30));
Sell = ...;
RestorePriceArrays();

The Buy and Sell will apply to the active symbol (e.g. Apple), but the 
O/H/L/C will be values taken from whatever index (or other symbol) you 
chose in SetForeign.

--- In amibroker@xxxxxxxxxxxxxxx, "gonzagags" <gonzagags@xxx> wrote:
>
> Hello
> Is it possible to code a rule that buy or sell any ticker, but
> checking Nasdaq100 index, for example?
> An example could be if cross close with ma(c,30), but checking the
> nasdaq index, I buy Apple..
> Thanx
>




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

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

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/amibroker/join
    (Yahoo! ID required)

<*> To change settings via email:
    mailto:amibroker-digest@xxxxxxxxxxxxxxx 
    mailto:amibroker-fullfeatured@xxxxxxxxxxxxxxx

<*> To unsubscribe from this group, send an email to:
    amibroker-unsubscribe@xxxxxxxxxxxxxxx

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