Toys from Vinin - page 30

 
granit77:
Roman, have you got the wrong topic?


No, Victor. We are trying to find the best solution. It's just that most of the skype is going on
 
Then ouch.
 
eddy:
 int iBS(datetime time, int TF)                    {
   return(iBarShift(NULL,TF,(time-time%(TF*60)))); } 

можно time/(60* TF)*(60* TF)
или time/60/TF*TF*60 :)
 

I wonder which is faster: TF*=60; return(time/TF*TF);

or just return(time/(60*TF)*(60*TF));

 
eddy:


You just need to put brackets to get the correct result

(time/TF)*TF

And the speed can be measured and determined by yourself

 

Calculator

Pop-up buttons, keyboard operation. Works without problems in WIN64.

Can be dragged and dropped into any location

Files:
lcalc_v2.mq4  19 kb
 
Vinin:

Calculator

Pop-up buttons, keyboard operation. Works without problems in WIN64.

Can be dragged and dropped into any location

Thank you. CPU load 100% (32)!
 
Roll:
Thanks. CPU load 100% (32)!


I've never had more than 36%. You need to increase the pause(Sleep()) to the optimum to reduce the load

 
here is just a version without Sleep before continuing
 
sergeev:
here is just a version without Sleep before continuing


Corrected by

Files:
ncalc_v3.mq4  19 kb