Attachments forums

List of attachments posted on this forum.


All files on forums: 136030

Re: Convert MT4 indicators to MT5

JohnnyRy, Sat Jan 27, 2024 10:24 am

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.
All files in topic