Page 34 of 65

Re: Convert MT4 indicators to MT5

Posted: Fri Jan 26, 2024 7:43 am
by JohnnyRy
One potential problem is that MQL5 doesn't seem to support Wingdings via OBJ_LABEL, but only via OBJ_ARROW. :think:

Re: Convert MT4 indicators to MT5

Posted: Fri Jan 26, 2024 10:37 am
by JohnnyRy
Will someone please post a chart pic of the GG-TrendBar.mq4 indicator? (I don't have an MT4 platform.)

Re: Convert MT4 indicators to MT5

Posted: Fri Jan 26, 2024 10:53 am
by mrtools
JohnnyRy wrote: Fri Jan 26, 2024 10:37 am Will someone please post a chart pic of the GG-TrendBar.mq4 indicator? (I don't have an MT4 platform.)
Chart pic.

Re: Convert MT4 indicators to MT5

Posted: Fri Jan 26, 2024 11:47 am
by TransparentTrader
mrtools wrote: Fri Jan 26, 2024 10:53 am Chart pic.
The Hodrick Prescott MA indicator in the subwindow - what settings does it have? And does it repaint?

Looks like an awesome double confirmation of any extreme overbought/oversold zone breaches by the augmented/ultimate RSI!

Re: Convert MT4 indicators to MT5

Posted: Fri Jan 26, 2024 12:26 pm
by mrtools
TransparentTrader wrote: Fri Jan 26, 2024 11:47 am The Hodrick Prescott MA indicator in the subwindow - what settings does it have? And does it repaint?

Looks like an awesome double confirmation of any extreme overbought/oversold zone breaches by the augmented/ultimate RSI!
Using default settings from here . Careful with it though far as I know it repaints.

Re: Convert MT4 indicators to MT5

Posted: Fri Jan 26, 2024 2:23 pm
by galaxy
TransparentTrader wrote: Fri Jan 26, 2024 11:47 am The Hodrick Prescott MA indicator in the subwindow - what settings does it have? And does it repaint?

Looks like an awesome double confirmation of any extreme overbought/oversold zone breaches by the augmented/ultimate RSI!
Forget not the watson estimator recently published also works well

Re: Convert MT4 indicators to MT5

Posted: Fri Jan 26, 2024 6:56 pm
by Sutatong
JohnnyRy wrote: Fri Jan 26, 2024 5:12 am I had a go at it but I can't seem to get it fully operating. My code compiled without errors but shows a small jumbled up yellow mess in the upper left corner of the chart. The BROKEN source code is attached in case you want to try and build off it--instead of me trashing it and staying silent.

GG-TrendBar_BROKEN.mq5
Thank you. Really appreciate this. Too bad I am poor in coding.

Re: Convert MT4 indicators to MT5

Posted: Sat Jan 27, 2024 1:58 am
by JohnnyRy
Sutatong wrote: Fri Jan 26, 2024 6:56 pm Thank you. Really appreciate this. Too bad I am poor in coding.
You're welcome. I resumed work on it... Trying to replace the Wingdings with something else and recoding the multiple loops properly.

Re: Convert MT4 indicators to MT5

Posted: Sat Jan 27, 2024 10:25 am
by JohnnyRy
Sutatong wrote: Fri Jan 26, 2024 6:56 pm ...coding.
The GG_TrendBar indicator below is mostly coded anew. For the first time ever, I received a loading warning while working on it from MT5... "Your code is too long. Please consider shortening." Ironically, I subsequently replaced several loops with longer form lines of code and that warning disappeared.

Note that I used a machine with a widescreen monitor to code this, so the object spacing of the original MT4 file was off. I suspect that the objects may appear rather far apart on standard monitors, so I made notes (//comments) within the OnInit function... You can manipulate the hard numbers in the source code if necessary or I can create some Int inputs if necessary.

I completed it just as the market closed (as usual :roll: ), I did see a couple blocks turn Lime due to a lingering tick that arrived. Other than that it has not been tested. As for the colored blocks themselves, I inserted a Windows symbol (the actual symbol--not its code) in place of the original Wingding.

Please test and post back.

Re: Convert MT4 indicators to MT5

Posted: Sat Jan 27, 2024 5:29 pm
by Papybillou
Hello, could you please share this RSI indicator. Thank you very much.