https://www.mql5.com/en/code/26462