Dukascopy
 
 
Wiki JStore Search Login

Adjusting Stop Loss to a Filled order.
 Post subject: Adjusting Stop Loss to a Filled order. Post rating: 0   New post Posted: Tue 18 Mar, 2014, 09:16 

User rating: 0
Joined: Tue 18 Mar, 2014, 09:05
Posts: 4
Location: United Kingdom,
Hi All,

I am attempting to set up a strategy that opens from a pending order.

Once the order is filled, I would like to adjust the stop loss to the low/high of the bar that the order was filled on.

I know that the stop loss can only be adjusted once the bar the order was filled on has been completed but I am not sure how to apply the logic for this.

Can anyone help? :)


 
 Post subject: Re: Adjusting Stop Loss to a Filled order. Post rating: 0   New post Posted: Tue 18 Mar, 2014, 12:47 
Visual JForex expert at Dukascopy
User avatar

User rating: 27
Joined: Fri 03 May, 2013, 18:25
Posts: 366
Location: GermanyGermany
Greetings!

Please find attached one way to build this:


Attachments:
SL_adjust_fill.vfs [29.93 KiB]
Downloaded 160 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: Adjusting Stop Loss to a Filled order. Post rating: 0   New post Posted: Wed 19 Mar, 2014, 08:20 

User rating: 0
Joined: Tue 18 Mar, 2014, 09:05
Posts: 4
Location: United Kingdom,
Thanks for your response Dirk.

However, with the method above, I am finding that the stop loss is applied on the bar that filled the order before it closes so it is not the actual low but the low at the time that the order was filled.

once the order is filled is it possible to delay the command to apply the stop loss until the bar is complete therefore it will be the true high/low of the bar?


 
 Post subject: Re: Adjusting Stop Loss to a Filled order. Post rating: 0   New post Posted: Fri 21 Mar, 2014, 13:15 

User rating: 0
Joined: Tue 18 Mar, 2014, 09:05
Posts: 4
Location: United Kingdom,
Hello,

Is the above possible?


 
 Post subject: Re: Adjusting Stop Loss to a Filled order. Post rating: 0   New post Posted: Wed 26 Mar, 2014, 17:34 
Visual JForex expert at Dukascopy
User avatar

User rating: 27
Joined: Fri 03 May, 2013, 18:25
Posts: 366
Location: GermanyGermany
Greetings!

Sure it is possible :)


Attachments:
SL_adjust_fill_2.vfs [32.39 KiB]
Downloaded 171 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.
 

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