Dukascopy
 
 
Wiki JStore Search Login

Supertrend with BB exit
 Post subject: Supertrend with BB exit Post rating: 0   New post Posted: Fri 30 Sep, 2016, 20:18 
User avatar

User rating: 0
Joined: Fri 19 Sep, 2014, 12:05
Posts: 61
Location: Italy, montopoli di sabina
Good evening,

Suppose there is a stupidity in my language programming style :D
In this strategy the exit (dynamic SL) should be calibrated when the candle close is < mbb but in the backtest the strategy do not seems to close the trade. So, can someone write where is the mistake ?

Thanks


Attachments:
Supertrend_uscitaBbands.vfs [42.83 KiB]
Downloaded 129 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: Supertrend with BB exit Post rating: 0   New post Posted: Mon 03 Oct, 2016, 09:07 
Visual JForex expert at Dukascopy
User avatar

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

In your strategy you're using the Last candle close price to perofrm your dynamic SL: the thing is last candle close cannot be know in advance for the current candle still fluctuating therefore you have to use Get historical candle with shift 1 to refer to the previous candle and then use its candle close price in your IF condition.

Cheers


 
 Post subject: Re: Supertrend with BB exit Post rating: 0   New post Posted: Tue 04 Oct, 2016, 14:54 
User avatar

User rating: 0
Joined: Fri 19 Sep, 2014, 12:05
Posts: 61
Location: Italy, montopoli di sabina
:D


 

Jump to:  

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