First candle of newyork session

 
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?
 
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).

 
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 :)

 
mark692 #:

thank you sir i will try this :)

Thank you sir, I'm going to try this
Reason: