Welcome Forex EA downloads & MT4/MT5 auto-trading resources — EAs, Gold EAs, quant tools and real-world automation.
Sign In Sign Up

LhDT EA based on BBands/SMA/Macd (BBands/SMA/Macd based EA by LhDT)

author EAcpu | 2 reads | 0 comments |

  1. V1.0046

    1. Fixed an error when launching the EA for the first time (the EA moves directly, sometimes it is too late). Less movement but safer!
    2. Removed triggers on lower timeframes (V1.0045)
    3. Default settings changed to reduce DD and maintain profits:

    1. - ECN is false
    2. - Allow multiple trend trading is false
    3. - BreakEvenPips to 10pips
    4. - Breakeven profit to 3
    5. - JumpingStop is true
    6. - JumpingStopPips to 10pips

  2. V1.0045 - Fix BarCheck
    Better results when set to 1 (less DD, higher profits)

-----------------------------------------------

This EA is based on the BBands Stop V2 indicator, I also used MACD and MA to confirm entry and/or presence which I quickly coded using Steve Hopwood's excellent shell EA (thanks Steve!). The code looks a bit confusing as I didn't remove all unused functions from the shell EA, please forgive me.

Do not use it on live platforms as it is still under development!

The logic is as follows:

I've used it on an E/U M15.

Purchase time:
- Bbands below current price
- SMA20 is higher than or equal to the Bbands value
- Macd signal is above or equal to zero.

When selling:
- Bbands above current price
- SMA20 is lower than or equal to the Bbands value
- Macd signal is below or equal to zero.

To exit a running trade, we close the position when the BBands show the opposite color or the SMA20 is above Sell (below Buy) or equal to BBVALUE.

Backtesting gave positive results on E/U M15.

The purpose of this thread is to fine-tune and optimize the logic of the EA to build something nice and profitable.
Of course, an EA is still an EA and makes mistakes, and less than 5% of EAs work properly.
let's adjust it

The EA takes a screenshot when a buy or sell occurs. These screenshots are saved to /experts/files/bbands_ea/

The attachment contains the EA, BBands indicator and the template I used.

Looking for your comments and constructive critics!

Left-handed DT

Screen Shot 2011-11-01 at 16.45.34.pngScreen Shot 2011-11-01 at 17.11.49.pngScreen Shot 2011-11-01 at 18.46.47.pngbull bear delta.jpg
Screen Shot 2011-11-01 at 16.45.34.pngScreen Shot 2011-11-01 at 17.11.49.pngScreen Shot 2011-11-01 at 18.46.47.pngbull bear delta.jpg
Screen Shot 2011-11-01 at 16.45.34.pngScreen Shot 2011-11-01 at 17.11.49.pngScreen Shot 2011-11-01 at 18.46.47.pngbull bear delta.jpg
Screen Shot 2011-11-01 at 16.45.34.pngScreen Shot 2011-11-01 at 17.11.49.pngScreen Shot 2011-11-01 at 18.46.47.pngbull bear delta.jpg
Screen Shot 2011-11-01 at 16.45.34.pngScreen Shot 2011-11-01 at 17.11.49.pngScreen Shot 2011-11-01 at 18.46.47.pngbull bear delta.jpg
Screen Shot 2011-11-01 at 16.45.34.pngScreen Shot 2011-11-01 at 17.11.49.pngScreen Shot 2011-11-01 at 18.46.47.pngbull bear delta.jpg

Original post attachment (5)

Verification code Refresh