Coding Server Time

 

Can someone direct me to an example of how to code for server time? I wish to limit indicator signals between a start and stop time on a server. The user would enter the GMT+ or - value for the server and the code would determine the time range to activate signals.


I found this function in the docs but don't know if it's appropriate............... if(TimeCurrent()-OrderOpenTime()<360)


Thanks

 

That code says

"if the order was opened less than six minutes ago...."

360 seconds

 
phy:

That code says

"if the order was opened less than six minutes ago...."

360 seconds

Thanks. That makes sense.


Is there anyone that can direct me to some sample code for coding server time? I wish to limit indicator signals between a start and stop time on a server. The user would enter the GMT+ or - value for the server and the code would determine the time range to activate signals.

Reason: