Dukascopy
 
 
Wiki JStore Search Login

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
 Post subject: viewing order size during backtesting Post rating: 0   New post Posted: Fri 08 Jul, 2011, 22:04 
User avatar

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?


 
 Post subject: Re: viewing order size during backtesting Post rating: 0   New post Posted: Mon 11 Jul, 2011, 07:28 
User avatar

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.


 

Jump to:  

  © 1998-2025 Dukascopy® Bank SA
On-line Currency forex trading with Swiss Forex Broker - ECN Forex Brokerage,
Managed Forex Accounts, introducing forex brokers, Currency Forex Data Feed and News
Currency Forex Trading Platform provided on-line by Dukascopy.com