欢迎访问 外汇EA下载与MT4/MT5自动交易资源 - 聚合外汇EA、黄金EA、量化交易工具与自动化交易实战内容。
登录 注册

LhDT 基于 BBands/SMA/Macd 的 EA (BBands/SMA/Macd based EA by LhDT)

author emer | 0 人阅读 | 0 人评论 |
来源:ForexFactory · Trading Systems · 原帖链接
原帖作者:lhDT
发布日期:First Post: Nov 1, 2011 11:44pm | Edited Nov 3, 2011 6:55pm

 

  1. V1.0046

    1. Fixed a bug when lauching the EA for the first time (EA took position directly, sometimes too late). Less action but safer !
    2. Removed the trigger on lower timeframe (V1.0045)
    3. Changed default settings to reduce DD and stay in profits :

    1. - ECN to false
    2. - AllowMultipleTrendTrade to false
    3. - BreakEvenPips to 10pips
    4. - BreakEvenProfit to 3
    5. - JumpingStop to true
    6. - JumpingStopPips to 10pips

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

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

This EA is based on the BBands Stop V2 indicator, I used also MACD and MA to confirm enters and/or exists
I coded it quickly using Steve Hopwood's marvelous shell EA (thanks Steve for this!). The code looks a bit messy as I didn't removed all the unused features from the shell EA, forgive me on this.

Don't use this on a live platform as it is still under development !

Here is the logic :

I used it on E/U M15.

BUY when :
- Bbands are below current price
- SMA20 is higher or equals Bbands value
- Macd signal is higher or equals to zero.

SELL when :
- Bbands are above current price
- SMA20 is lower or equals Bbands value
- Macd signal is lower or equals to zero.

To exit a running trade, we close when BBands shows opposite color OR SMA20 is higher for a sell (lower for a buy) or equals to BBVALUE.

Backtesting give positive results on E/U M15.

The purpose of this thread is to fine-tune, optimize the logic of that EA to build something nice and profitable.
Of course, an EA is still an EA and makes mistakes, less than 5% of EA's are working.
Let's tune it

This EA is taking screenshots when buys and sells occurs. Those screenshots are saved into /experts/files/bbands_ea/

Attached, you have the EA, BBands indicator and the template I use.

Looking for your comments and constructive critics !

LhDT

原帖附件 (7)

📦 帖子附件汇总 (5)

以下是回帖中所有共享的附件(5 个,已去重)。

🔐
请登录后参与评论
注册满12小时后评论,即可解锁附件下载
立即登录