Jump to content
Software FX Community

x-axis problem with adding points to a chart


User (Legacy)

Recommended Posts

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...