Dukascopy
 
 
Wiki JStore Search Login

Bollinger Bands strategy
 Post subject: Bollinger Bands strategy Post rating: 0   New post Posted: Tue 20 May, 2014, 01:01 
User avatar

User rating: 0
Joined: Sat 01 Dec, 2012, 21:13
Posts: 12
Location: Ireland, Dublin
Hi folks!
Here I got the entry rules description for a strategy. Could you look at this and build something for me, plizzzz? This is long only and mean reversion strategy (that's why for long condition thay look for close below lower band).
I'd appreciate your help.
If we make input parameters instead of numbers, could we then optimize this strategy? Is Visual JForex capable of optimizing strategies?

====================================================================
== Entry conditions
====================================================================
LongEntryCondition = Close Below Bollinger Bands(20, 2, 0)


====================================================================
== Entry orders
====================================================================
-- Long entry
if LongEntryCondition is true {
   if No position is open then Buy at EMA(67) + (-0.6 * ATR(56)) Stop;
   Stop/Limit order expires after 54 bars.

   Stop Loss = (0.73 * ATR(32)) pips;

All the best!
Bart S.


 
 Post subject: Re: Bollinger Bands strategy Post rating: 0   New post Posted: Tue 20 May, 2014, 12:46 
Visual JForex expert at Dukascopy
User avatar

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

The attached is developed as per your specification despite some lack of information regarding the SL exit in pips which looks incorrect Stop Loss = (0.73 * ATR(32)) pips; as the result is almost null.
I'll let you develop the Short side with regards to the long one. In order to set a variable as 'parameter' you need to right click on it and set it as "Global", kindly note that you may need to create new variables that will replace numbers/

don't hesitate to raise any question if needed.

Cheers


Attachments:
Entry_Long.vfs [46.83 KiB]
Downloaded 161 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: Bollinger Bands strategy Post rating: 0   New post Posted: Wed 21 May, 2014, 00:37 
User avatar

User rating: 0
Joined: Sat 01 Dec, 2012, 21:13
Posts: 12
Location: Ireland, Dublin
Fantastic!
Thank you veeeeeery much. I appreciate your time Amine.
Definitely looks like you are a Vis.JForex Magician! :-)

You made very interesting trick for calculating the expiry time of 54 candles for order. I also like the Expression Calculation blocks.
I'll now play around with SL and TP.
BTW, before I get into Short side of this strategy, I'm going to make sure that Long side works as required ;-).

Cheers again,
Bart S.


 

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