|
Attention! Read the forum rules carefully before posting a topic.
Try to find an answer in Wiki before asking a question. Submit programming questions in this forum only. Off topics are strictly forbidden.
Any topics which do not satisfy these rules will be deleted.
| viewing order size during backtesting |
|
Isak
|
| Post subject: viewing order size during backtesting |
Post rating: 0
|
Posted: Fri 08 Jul, 2011, 22:04
|
|
User rating: 6
Joined: Thu 19 May, 2011, 11:14 Posts: 235 Location: South Africa,
|
|
Is there a way to see order sizes for placed orders while a strategy is being visually back-tested, without having to wait for the report at the end?
|
|
|
|
|
 |
|
API Support
|
| Post subject: Re: viewing order size during backtesting |
Post rating: 0
|
Posted: Mon 11 Jul, 2011, 07:28
|
|
User rating: ∞
Joined: Fri 31 Aug, 2007, 09:17 Posts: 6139
|
|
Consider using IEngine.getOrders() to obtain a list of active orders and then just use IOrder.getAmount(). Alternatively onMessage, which fires whenever the state of the order changes, you can retrieve the order by IMessage.getOrder() and get its parameters.
|
|
|
|
|
 |
|
Pages: [
1
]
|
|
|
|
|