int OnInit() { MathSrand(GetTickCount()); EventSetTimer(1); return INIT_SUCCEEDED; } void OnDeinit(const int reason) { Print("MQL build: ", __MQLBUILD__); EventKillTimer(); } void OnTimer() { const double result = _Point / double(MathRand() % 2); Print(result); }