First candle of newyork session

mark692
131
hi i am making an EA that will send order only on new york session, but im confuse on how will my EA know if the time now is in New York session. What reference or function do i need?
Lukas Roth
685
Lukas Roth  
TimeGMT + gmtOffset //gmt offset based on your location
TimeLocal()    //Returns the local time of a computer, where the client terminal is running
TimeCurrent()  //Returns the last known server time

Use one of them. (I for myself always use GMT)

then ckeck when the session starts (for the selected time zone).

mark692
131
mark692  
Lukas Roth #:

Use one of them. (I for myself always use GMT)

then ckeck when the session starts (for the selected time zone).

thank you sir i will try this :)