Convert TradingView Script to MT5 Indicator

MQL5 Indicators Converting

Job finished

Execution time 4 days
Feedback from employee
great client to work with. He's very professional in trading algorithms and provided valuable insights to me. And Fast response. Thank you.
Feedback from customer
Great experience!! STRONGLY RECOMMENDED Petru is one of the best developers I ever work with. Strong technical skill and well communication.

Specification

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)


Responded

1
Developer 1
Rating
(4)
Projects
3
33%
Arbitration
1
0% / 100%
Overdue
0
Free
2
Developer 2
Rating
(32)
Projects
57
23%
Arbitration
12
67% / 8%
Overdue
2
4%
Free
3
Developer 3
Rating
(13)
Projects
21
24%
Arbitration
1
100% / 0%
Overdue
3
14%
Free
4
Developer 4
Rating
(337)
Projects
624
38%
Arbitration
40
23% / 65%
Overdue
93
15%
Free
Published: 4 articles, 19 codes

Project information

Budget
30+ USD
Deadline
from 1 to 3 day(s)