Dukascopy
 
 
Wiki JStore Search Login

Trailing Setted with Indicator
 Post subject: Trailing Setted with Indicator Post rating: 0   New post Posted: Fri 30 Sep, 2016, 17:55 
User avatar

User rating: 0
Joined: Fri 19 Sep, 2014, 12:05
Posts: 61
Location: Italy, montopoli di sabina
Good evening,
does anyone know if it is possible to have a trailing stop based on indicator (like ATR)? Mean if the ATR is 30 so the Stop loss of the trailing stop is 30.

In this strategy tried to fill that but it does not seems to have great sense.


Attachments:
Malverti_E_1_Trix_ADX_WMA_trailing.vfs [53.92 KiB]
Downloaded 139 times
Test_Trix_ADX_WMA.vfs [57.33 KiB]
Downloaded 138 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: Trailing Setted with Indicator Post rating: 0   New post Posted: Mon 03 Oct, 2016, 08:48 
Visual JForex expert at Dukascopy
User avatar

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

Yes this is feasible: The ATR output on USDJPY is a number that starts with 0 and has decimals therefore it has be converted somehow to get a integer : in this example I multiplied it by 100.

Thanks


Attachments:
Malverti_E_1_Trix_ADX_WMA_trailing_V2.vfs [57.27 KiB]
Downloaded 154 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: Trailing Setted with Indicator Post rating: 0   New post Posted: Tue 04 Oct, 2016, 15:54 
User avatar

User rating: 0
Joined: Fri 19 Sep, 2014, 12:05
Posts: 61
Location: Italy, montopoli di sabina
Good evening,
thanks for the support. Anyway during the backtest (USD/JPY 01/01/2016 - 01/10/2016) it seems that the position could not be closed (ATR*100 should have a reasonable SL in pips).
I dunno what could be that make fail the trailing Stop.


 
 Post subject: Re: Trailing Setted with Indicator Post rating: 0   New post Posted: Wed 05 Oct, 2016, 09:10 
Visual JForex expert at Dukascopy
User avatar

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

The SL has indeed a reasonable value but your problem is :
1/ You start the strategy with a very restrictive condition: If number of open positions or orders is null thus once the position is opened, the strategy won't do anything further. The solution is to move this condition just before the open@market block

2/ Trailing step blocks: You plugged these blocks after the trading command; the problem is the strategy cannot reach the trailing process till all the conditions that sits before that are passed. It is like a serial build: your strategy have to make sure condion A is okay to execute condition B. the solution is to unlink the trailing blocks and plug them elsewhere. The question is: How frequent you need the trailing stop to be executed ? I suggest every 10 seconds, to do so you need to link the position viewer+trailing out of the period filter (from the not equal pin)


 
 Post subject: Re: Trailing Setted with Indicator Post rating: 0   New post Posted: Thu 06 Oct, 2016, 17:14 
User avatar

User rating: 0
Joined: Fri 19 Sep, 2014, 12:05
Posts: 61
Location: Italy, montopoli di sabina
Thanks :) seems to have a logic, you are a great :P


 

Jump to:  

cron
  © 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