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

让我们自动化一个简单的砖形策略! (Lets Automate a Simple Renko Strategy!)

author emer | 0 人阅读 | 0 人评论 |
来源:ForexFactory · Trading Systems · 原帖链接
原帖作者:shreyash
发布日期:First Post: Mar 19, 2015 10:10pm | Edited 10:34pm
Hey,

I have been trading a simple Renko strategy for quiet some time now and it yields some very decent profits.
Now I want to automate this strategy into an EA so that we dont have to wait for Renko bars to paint for long hours.

The whole concept is about keeping the trading strategy simple yet Accurate & Profitable!

Ok guys so lets first see how to build a Renko chart.

How to Install renko EA:
1. Open 1Min Chart
2. Attach your Renko EA (i.e. Renko_Mod.mq4)
3. Settings for this EA are :

RenkoBoxSize=10.0
RenkoBoxOffset=0
RenkoTimeFrame=2
ShowWicks=true
EmulateOnLineChart=true
BuildChartsWhenMarketOffline=true
CalculateBestBoxSize=false
ATRPeriod=24
ATRTimeFrame=60
UseATRMA=true
MAMethod=0
MAPeriod=120
Click OK and DONE.

4. Open Offline Chart : File > Open Offline > Select EURUSD M2 (Double Click to Open this Chart)
5. Your Renko Chart is now Active.

What we are doing here is that we are getting the Renko_mod.mq4 EA to generate a renko chart in offline mode but updates on live basis.

Now on the current chart you can see renko bricks of 10 pips each.

Now add EMA 50 and EMA 21 indicators to your chart and we are done!

The Rules of the strategy are very simple!

Entry Criteria:

Buy after the brick color changes from red to green and 2 consecutive green bricks have formed and closed.
Our entry will be at the i.e. open of the third green brick.

Sell after the brick color changes from green to red and 2 consecutive red bricks have formed and closed.
Our entry will be at the i.e. open of the third red brick.

Filter:

As a filter we use 21EMA and 50EMA.
If the prices are above the EMAs we take only buy trades.
If the prices are below the EMAs we take only sell trades.

Exit Criteria:

1.When a brick of the opposite color is formed.
OR
2. Trail the trade as more number of bricks are formed until your trailing stop loss takes you out!.

Stop loss:

There are 2 concepts -
1. Last significant hi or low.
2. Hi or low of the last green or red color brick -
i.e. for a buy trade we will use the low of the last red brick from where the price turned.
for a sell trade we will use the high of the last green brick from where the price turned.

Additionally, you can use a trailing Sl of 20-30 pips to safe guard your profits.
You can choose one that best suits your style of trading.

If you are using trailing stop loss don't keep target so that we can let our profits run during times of long trends.

Now you chart should look something like this!

Sell Setup Example :

Attached Image (click to enlarge)
Click to Enlarge

Name: EURUSDM2.png
Size: 27 KB


Buy Setup Example :

Attached Image (click to enlarge)
Click to Enlarge

Name: EURUSDM2 buy.png
Size: 24 KB


I humbly request All the talented and senior programmers on this forum to help me code a EA based on this strategy.

Fellow Members please refer this thread to anyone and anywhere where you can find talented programmers.

As I want an EA that can trade out of the offline renko chart!

All constructive suggestions will be welcomed with open arms.

Also, if you like my strategy please dont forget to thank me!!!

原帖附件 (3)

📦 帖子附件汇总 (904)

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

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