Screenshot using GetChartBitmap on DataSet
Author: quaresma
Creation Date: 1/16/2019 10:50 AM
profile picture

quaresma

#1
Hi, i hame simple trading code.
I want to take a screenshot every time a CrossOver or Crossover event occurs . Do not overwrite the picture, and make a new one. In the current code, WL takes a snapshot of the last part of the DataSet. Can it be done using the method GetChartBitmap at each event ? Now i have one snapshot (in attach)
Thank you!

CODE:
Please log in to see this code.

profile picture

Eugene

#2
Hi,

This question was raised many times before and the resolution was always that one cannot achieve this with GetChartBitmap alone. You'll find the the whys and wherefores in these threads:

Looping through DataSet and saving chart image
Output chart image by program as file
Printing multiple charts

There still may be a couple of workarounds:

1. Sounds like code in post #5 worked for its author "elliottp" but not for me: Iterate through a DataSetSymbols list and save chart bitmap images (post #5). Please note that this code is unsupported due to its use of undocumented classes, kindly don't ask us to look into it if it doesn't work for you.

2. A kludgy workaround using AutoIT may be possible: Printing multiple charts (see my post #3). Coding it is all on you.

If neither one works out you're out of luck. :(
profile picture

quaresma

#3
Anyway, thanks for your help. I will try all the proposed options
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).