I am trying to write a simple system that enters/exits using limit orders. Its' strange that something so trivial to accomplish in Multicharts, TradeStation, Amibroker etc should be so complicated in Zorro.
I gather from the manual that an order entered using enterLong(1, limitprice) will be treated at market-if-touched orders by Zorro.
I further realize that Zorro can handle limit orders properly, assuming the broker can handle them (is there a broker that doesn't handle limit orders?). I am trading on IB.
So I need to use some kind of Trade Management Function to accomplish this simple task.
Can anyone point to an example in the documentation of code to issue a limit entry order ?
Or can anyone provide a simple example of a suitable TMF and how it should be called?
Thanks!
Last edited by BigSky; 09/29/20 19:38.