Dukascopy
 
 
Wiki JStore Search Login

Position closing strategy
 Post subject: Position closing strategy Post rating: 0   New post Posted: Tue 19 May, 2015, 14:22 
User avatar

User rating: 0
Joined: Fri 23 Aug, 2013, 17:49
Posts: 27
I want a strategy that will close one third of my open position in the selected instrument

For the position opened in specified instrument (default EURUSD)

- when bid price reaches a specified take profit level (TP1) close one third (1/3) of position
- when bid price reaches the next specified profit level (TP2) close another third of the position
- when the bid price reaches the next specified profit level close remaining amount

I attach where I have got to. This seems to close positions immediately irrespective of price. What have I done wrong please


Attachments:
Close006.vfs [28.44 KiB]
Downloaded 125 times
DISCLAIMER: Dukascopy Bank SA's waiver of responsability - Documents, data or information available on this webpage may be posted by third parties without Dukascopy Bank SA being obliged to make any control on their content. Anyone accessing this webpage and downloading or otherwise making use of any document, data or information found on this webpage shall do it on his/her own risks without any recourse against Dukascopy Bank SA in relation thereto or for any consequences arising to him/her or any third party from the use and/or reliance on any document, data or information found on this webpage.
 
 Post subject: Re: Position closing strategy Post rating: 0   New post Posted: Wed 20 May, 2015, 13:54 
Visual JForex expert at Dukascopy
User avatar

User rating: 288
Joined: Thu 18 Apr, 2013, 09:26
Posts: 1496
Location: Switzerland, Geneva
Hi,

You did right using the partial close block and the calculation to get the third of the open position amount.
I just made a quick example for you but did not test it thoroughly...


Attachments:
Close007.vfs [32.33 KiB]
Downloaded 141 times
DISCLAIMER: Dukascopy Bank SA's waiver of responsability - Documents, data or information available on this webpage may be posted by third parties without Dukascopy Bank SA being obliged to make any control on their content. Anyone accessing this webpage and downloading or otherwise making use of any document, data or information found on this webpage shall do it on his/her own risks without any recourse against Dukascopy Bank SA in relation thereto or for any consequences arising to him/her or any third party from the use and/or reliance on any document, data or information found on this webpage.
 
 Post subject: Re: Position closing strategy Post rating: 0   New post Posted: Thu 21 May, 2015, 08:29 
User avatar

User rating: 0
Joined: Fri 23 Aug, 2013, 17:49
Posts: 27
Not quite what I am after, but thank you.

This opens another position. I want to be able to run the strategy to partyially close existing positions not ones open using a strategy.

Because there is no facility to partially close a position at a specified level I want to use this strategy to manage my positions without me hovering my finger over a mouse. So for example I wanted to go long on Cable, I wanted profit points at Big Round Numbers at 1.555, 1.56 and 1.565 and wanted to have these orders waiting to be triggered by the strategy rather than my not so alert berain trying to catch them. How do I achieve that?

EDIT:

This actually opens as many positions as your account can handle so DO NOT DOWNLOAD


 
 Post subject: Re: Position closing strategy Post rating: 0   New post Posted: Mon 25 May, 2015, 16:47 
Visual JForex expert at Dukascopy
User avatar

User rating: 288
Joined: Thu 18 Apr, 2013, 09:26
Posts: 1496
Location: Switzerland, Geneva
Hi,

Well basically the example posted is a developed according the information that you posted. It is a sample idea that implements partial closure with a computed amount.

- If you need a strategy that monitors your manual trading activity, you have to use the position viewer block or the "Trade Event" start point that will catch the information related to the open positions and update the closure request and the calculation that is made afterwards.
- There is a way to catch what you called "Big Round numbers" but we need more information about that: How many rounded price are you looking for ? at which level with regards to the open price ? can you provide concrete examples?


Cheers


 

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