Check out this article on RW, there's an example implementation for pairs trading in Zorro

https://robotwealth.com/pairs-trading-zorro/