Welcome to Forex-TSD!, one of the largest Forex forums worldwide, where you will be able to find the most complete and reliable Forex information imaginable.
From the list below, select the forum that you want to visit and register to post, as many times you want. It’s absolutely free. Click here for registering on Forex-TSD.
Exclusive Forum
The Exclusive Forum is the only paid section. Once you subscribe, you will get free access to real cutting-edge Trading Systems (automated and not), Indicators, Signals, Articles, etc., that will help and guide you, in ways that you could only imagine, with your Forex trading.
Elite Section
Get access to private discussions, specialized support, indicators and trading systems reported every week.
Advanced Elite Section
For professional traders, trading system developers and any other member who may need to use and/or convert, the most cutting-edge exclusive indicators and trading systems for MT4 and MT5.
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
__________________ De gustibus non est disputandum.
Last edited by Linuxser; 10-12-2008 at 10:39 PM.
Reason: @
hi dealstone, thanks for sharing your EA.
can you please post the setting file of the sample Images in the first post?
and also the "StrategyTester.htm" please.
Please see StrategyTester.htm, image and .set file attached, it was being optimized during Oct 2007 - May 2008 with the settings that you can find out in .set file, there was enabled "Long & short positions" option.
In regards to the used timeframe - I prefer the H1, however I think that more timeframes may and should be tested, at least M30, H4.
Thank you.
Best,
Dealstone.
__________________ De gustibus non est disputandum.
Thanks to everyone who is interested in improvement of this EA !
Roger_Taum, I did not get clearly what had happened, code page does not have any command/include that could break your trading platform. Please specify the issue you experienced, maybe screenshot will be needed.
MANSTIR, you are right, it will open position once the central (main) line is broken. The trade will start, if iHIGH values of 2 last bars iHigh(1) && iHigh(2) are less than first level (usual, first levels are +-10% of BB_HIGH-BB_MAIN, i.e. of half a Bollinger bands' channel) - for buying; sure, it should check iLow of last 2 bars and (-10%) control line for selling.
Regards,
Dealstone.
__________________ De gustibus non est disputandum.