This script uses the functions plot(), cross(), plotcandle(), pivothigh() and pivotllow(). You can see the candles in the color green, above EMA 72 (Exponetional Move Average), and the color red, below EMA72. You can identify the position of the crossing UP and DOWN of the EMA 08 x EMA 17, EMA 17 x EMA72. You can identify the TRADE ENTRY points with the pivot high and TRADE EXIT with the pivot Low.