Added available code from http://codebase.mql4.com/7147
Added available code from http://codebase.mql4.com/7147