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.

Can't write method that returns the type of 1 opened order.
 Post subject: Can't write method that returns the type of 1 opened order. Post rating: 0   New post Posted: Sat 04 Jul, 2015, 12:12 
User avatar

User rating: 0
Joined: Fri 13 Mar, 2015, 18:23
Posts: 6
Location: Russian Federation, Moscow
Hello, JForex people. Hint me please or better show the code of a method which returns the type of one opened order.
And thanks a lot.


 
 Post subject: Re: Can't write method that returns the type of 1 opened order. Post rating: 0   New post Posted: Mon 06 Jul, 2015, 08:47 
User avatar

User rating:
Joined: Fri 31 Aug, 2007, 09:17
Posts: 6139
Consider the following code
for(IOrder order : engine.getOrders()) {
   console.getOut().println(order.getLabel()+ " "+ order.getState()+ " "+ order.getOrderCommand());           
}


 

Jump to:  

cron
  © 1998-2024 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