Jump to content
Software FX Community

Adding tick with the API

User (Legacy)

Recommended Posts


I am trying to add an additional tick to ChartFX and wanted to ensure this

was the proper way.

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


Thanking you in advance,

Chase Gale

P.S. If this is a duplicate post, I apologize.

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