Code to get no. Of open trade positions from pi terminal to amibroker back.

raja123
raja123 edited October 2016 in API clients
My trading strategy is "buy above" type and many times, around 10 signals are generated as "buy above" and are sent to pi terminal. But as I want to trade only in first 4 triggered calls, I have to send a message to pi again to cancel other 6 (non-triggered) signals.

Please let me know the function I can make use of.

Note:

I can send Order to Pi.
Now I want to get Numbers of Lots Open in Net Position.
This discussion has been closed.