Jump to content
Software FX Community

Passing Data with the API


User (Legacy)
 Share

Recommended Posts

Hi,

I just want to ensure that I am doing this correctly. I am trying to add 1

additional tick of data to ChartFX.

lngCount = ChartFX.NValues - 1

'

'|| Open a Communication Channel for 5 Series (Open, Hi, Low, Close

& Date)

ChartFX.OpenDataEx COD_VALUES, COD_UNCHANGE, lngCount + 2

ChartFX.OpenDataEx COD_XVALUES, COD_UNCHANGE, lngCount + 2

'

'|| Pass the data in the order expected by Chart FX FE

'

ChartFX.ValueEx(0, lngCount + 1) = dblTickBid 'low

ChartFX.ValueEx(1, lngCount + 1) = dblTickBid 'open

ChartFX.ValueEx(2, lngCount + 1) = dblTickBid 'close

ChartFX.ValueEx(3, lngCount + 1) = dblTickBid 'high

'

'|| Dates are passed in julian form using CDate Function

ChartFX.XValueEx(0, lngCount + 1) = CDate(dtDate)

'

'|| Close the Communication Channels

ChartFX.CloseData COD_VALUES

ChartFX.CloseData COD_XVALUES

Also I would like to thank your support team for all the help given.

Chase Gale

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.

Guest
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.

 Share

×
×
  • Create New...