I got that stuck with the DataPointHintTool, that I gave up that project and started a new one and a different chart.
Below is the code, which does something.
"what" - see screenshot.
My question: How to get the ACTUAL open, high, low, close values?
The date works fine. It iisplays the actual value dynamically on mouse over.
The open, high, low, close show a value, - but a static one. And a false value as well.
See the screenshot to see at one glance, what works and what not.
var ser: TOpenHighLowCloseSeries;
punkt: Integer;
o, h, l, c: double;
tmp: integer; // aus Delpi
s: String;
d: double;
dat: TDate;
=============
Memo_AusgabeKerze.Clear;
with TDatapointHintTool(ATool) do begin // was das tut, weiß ich nicht genau. Es ist aus der Vorlage und vermutl. wichtig
ser := ATool.Series as TOpenHighLowCloseSeries;
punkt := PointIndex;
end;
if ser <> nil then begin
With Ser do begin
o:=ser.YIndexOpen;
H:=ser.YIndexHigh;
L:=ser.YIndexLow;
c:=ser.YIndexClose;
dat:=ser.GetXValue(punkt);
s:=Zeit.FORMATIERE_DATUM_nur_Wochentag_KURZ(Dat);
s := DateToStr(Dat) + ', ' + s + #13#10; // + #13#10;
s := s + 'open=' + FloatToStrF(O,ffFixed,4,4) + #13#10;
s := s + 'high=' + FloatToStrF(h,ffFixed,4,4) + #13#10;
s := s + 'low=' + FloatToStrF(L,ffFixed,4,4) + #13#10;
s := s + 'close=' + FloatToStrF(C,ffFixed,4,4) + #13#10;
Memo_AusgabeKerze.Lines.Add(s);
end;
end;
question:
What do I have to change, that the values of the open, high, low, close is displayed the same way as the date-value?
Thanks.