jiva34's BB Stop auto-trader by SteveHopwood
Let the field day begin!
To anyone who downloaded the EA before the time on this post, watch the CBI module thingy; I forgot to disable it.
$100 for coding per EA, or it depends on difficulty EA code?
Off to a great start, http://my.jetscreenshot.com/5637/201...xzee-106kb.jpg
Khalid, maybe you could post a link to the relevant post for those who missed it, so others can think about this?
As is this EA is going great guns. However, here are the suggestions:
∑ Calculate Length 15, Deviation 1.5, Money Risk 1 for BBands_1.5
∑ Also calculate Length 20, Deviation 2.0, Money Risk 1 for BBands_2
ENTRIES and EXITS
1. Go LONG half position when bar close crosses over and closes above BBands_2
2. If still LONG add quarter position if subsequently bar close crosses over and closes above BBands_1.5
3. If still LONG add another quarter position if subsequently there is another bar close crosses over and closes above BBands_1.5
4. Now we have full position, do not add any more LONG
5. Close the FULL POSITION when bar close crosses under and closes below BBands_2
6. Continue with SHORT in accordance with 1 to 5 above.
∑ The EA should have the ability to know if LONG, SHORT, or FLAT by checking for, and retrieve, existing order info before initiating any order in case MT4 or your computer crashes, or a position is closed manually.
∑ The EA should also have the ability -- I think this one is standard in Steveís ESís Ė to either trade LONG or SHORT, in which case a SHORT signal will close the LONG but not establish a SHORT trade, and a LONG signal will close the SHORT but not establish a LONG trade.
In the picture below Blue and Red are BBands_2, SkyBlue and Tomato are BBand_1.5
After two days of trading OOTB.
Here's the chart screen shot,
This is looking exciting. We can all see those occasional runs where the market crosses the BB stop and keeps on going. It looks as though you have the method to take advantage once I understand it.
nice results bob. do u trade e/u 5m only ? dont u trade other pairs and tf ?
Please forgive my partial explanations.
Yes, this is about (attempting to) gain an edge by trading more lots when one is winning.
charts illustrating the rules. Blue and Red are BBands_2, SkyBlue and Tomato are BBand_1.5
Guys, can one of you who has downloaded the pseudo-code do me a favour, please. For some reason, Word is going on strike when I try to download the doc. Could one of you re-save it in OpenOffice format and post it here, please?
Once the logic is in place, the code almost writes itself, so to have this presented to me on a plate is a boon.
cannot upload odt
Maximum 3 entries allowed LONG or SHORT.
UpperBBand_1 = BollingerBand(Close, Length1, Deviation1);
LowerBBand_1 = BollingerBand(Close, Length1, -Deviation1);
UpperBBand_2 = BollingerBand(Close, Length2, Deviation2);
LowerBBand_2 = BollingerBand(Close, Length2, -Deviation2);
If marketposition is FLAT or SHORT and Close crosses over UpperBBand_2 and stays above it at bar close then OP_BUY HalfLots this bar at Close;
If marketposition is FLAT or LONG and Close crosses under LowerBBand_2 and stays blow it at bar close then OP_SELL HalfLots this bar at Close;
If marketposition is LONG and Close crosses over UpperBBand_1 and stays above it at bar close then OP_BUY QuarterLots this
bar at Close;
If marketposition SHORT and Close crosses under LowerBBand_1
and stays blow it at bar close then OP_SELL QuarterLots this
bar at Close;
If marketposition is LONG and Close crosses under LowerBBand_2 and stays blow it at bar close then CLOSE ALL LONGS this bar at Close;
If marketposition is SHORT and Close crosses over UpperBBand_2 and stays above it at bar close then CLOSE ALL SHORTS this bar at Close;
and didnt know you were a doctor as well.
Latest update in post 1, folks, incorporating Khalid's enhancements, listed in his doc or printed by stimpy here http://www.forexfactory.com/showthre...94#post5127294
Could someone run a visual backtest over, say, the last couple of weeks and check that the bot is sending the QuarterLot trades appropriately, and closing the entire position? If you have the attached template in your MT4 platform/Templates folder, Strategy Tester should load the indi's for you automatically. An Open Prices backtest is all you need - no need for the Every Tick stuff.
jiva's bb stop auto-trader.tpl
Here's a very quick test,
© Forex Factory