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

Message ListMessage List     Post MessagePost Message

  High/low horizontal lines on Financial chart
Posted by Oleksandr Shmaliy on Jul-24-2009 19:53
Attachments:
I want to create the horizontal bars on the right side of the financial chart (like on the attached picture).
Is it possible?
If yes, what is the best way to do it?
Thanks.
image002.jpg

  Re: High/low horizontal lines on Financial chart
Posted by Peter Kwan on Jul-25-2009 03:37
Hi Oleksandr,

I am not sure what exactly you want to add.

The right side seems to have 6 horizontal lines. Also, there seems to have some black boxes behind the lines (you can see part of the grid lines are blocked by the black boxes). Do you want to add the lines, or the black boxes, or both?

If you just want to add the lines, there are many methods. For example, you may use a mark line. In VB/VBScript, it may be like:

'
' m = the XYChart object representing the main price chart (the object returned by
'       the FinanceChart.addMainChart method call)
' myPriceLevel = the price level of the line
' myLineColor = the color of the line
' startTradingSession = the visible trading session number from which the line starts
'    (trading session number is 0 for the first candlestick, 1 for the second candlestick, and so on)
' endTradingSession= the visible trading session number to which the line terminates
Call m.yAxis().addMark(myPriceLevel, m.xZoneColor(startTradingSession, cd.Transparent, m.xZoneColor(endTradingSession, myLineColor, cd.Transparent)).setLineWidth(2)


Hope this can help.

Regards
Peter Kwan

  Re: High/low horizontal lines on Financial chart
Posted by Oleksandr Shmaliy on Jul-27-2009 22:07
Peter,

Thank you very much for the detailed response. I think with your help I will solve the problem easily.

Oleksandr