Eliminated most warnings caused by stronger checks in latest Metatrader build. Not all though - my fuzzy programming style