BolliToucher - Need EA

 

Please, somebody can code this?

EA based in Bollinger Bands and limited Martingale.

Rules:

1. buy when price touches upper band and sell when touches lower band (BB settable) - entry in next bar or at the same bar or previous BB values (settable)

2. Take profit and stop loss same Settable value SL=TP

3. When loss, double position in the next trade (next BB touch)

The "double position" must be limited to X (settable) STEPS. If lost X times, returns to the initial lot size (settable).

Try to put the attached indicator (bolitoucher) and find, for example, in a EURUSD H1 chart, a sittuation where we had lost, for example, 6 times, setting Take Profit and Loss at 500 points (50 pip).

If you have the money to hold temporary losses, can be a very profitable strategy... I think EURUSD, 0.01 initial size trade, $500 deposit is safe... Need to study other pairs to find the optimized SL/TP... Optimization can be done when EA is ready.

Please, don't forget to make it usable in 5-digit and microlots brokers.

Files:
 

picture

Take a look at this picture. When a trade was closed, another one takes place if the bar touched the band. It's a little confuse, hope you understand.

Files:
bolitoucher.jpg  95 kb
 

One more chart

More about this system.

In the last 7 days, it made 250 pip. (despite chart shows 300)

The price labels are the entries. The TP XXX is take profits or Stop losses hit.

After a 1 lot loss, a 2 lot trade.

Can someone code it???

Files:
eurusd_h1.gif  66 kb
 

Key question - forget martingale for a sec, lets say you never used martingale, would the system itself be profitable?

 
fxvoilaaa:
Key question - forget martingale for a sec, lets say you never used martingale, would the system itself be profitable?

hi Fxvoilaaa

We cannot say "buy" or "sell" when price touches upper or lower band... price goes up or down, a little random... the fact is that's VERY rare the price goes in the opposite direction many times in sequence.. so, if the initial lot is small enough to allow some losses, there are great chances of profit.

I know the risks of Martingale... think in the cummulative losses to 1 lot initial lotsize, SL TP=50 PIP:

1 X 500 = 500

2 X 500 = 1000 cumm 1500

4 x 500 = 2000 cumm 3500

8 x 500 = 4000 cumm 7500

etc...

We know exactly the risk, so, need to manage it.

Imagine you have $5000 and the initial lot size in EURUSD is just 1 microlot (0.01)

To loose all your money you'll need a sequence of 10 losses.

The chances this happen is 0,5^10 = 0,097%

The profitability will be poor, but this is the spot: Find equilibrium between pain and gain. MT4's optimization can help us in this task.

ENTRY SIZE LOSS

1 0,01 $5,00

2 0,02 $10,00

3 0,04 $20,00

4 0,08 $40,00

5 0,16 $80,00

6 0,32 $160,00

7 0,64 $320,00

8 1,28 $640,00

9 2,64 $1.280,00

10 5,12 $2.560,00

cumm loss $5.115,00
 
 

Good results, but it's not the described strategy.

 
nylon:
Good results, but it's not the described strategy.

try this, if u need more help, ask me

Files:
 
wffafdw:
try this, if u need more help, ask me

Sorry, but your EA does not reflect the strategy of this thread.

 
nylon:
Sorry, but your EA does not reflect the strategy of this thread.

tell if its not ok, u can turn of trailing

Files:
 
wffafdw:
tell if its not ok, u can turn of trailing

Hey man, congratulations, that's a great job!

Ok, let's improve it.

1. The "lot size" parameter can be renamed to "initial lot size" to make things clear

2. There's something wrong with the Martingale settings... the EA is ADDING 2 lots after the losing trades... We have to multiply it by 2.

more detailed explanation:

Now we have

1st trade 1 lot

2nd trade 2 lot

3rt trade 4 lot

4th trade 6 lot (correct should be 8 lot)

5th trade 8 lot (correct should be 16 lot)

6th trade 10 lot (correct should be 32 lot)

and so on...

Made back test and got a great result. Gone (and win) just 1 time to the 6th trade.

my settings for backtest

Initial deposit 50.000

Stop loss and take profit 500 (must be equal to fit strategy!)

Slippage 3

lots 1

MaxLotsTrade 6

Trailing false (must be false to fit strategy!)

BBPeriod 20

BBDeviation 2

Shift 0

Anyway, GREAT JOB, THANK YOU VERY MUCH!

Reason: