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.

Partial exit
 Post subject: Partial exit Post rating: 0   New post Posted: Fri 29 Oct, 2010, 09:12 

User rating: -
Hi, I am pretty new to Dukascopy, and have been playing with Jforex for several months.

I have a question about taking partial profit for a position at different stage.

here's an example

I buy 10k EUR/USD, and take profit at certain level on 7k. then at even higher price, I would close the position for the rest.

I assume I can place two sell limit orders then merge positions when target is hit.

But I ran into a problem, every time I try to merge the positions, I have to cancel my original SL order and create it after merge. the system wouldn't let me merge if there's an SL or TP order pending.

anyone have better ideas on taking partial exit with Jforex?


 
 Post subject: Re: Partial exit Post rating: 0   New post Posted: Fri 29 Oct, 2010, 14:20 

User rating: 0
Joined: Wed 18 May, 2011, 11:25
Posts: 60
Location: DE
you can use order.close(amount) to close partial, there is nothing to merge.


 
 Post subject: Re: Partial exit Post rating: 0   New post Posted: Fri 29 Oct, 2010, 18:24 

User rating: -
can it be placed as a limit order?


 
 Post subject: Re: Partial exit Post rating: 0   New post Posted: Sat 30 Oct, 2010, 09:45 

User rating: 0
Joined: Wed 18 May, 2011, 11:25
Posts: 60
Location: DE
i don't know, but you can check the price in the onTick-method and if you reached your first profit, use the method above


 

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