![MQL5 - Language of trade strategies built-in the MetaTrader 5 client terminal](https://c.mql5.com/i/registerlandings/logo-2.png)
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
Topic 14.3: Indicating dangerous values by flashing parts of elements (frames, bases, text, sliders and slider boards).
Flashing of elements is an excellent addition to the colour indication signalling the transition of parameters into the zone of dangerous values. The implementation of the new solution is similar to the previous one, but if the colour indication works according to the principle that the closer the value is to the critical value, the brighter the colour, the blinking only increases the frequency of change of the initial colour with the colour set for blinking. The user can programmatically adjust the flashing delay, gradually decreasing it to 25ms or increasing it to 2.5 seconds. In this case, both mechanisms can be operated simultaneously. The colour shifts from light green to bright red and burgundy and, and the flashing increases in speed. One mechanism does not interfere with the second. Next, we'll break down practical examples.
*Important: the flashing is activated independently of the colour indication functions. The two mechanisms are technically unrelated and can work in parallel or separately.
To implement blinking, new properties have been added to interactive elements:
Added new properties to control speed and stop of blinking:
Let's summarise the above:
Tomorrow we will move on to practical examples.
Today just a small demo to understand what we are talking about.
Unfortunately, there are lags when recording. The processor is loaded. But the demo shows that elements flash asynchronously and at different speeds. Different parts of the elements are also flashing. All this is set programmatically. And the tab on Taskbar automatically found the fastest blinking element and turned blue. Then, when the element started blinking less often, it found the other fastest blinking element and became red.
We'll explore this in more detail tomorrow.
P.S. We will also discuss options for using these very useful features.