Sundance: priceClose(0) is the close and priceOpen(0) is the open of the current bar.

royal: You need a TMF for OCO. Look here:

http://manual.zorro-trader.com/trade.htm

- there is explained what a TMF is and how to use it.