This script is based off the original "Elder Impulse" system. It is based off a series of indicators including EMAs and MACD crossovers to change the colors of candlestick bars which can act as buy/sell signals to traders. Additionally this script plots 2 lines on the chart - one red and one green. These lines show the price levels needed for the current bar's close price in order for the current candlestick to close a certain colour.
ie, If the the current bar is green, it must close below the red line in order for the bar to become red, and vice versa.