Export charts by script
Author: officetrader
Creation Date: 3/20/2009 7:46 AM
profile picture

officetrader

#1
WL5 does have a very nice graphical representation of data which is appreciated.

Is it possible to export those graph in required formats by WL scrpits? So systemcatic backtesting can be done overnight wihtout saving the graphs manually.
profile picture

Cone

#2
See the QuickRef (F11) for GetChartBitmap
profile picture

officetrader

#3
Got it, thanks a lot!
profile picture

smelnich

#4
My strategy gets data from the past trades' log-file and plot them on a chart with comments. I am trying to use GetChartBitmap to save some parts of the chart into image files:

CODE:
Please log in to see this code.


The problem is that the bitmap image always gets only the last N bars of the chart, when I need the image somewhere inside of the chart (on the trade date).

My search to find the solution was not successful. I was looking for something like:

CODE:
Please log in to see this code.


Does anybody know how to implement this?

Thanks a lot!






profile picture

Eugene

#5
The chart bitmap is presented by Wealth-Lab's chart renderer which operates with the current chart window (with all its properties like selected ChartStyle, bar spacing etc.) Consequently, it's not possible to "rewind" it. I don't think you'll get what you want in a programmatic way without going out of your way with some hack similar to this one: Loading data for "custom" time period
profile picture

smelnich

#6
Thank you Eugene!
profile picture

Eugene

#7
You're welcome.
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).