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

货币而非货币对交易 (Currency, not pair, trading)

author emer | 0 人阅读 | 0 人评论 |
来源:ForexFactory · Trading Systems · 原帖链接
原帖作者:nondisclosure00
发布日期:First Post: Jun 2, 2021 2:35am
I'm going to try to explain this as well as I can.

I'm working on a system that trades a pair based on what the 2 currencies that make up that pair are doing. What we're looking at is how many pips (+/-) each currency has depending on how each of their corresponding pairs are doing. Example: EURUSD is long Close-Open=200 pips. So, EUR is +200 pips and USD is -200 pips on this pair. It's a simplistic view, but I hope it gets the point across (I use 2 moving averages listed below instead of open and close).
See the screenshot below.
Here's what the indicators are, from bottom up:
HL Volatility (red line indicator) - what I use to determine stoploss distance. It's a moving average of volatility (High-Low).
Currency Diff (Histogram) - It's the difference in the 2 currency's from Currency pips indicator.
Currency pips indicator (2 lines) - A calculation of how many pips each currency has (how it's calculated is included in the files).
The arrows are from the currency arrows indicator that drive the trading signal (based on consecutive bars from Currency Diff.
And 2 moving averages - 4 Smoothed on Close price with another 4 Smoothen on Close price but shifted 4.

As you can see the arrows give some good trade signals. But I'm trying to "weed out" some of the losing signals. Ie., trying to refine this.

I'm including the source code of all indicators because I can't think and type at the same time.

All files except Currency Indicator Helper.mqh go in the indicators folder. Mqh file goes in the include folder.

The pairs needed are: EURUSD, GBPUSD, AUDUSD, USDJPY, USDCAD, NZDUSD, USDCHF, EURAUD, EURCAD, EURNZD, EURGBP, EURJPY, AUDCAD, AUDJPY, AUDNZD, GBPAUD, CADJPY, GBPCAD, NZDCAD, GBPJPY, NZDJPY, GBPNZD, GBPCHF, NZDCHF, CADCHF, AUDCHF, CHFJPY, EURCHF
Current chart is 1 hour.
Attached Image (click to enlarge)
Click to Enlarge

Name: 8a1b82fa86e035f15f3b6055bc45fc2f.png
Size: 108 KB

原帖附件 (6)

📦 帖子附件汇总 (3)

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

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