The script is necessary for the organization of actions controlled by the user. For example, in a step-by-step trading emulator.
IdleLib.dll - interception library. You should install it in the "libraries" folder.
shablon.mq4 - example of a script intercepting all events in the windows of MetaTrader 4 and printing out the code of the event (for example, of the key pressed) and the name of the window, in which this event has happened.
Translated from Russian by MetaQuotes Software Corp.
Original code: https://www.mql5.com/ru/code/8135
CustomCandle draws candlesticks of a larger and, perhaps, non-standard (for MT 4) timeframe in the current chart.