User (Legacy) Posted January 16, 2002 Report Share Posted January 16, 2002 I am using the following code to add new points to an OHLC chart: ChartFX1.OpenDataEx COD_VALUES Or COD_ADDPOINTS, 5, xNewPoints ChartFX1.OpenDataEx COD_XVALUES Or COD_ADDPOINTS, 1, xNewPoints For i = 0 To xNewPoints - 1 ChartFX1.ValueEx(0, i) = nLow(i) ChartFX1.ValueEx(1, i) = nOpen(i) ChartFX1.ValueEx(2, i) = nClose(i) ChartFX1.ValueEx(3, i) = nHigh(i) ChartFX1.ValueEx(4, i) = nVolume(i) ChartFX1.XValueEx(0, i) = nDate(i) Next ChartFX1.CloseData COD_VALUES Or COD_REALTIME ChartFX1.CloseData COD_XVALUES Or COD_REALTIME The points appear on the chart, however the date labels on the x-axis of the new points appears as "12/30/1899". For the innitial points the date label is OK. The problem appears only for the new point labels. Is there something wrong in my code? Any help would be most appreciated. Artemis Psaras Link to comment Share on other sites More sharing options...
Software FX Posted January 16, 2002 Report Share Posted January 16, 2002 OHLC Charts don't use X-Values, what you want to do is to assign a Label instead using the Legend property. -- FP Software FX, Inc. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.