Jump to content
Software FX Community

Adding tick with the API


User (Legacy)

Recommended Posts

Hello,

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

ChartFX.CloseData COD_XVALUES

Thanking you in advance,

Chase Gale

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

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...