Jump to content
Medved Trader Forums

Referencing Time


Recommended Posts

Ok it seems the indexed variable Timestamp would work.

Q. I live in US Central time zone which is UTC -5. The market opens at 8:30 AM here. Which is 1:30 PM UTC. If I want to check a candles time do I use the time format 1:30 PM or 13:30 or 1330

ie

//Time is between 8am CST and 830am CST

if Timestamp < 1330 && Timestamp >= 1300 (do XYZ) 

//Market is open for regular trading hours

else if Timestamp >= 1330 (do ABC)

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...