The attempt to combine Zig Zag and ATR. And to define trend phase using this combination. Download link: http://www.profiforex.com/indicators/DT-ZigZag-ATR.mq4