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)




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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Create New...