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.

about stop loss.....help
 Post subject: about stop loss.....help Post rating: 0   New post Posted: Wed 13 Mar, 2013, 08:43 
User avatar

User rating: 0
Joined: Sun 03 Mar, 2013, 15:45
Posts: 34
Location: China, guangdong
I want to ask, if I had four deals, but stops. Before now, I want to losses added up to 4 times as fifth stop trading amount, can you tell me what function should be use?

For example:
1. -10
2. -5
3. -1
4. -6
5. stop loss amount is 22 (10+5+1+6)


 
The Best Answer  Post subject: Re: about stop loss.....help Post rating: 0   New post Posted: Wed 13 Mar, 2013, 08:52 
User avatar

User rating:
Joined: Fri 31 Aug, 2007, 09:17
Posts: 6139
First calculate the P/L over all of your positions (note that here amounts are in units, not millions):
https://www.dukascopy.com/wiki/#Order_Management/Position_aggregated_profit/loss
Then make an order according to the calculated amount:
https://www.dukascopy.com/wiki/#Set_Market_Order
Pay attention how amounts get represneted in API:
https://www.dukascopy.com/wiki/#Order_Amounts


 
 Post subject: Re: about stop loss.....help Post rating: 0   New post Posted: Wed 13 Mar, 2013, 08:55 
User avatar

User rating: 0
Joined: Sun 03 Mar, 2013, 15:45
Posts: 34
Location: China, guangdong
Thank you, I try it now


 

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