View Single Post
  #6 (permalink)  
Old 08-04-2006, 09:08 AM
phoenix's Avatar
phoenix phoenix is offline
Senior Member
 
Join Date: May 2006
Posts: 289
phoenix is on a distinguished road
Quote:
Originally Posted by jyrik
I want to add to ea option to trade on gmt 12-15
do you mean, you want to trade only after 00:00 O'clock of your gmt 12 time?

anyway

1st you need to know the server time

then convert it to the gmt time

and use the iTime(Symbol(),PERIOD_D1,0) as a reference ,
it's the 00:00 O'clock of the server time

if server time is on gmt +2
then only allow to trade only after iTime(Symbol(),PERIOD_D1,0)+(10*60*60)

like

if(CurTime()>iTime(Symbol(),PERIOD_D1,0)+(10*60*60 ))
{
OrderSend(.....);
}

-------------
hope it helps
Reply With Quote