School project. Metatrader script which uses mean values