For those who do not understand it feel free to test it
http://codebase.mql4.com/1042