first working MQL version