A candlestick chart is used to describe price movements of a security or currency for a designated span of time. Candlesticks are usually composed of the body, and an upper and a lower shadow (wick). The wick illustrates the highest and lowest prices during the time interval represented. The body illustrates the opening and closing prices. If the close price is higher than it open, the body is light or unfilled, otherwise - dark or filled.
This awesome code is written by eugene_shashkov, you can see more from this user in the personal repository