//+------------------------------------------------------------------+ //| ParallelPi.mq4 | //| Copyright 2017, MetaQuotes Software Corp. | //| https://www.mql5.com | //+------------------------------------------------------------------+ #property copyright "Copyright 2017, MetaQuotes Software Corp." #property link "https://www.mql5.com" #property version "1.00" #property strict #define NUM_STEPS 1000000000 //+------------------------------------------------------------------+ //| | //+------------------------------------------------------------------+ void OnStart() { double x; double pi; double sum=0.0; double step=1./NUM_STEPS; int i; unsigned int msec=GetTickCount(); //--- for(i=0; i