You have only four choices:
-
Search for it (CodeBase or Market). Do you expect us to do your research for you?
- Beg at:
- Coding help - MQL4 programming forum
- Make It No Repaint Please! - MQL4 programming forum
- MT4 to MT5 code converter - MQL5 programming forum
- Please fix this indicator or EA - General - MQL5 programming forum
- Requests & Ideas (MQL5 only!) - Expert Advisors and Automated Trading - MQL5 programming forum
-
MT4: Learn to code it.
MT5: Begin learning to code it.If you don't learn MQL4/5, there is no common language for us to communicate. If we tell you what you need, you can't code it. If we give you the code, you don't know how to integrate it into your code.
-
Or pay (Freelance) someone to code it. Top of every page is the link Freelance.
Hiring to write script - General - MQL5 programming forum (2019)
We're not going to code it for you (although it could happen if you are lucky or the problem is interesting.) We are willing to help you when you post your attempt (using CODE button) and state the nature of your problem.
No free help (2017)
You have only four choices:
-
Search for it (CodeBase or Market). Do you expect us to do your research for you?
- Beg at:
- Coding help - MQL4 programming forum
- Make It No Repaint Please! - MQL4 programming forum
- MT4 to MT5 code converter - MQL5 programming forum
- Please fix this indicator or EA - General - MQL5 programming forum
- Requests & Ideas (MQL5 only!) - Expert Advisors and Automated Trading - MQL5 programming forum
-
MT4: Learn to code it.
MT5: Begin learning to code it.If you don't learn MQL4/5, there is no common language for us to communicate. If we tell you what you need, you can't code it. If we give you the code, you don't know how to integrate it into your code.
-
Or pay (Freelance) someone to code it. Top of every page is the link Freelance.
Hiring to write script - General - MQL5 programming forum (2019)
We're not going to code it for you (although it could happen if you are lucky or the problem is interesting.) We are willing to help you when you post your attempt (using CODE button) and state the nature of your problem.
No free help (2017)
Thank you William
I changed the code , and I have still a problem.
In the above Tradingview code we have:
r = rma(tr,35)
And "tr" is a built-in variable in Tradingview that presents true range. I coded it in MQL :
tr=MathMax(MathMax((High[i]-Low[i]),MathAbs(High[i]-Close[i+1])),MathAbs(Low[i]-Close[i+1]));
Also I searched (click here) and understood that "rma" in Tradingview is equal to iMA(SMMA Mode). But in iMA() function, we can only use some unchangeable Price Constants, and I want to use "tr" instead of any of price constants. Would you please help me how to do that?
Thank you before.

- docs.mql4.com
Thank you William
I changed the code , and I have still a problem.
In the above Tradingview code we have:
And "tr" is a built-in variable in Tradingview that presents true range. I coded it in MQL :
Also I searched (click here) and understood that "rma" in Tradingview is equal to iMA(SMMA Mode). But in iMA() function, we can only use some unchangeable Price Constants, and I want to use "tr" instead of any of price constants. Would you please help me how to do that?
Thank you before.

- docs.mql4.com
-
tr=MathMax(MathMax((High[i]-Low[i]),MathAbs(High[i]-Close[i+1])),MathAbs(Low[i]-Close[i+1]));
You don't need the abs since H ≥ C ≥ L always. Switch last term to C-L.
-
Simplified and easier to understand:
tr=MathMax(High[i], Close[i+1)) - MathMin(Low[i], Close[i+1]);
- S.ShojaEddin Rafieipour #: "rma" in Tradingview is equal to iMA(SMMA Mode).
Never any reason to use the SMMA(L) it's equivalent to the EMA(2L-1).
The Smoothed Moving Average or SMMA - How to Avoid It - NinjaTrader Programming | futures.io (2019) - As Navdeep referenced, create a non-visual buffer with each TR and then compute the MA of it. You could also use iATR except that only uses SMA.

- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
Hi
I need Rob Hoffman Overlay indicator for MT4. Here is the source code for Tradingview. Would you please tell me how to convert it for MT4?
Many thanks in advance.