You don't need to do anything. That is the default built in behavior of AmiBroker (i.e. single position per symbol, redundant signals ignored).
http://www.amibroker.com/guide/afl/afl_view.php?name=setbacktestmode Mike --- In amibroker@yahoogroups.com, zeek ing <zeekin...@...> wrote: > > Is there a way to code > that one should only buy if current position is zero?? Meaning one is > currently not short. and vica versa. I can't seem to find away to this?? > > please help >