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 to check whether outcome of order is TP or SL
 Post subject: How to check whether outcome of order is TP or SL Post rating: 0   New post Posted: Thu 25 Aug, 2011, 10:43 
User avatar

User rating: 6
Joined: Thu 19 May, 2011, 11:14
Posts: 235
Location: South Africa,
Is there a way using IOrder API to directly check whether an order was closed by TP or by SL?
Currently I am doing this by considering getClosePrice() and checking whether it is closer to getStopLossPrice() or to getTakeProfitPrice().


 
 Post subject: Re: How to check whether outcome of order is TP or SL Post rating: 0   New post Posted: Thu 25 Aug, 2011, 12:20 
User avatar

User rating:
Joined: Fri 31 Aug, 2007, 09:17
Posts: 6139
No, there is no way to directly see whether an order closed by take profit or stop loss price.


 

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