The graphic object of OBJ_BITMAP_LABEL allows to create the different buttons. To enable the change of its state, it's necessary to enable the "Disable selection" property.
Translated from Russian by MetaQuotes Software Corp.
Original code: https://www.mql5.com/ru/code/289
A class for creation and output of BMP images.TrendMagic
The Trend Magic indicator.