I'm reading the documents, the forums, etc. and have questions about autotrading. I want to use limit orders in a strategy. How can I get feedback from TWS on the limit order status? I could figure that out from the strategy view if price is traded through but I can't do that if price is touched.
In the PowerLanguage editor I see the choice for marketposition_checked but no mention of that keyword in the documents anywhere, what does that keyword do?
Confused about things.......
- Marina Pashkova
- Posts: 2758
- Joined: 27 Jul 2007
Hi maxpi,
If you want to receive feedback about a limit order status in a code - this can't be done in MultiCharts. If you simply want to know what happened to a limit order, the necessary information is displayed in the alert messages shown in the bottom left-hand corner of the MultiCharts screen.
Marketposition_checked is basically the same thing as marketposition. The only difference is that if the information for the position ago is not available marketposition returns 0, while marketposition_checked returns an error.
If you want to receive feedback about a limit order status in a code - this can't be done in MultiCharts. If you simply want to know what happened to a limit order, the necessary information is displayed in the alert messages shown in the bottom left-hand corner of the MultiCharts screen.
Marketposition_checked is basically the same thing as marketposition. The only difference is that if the information for the position ago is not available marketposition returns 0, while marketposition_checked returns an error.