Announcement

Collapse
No announcement yet.

what is method to retrieve "prev close" value on quote data?

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

  • what is method to retrieve "prev close" value on quote data?

    I want to calculate "change" value :

    change = prev - last

    the "last" value could get from API esignal.get_GetBasicQuote(symbol);
    string dAsk = quote.dAsk.ToString();
    string dBid = quote.dBid.ToString();
    string dLast = quote.dLast.ToString();
    string lAskSize = quote.lAskSize.ToString();
    string lBidSize = quote.lBidSize.ToString();
    string lLastSize = quote.lLastSize.ToString();

    But I don't know the method to get "prev close" value from Desktop API.

    Please help me !

    Thanks,
    Last edited by tuanta; 11-24-2006, 09:10 PM.

  • #2
    I find out !

    It is very simple!
    I use the function:
    esignal.XMLGetBasicQuote(symbol)

    Comment


    • #3
      hi tuanta,

      I don't think their is away to get the prev close with getbasicquote. One way would be to get history bars and get the close pricing of the last day. Use this close pricing for your change calculation. So get one day of history and store the info somewhere you can use it for your realtime calculations.

      regards,
      twiz

      Comment

      Working...
      X