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@yahoogroups.com, "gonzagags" <[EMAIL PROTECTED]> 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 >