Looping through DataSet and saving chart image
Author: Swissi
Creation Date: 8/30/2012 7:55 AM
profile picture

Swissi

#1
Hi
I would like to go through all the symbols in a watchlist and create a chart (with Bitmap bm = ...) and save the chart on my disk. What is the best way to do this?
profile picture

Eugene

#2
Hi,

Re: Looping by all symbols from a DataSet. Check out the following QuickRef example (hit F11 in Wealth-Lab): Data Access > DataSetSymbols Property.

As to creating a chart of each symbol, you're out of luck. While looping through the DataSetSymbols, with GetChartBitmap you'll only get the clicked symbol's chart because it's the only rendered image of the chart. SetContext(or looping by DataSetSymbols, or running a multi-symbol backtest) does not create a rendered image of the chart. No workaround is known to me.
This website uses cookies to improve your experience. We'll assume you're ok with that, but you can opt-out if you wish (Read more).