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.

How differentiate strategy orders and orders opened manually
 Post subject: How differentiate strategy orders and orders opened manually Post rating: 0   New post Posted: Wed 23 Feb, 2011, 16:04 

User rating: 0
Joined: Tue 22 Feb, 2011, 20:43
Posts: 10
... have I hold on a strategy-variable of type IOrder ...
... is it possible to check equality of all orders with '==' ...

At the moment I'm iterating over all orders (think that I get all orders
of my account, from alle strategies, and all handmade chart-orders, is this correct?)
and do the check with '=='.

Is this recommended?

Thx
DT


 
 Post subject: Re: How differentiate strategy orders and orders opened manu Post rating: 0   New post Posted: Thu 24 Feb, 2011, 11:46 
User avatar

User rating:
Joined: Fri 31 Aug, 2007, 09:17
Posts: 6139
Hi,
DarthTrader2 wrote:
At the moment I'm iterating over all orders (think that I get all orders
of my account, from alle strategies, and all handmade chart-orders, is this correct?)

Yes it is correct.
DarthTrader2 wrote:
and do the check with '=='.
Is this recommended?

To compare objects use the Object equals() method:
if (order1.equals(order2)) {
    ...
}

You can add the strategy name to the order label, and the parse label and compare.


 

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