The related article is copyrighted material from Stocks & Commodities Mar 2010 You can use in the xPrice any series: Open, High, Low, Close, HL2, HLC3, OHLC4 and ect...
You can change long to short in the Input Settings WARNING: - For purpose educate only - This script to change bars colors.