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

范围条形图交易 DAX 自动化的想法 (Idea For Automation On Range Bar Charts )

author emer | 0 人阅读 | 0 人评论 |
来源:ForexFactory · Trading Systems · 原帖链接
原帖作者:Rooi
发布日期:First Post: Jun 19, 2016 12:05am | Edited Jun 21, 2016 10:39pm
Hi

The following thread will be dedicated to the automation of the idea mentioned below.All inputs and opinions are welcomed but let's all please communicate in a civil way.

The system entry and exit criteria are as follows :

Entry Criteria For Longs

If a bar crosses from below the MA to above the MA ,
Then this bar should be considered as a Possible Signal Bar.

Next,

If the Possible Signal Bar closes and a new bar forms ,
Then the High of the previous bar ( now The Confirmed Signal Bar ) should be stored say as "x"

Next,

If price increases from "x" by 2 pips or more
Then a Buy Market Order should be executed. // This Buy will have no TP or SL for now

Only 1 long trade open at any time.

This order will stay open till the Entry Criteria For Short are met and the trading direction is reversed by closing the Buy and opening the Sell as per criteria below:

So,

Entry Criteria For Shorts

If a bar crosses from above the MA to below the MA ,
Then this bar should be considered as a Possible Signal Bar.

Next,

If the Possible Signal Bar closes and forms a new bar ,
Then the Low of the previous bar ( now The Confirmed Signal Bar ) should be stored say as "x"

Next,

If price decreases from "x" by 2 pips or more
Then a Sell Market Order should be executed. // This Sell will have no TP or SL for now

Only 1 short trade open at any time.

This order will stay open till the Entry Criteria For Longs are met and the trading direction is reversed.

Indictors as follows

For the range bars , I use RangeBarChart v1.03a (attached). This goes into File - open data folder - MQL4 - Indicators

The templates used are 1min Range Bar 40/50 Indices & 1m Offline Range bars 40 Indices(attached). These go into File - open data folder - MQL - templates

Start with a chart for GER30 (DAX) 1 min chart and use template 1min Range Bar 40/50 Indices.

Then open Offline chart (in FILE); It should be displayed as GER30 M40 (M50 should also be available for 5 pip bars); Apply template 1m Offline Range bars 40 Indices.

This should produce a chart same as below. (I use FXCM so there may be slight differences with other sources).
Attached Image (click to enlarge)
Click to Enlarge

Name: GER30M40 16-06-2016_a.png
Size: 69 KB

Attached File(s)
File Type: tpl 1m Offline Range bar 40 Indices.tpl   8 KB | 850 downloads

Attached File(s)
File Type: tpl 1min Range bar 40&50 Indices.tpl   19 KB | 834 downloads

Attached File(s)
File Type: ex4 RangeBarChart_v103a.ex4   21 KB | 980 downloads


As a side note :

Here is a script that Stops the current order and Reverses it for easier manual trading and testing
Attached File(s)
File Type: mq4 Close and Reverse_Slippage_Adjusted.mq4   2 KB | 790 downloads | Uploaded Jun 21, 2016 10:37pm

原帖附件 (5)

📦 帖子附件汇总 (28)

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

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