View Single Post
  #1 (permalink)  
Old 10-12-2008, 12:41 PM
dealstone's Avatar
dealstone dealstone is offline
Junior Member
 
Join Date: Sep 2007
Posts: 15
dealstone is on a distinguished road
Bollonger bands based EA

Hi there!

Let me introduce the my EA based on Bollinger's bands (BB). The main idea is to buy when main BB is crossed by price bottom-up and vice-versa, - to sell when price crosses BB's main line top-down.
We have here some stops and limiters: there are addition levels that should prevent us to open position when price crossed BB main line by accident (levels 0.05/-0.05, 0.05 means 5 % of difference between BB's high and main lines), levels called h2 (0.4/-0.4) are StopLoss levels, h3 is TakeProfit: if you bought, the level -0.4 would be a StopLoss, and TakeProfit would be placed on level h3 (may be more or less than h2).
Also there is a limiter by market's volatility: the difference between level h3 and BB's main line is called delta, I set up high and low values (delta_h and delta correspondingly). EA cannot open new position if current “delta_h” is more or “delta” is less than predefiend values.
There is also trailing module that should control open position. If you opened posiion (buy for example), the stoploss would be set to the -h2 and takeprofit to the h3. SL level would be set to the “sl_dist1” level later on, if profit reached “sl_level1”, the “sl_dist2” level would be applied, and so on. No changes should be applied to the TakeProfit.
Again, I set here money management module, that calculates last consecutive loss/profits and has separate value for each progression. For example, if we have a progression that consists of last 5 wins/losses, the “prk5” will be used as the volume of new position. All “prk” are set to the 0.01 lots by default.
The main difficulty I've been facing during the optimization process is the not so good results when was tested on the data that were out of recall.
Please post your ideas/suggestions to this thread or PM me
Attached Images
File Type: gif report1.gif (8.2 KB, 2002 views)
Attached Files
File Type: ex4 BB_advTrailing.ex4 (9.3 KB, 1049 views)
__________________
De gustibus non est disputandum.

Last edited by Linuxser; 10-12-2008 at 10:39 PM. Reason: @
Reply With Quote