LhDT EA based on BBands/SMA/Macd (BBands/SMA/Macd based EA by LhDT)
- V1.0046
- Fixed an error when launching the EA for the first time (the EA moves directly, sometimes it is too late). Less movement but safer!
- Removed triggers on lower timeframes (V1.0045)
- Default settings changed to reduce DD and maintain profits:
- - ECN is false
- - Allow multiple trend trading is false
- - BreakEvenPips to 10pips
- - Breakeven profit to 3
- - JumpingStop is true
- - JumpingStopPips to 10pips
- 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
























Original post attachment (5)
💡 Featured Recommendations
✍️ Latest by the author
- •
- •
- •
- •
- •
- •
📌 Popular topics
- •
- •
- •
- •
- •
- •
- •
- •
🔗 You May Be Interested In
- •
- •
- •
- •
- •
- •