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

), 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.
“[A]s we know, there are known knowns—there are things we know we know. We also know there are known unknowns—that is to say we know there are some things we do not know. But there are also unknown unknowns—the ones we don’t know we don’t know.”—Donald Rumsfeld, 2002