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

Message ListMessage List     Post MessagePost Message

  question about FinanceChart
Posted by tang on Jan-21-2011 22:58
Attachments:
I find FinaceChart is quite helpful,but I want to know how to draw a user defined arrow on
the candle stick of  FinanceChart. I want to create a user defined indicators which use
arrow to show on those crucial candle sticks.what can i do to meat this need.
just like the things i did in the attachment.
thank you
finance.png

  Re: question about FinanceChart
Posted by Peter Kwan on Jan-22-2011 00:35
Hi tang,

You may use a scatter layer to add symbols to the chart. The symbol can be a custom image, or can be any of the built-in symbols.

For example, in VB/VBScript, the code structure is like:

'Your existing code that adds the main price chart (here I assume you would like to
'add the custom symbol to the main price chart)
Set myMainPriceChart = c.addMainChart(..........)

'The position (price) of the symbols - there should be one value for each timestamp just
'like how the closing price array. If there is no symbol for a particular day, use NoValue.
ReDim mySymbols(Ubound(myTimeStamps))

'Assume you want the default to be no symbol for all days
For i = 0 To UBound(mySymbols) : mySymbols(i) = cd.NoValue : Next

'Set a symbol at trading session 30 at the same position as the high price
mySymbols(29) = highPrice(29)

'Add the symbol(s) using a scatter layer - here the symbol is a custom image "c:\\aaa.png"
Call c.addScatterLayer(Nothing, mySymbols, "My Symbol").getDataSet(0).setDataSymbol2("c:\\aaa.png")

Hope this can help.

Regards
Peter Kwan