Bernard, this should work:
Buy= <your code> AND Foreign("^XAO","C") > MA(Foreign("^XAO","C"),200);
(eventually without the caret depending on your database).
Greetings,
Thomas
> Graham
> What I meant is, for example, I want to buy my current selected stock
> (e.g. BHP - using the auto analysis filter) on let's say a MA
> crossover but only if "XAO" is above 200MA.
> Can I use the setforeign with this?
> Bernard
