//+------------------------------------------------------------------+ //| TestPi.mq5 | //| Alexey Volchanskiy | //| http://mql.gnomio.com | //+------------------------------------------------------------------+ #property copyright "Alexey Volchanskiy" #property link "http://mql.gnomio.com" #property version "1.00" void OnStart() { int num_steps = 1000000000; double step; ulong start, stop; double x, pi, sum=0.0; step = 1.0/(double)num_steps; start = GetMicrosecondCount(); for (int i = 0; i