excellent two bar formation analysis perhaps you could consider adding (open, close) and VOLUME to your functions