Announcement

Collapse
No announcement yet.

How to get the current trading price, not the H, L, C, O

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

  • How to get the current trading price, not the H, L, C, O

    For the life of me, I cannot figure out how to get the current market trading price, I can get the current and previous bar High, Low, Open and Close but just cant find the current price

    the below works but how does one get the current price,

    CurrentHigh = getValue( "High", 0);
    CurrentLow = getValue( "Low", 0);

    getValue( barType [, barIndex ][, numBars ][, Symbol ] )
    barType Required. String for type of value to retrieve: "open", "high", "low", "close", "time", "rawtime", "volume", "oi", "year", "month", "day", "hour", "minute", "second"
    ???

  • #2
    ahhh, its so sim[le, getMostRecentTrade()

    ?

    Comment


    • #3
      It's actually even easier than that, close(0) is where the last trade took place, that goes for when the market is closed and for when prices are streaming. The current high is high(0) and the current low is low(0).

      Comment

      Working...
      X