Convert TradingView Script to MT5 Indicator

MQL5 指标 转化中

工作已完成

执行时间4 天
员工反馈
great client to work with. He's very professional in trading algorithms and provided valuable insights to me. And Fast response. Thank you.
客户反馈
Great experience!! STRONGLY RECOMMENDED Petru is one of the best developers I ever work with. Strong technical skill and well communication.

指定

I need a pinescript indicator "Currency Strength Meter" below converted to an MQL5 indicator.  Straightforward request, the MT indicator must be accurate and no error. 


//@version=4
study("Correlation Hedge", shorttitle="CoH")
//len = input(200, title="Length")
len = input(200, title="Length", minval=3)
smt = input(5, title="Smoothing EMA period", minval=1)

usd = security("DXY", timeframe.period, close)

myStoch(x) =>
    200 * (x - lowest(x, len)) / (highest(x, len) - lowest(x, len)) - 100

Calc_inv(sec) =>
    base = security(sec, timeframe.period, close) / usd
    myStoch(base)
Calc_dir(sec) =>
    base = usd / security(sec, timeframe.period, close)
    myStoch(base)

sigEur = ema(Calc_inv("EURUSD"), smt)
sigUsd = ema(myStoch(usd), smt)

plot(sigUsd, title="USD", color=#ff7f00, linewidth=2)
plot(sigEur, title="EUR", color=#00ffff, linewidth=2)


反馈

1
开发者 1
等级
(4)
项目
3
33%
仲裁
1
0% / 100%
逾期
0
空闲
2
开发者 2
等级
(32)
项目
57
23%
仲裁
12
67% / 8%
逾期
2
4%
空闲
3
开发者 3
等级
(13)
项目
21
24%
仲裁
1
100% / 0%
逾期
3
14%
空闲
4
开发者 4
等级
(337)
项目
624
38%
仲裁
40
23% / 65%
逾期
93
15%
空闲
发布者: 4 文章, 19 代码

项目信息

预算
30+ USD
截止日期
 1  3 天