GetData from Record

1) GetData can obtain yesterday's close value by using the eYesterday constant:   price:=GetData(eYesterday,True);
Question:  Yesterday does not seem to match the close of the stock if you look at the charts vs viewing eYesterday in a quote window.  Can you checkout yesterday for me?

Here is my test script and the values for Last and Yesterday are correct and their difference is the current net.

begin
  if Find(eStock,'IBM') then begin
    writeln(GetData(eLast));
    writeln(GetData(eYesterday));
  end;
end;

2) Does the chart function have to open to get high, low, volume and close?

A chart has to be open to populate the arrays called High, Low, Volume and Last.   These arrays reference a chart's data set.   This is different that what we did in 1) where we referenced data in a symbol's data base record.

3) Can you create a high, low, volume, and close off last set of variables?  

For the current high, low, volume, last values, you could get the information from the symbol's data base record as illustrated in 1), or from the chart arrays.

Using database record:

   if Find(eStock,'IBM') then writeln(GetData(eLast));

or using Chart data:

   Chart('IBM.D'); writeln(Last(BarEnd));