Announcement

Collapse
No announcement yet.

Price of most recent trade in premarket ?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Price of most recent trade in premarket ?

    I am attempting to write a script to assist my analysis of premarket gaps... I would like to get the most recent trade price during the premarket and mark this price on a daily interval chart.

    but, getMostRecentTrade() appears to just give me the close from the previous day, so I am also considering options for alternatives, like maybe getting the high or low from a one-tick chart, which should be the price of the last trade if my understanding of tick charts is correct... is this possible?

    if its of any consequence, i have strong understanding of time templates, and i can see premarket data on my charts, i just cant get efs to return this data.

    Any advice is much appreciated, I have very limited time to test this due to the premarket nature of my task.

  • #2
    Hello Axiom,

    Try close(0, inv(1)) or close(0, inv("1T")). This will access the data on the 1-min or 1T chart. Make sure your time template for tick intervals or the 1-min interval does not exclude premarket hours.
    Jason K.
    Project Manager
    eSignal - an Interactive Data company

    EFS KnowledgeBase
    JavaScript for EFS Video Series
    EFS Beginner Tutorial Series
    EFS Glossary
    Custom EFS Development Policy

    New User Orientation

    Comment

    Working...
    X