ASE Home Page Products Download Purchase Support About ASE
ChartDirector Support
Forum HomeForum Home   SearchSearch

Message ListMessage List     Post MessagePost Message

  Horizontal “Bid” line?
Posted by Chuck on Jan-19-2020 00:10
Attachments:
Peter,

I have an OHLC Financial Chart that ipdates realtime. Any suggestion (VB.NET code example) for adding a horizontal line and dedicating for each new Bid update?

Ideally, this would be a line with price highlighted as a tag to the line in the Y-Axis area.

Thank you for your help.
Chuck
04A81706-968C-4540-9277-45F54D15B3A2.jpeg

  Re: Horizontal “Bid” line?
Posted by Peter Kwan on Jan-20-2020 23:58
Hi Chuck,

You can use Axis.addMark to add the mark line. See:

https://www.advsofteng.com/doc/cdnet.htm#markzone.htm

For example:

'Assume this is your main price chart
Dim mainChart As XYChart = c.addMainChart(240)

Dim v As Double = myCloseData(UBound(myCloseData))
Dim m As Mark = mainChart.yAxis().addMark(v, &H880088, "103", "Arial", 8)
m.setBackground(&H880088, &H880088)
m.setFontColor(&H880088)

Hope this can help.

Regards
Peter Kwan

  Re: Horizontal “Bid” line?
Posted by Chuck on Jan-21-2020 00:11
Awesome Peter, thank you.