Login Page - Create Account

Support Board


Date/Time: Mon, 06 May 2024 09:30:45 +0000



Screenshot API

View Count: 794

[2020-04-02 22:34:21]
User617678 - Posts: 8
Hello,

Is there any API to save screenshots of a chart?

Thank you
[2020-04-02 23:09:06]
User617678 - Posts: 8
I found the API call inside sierrachart.h
[2020-04-05 14:46:05]
User701453 - Posts: 176
I created a function:

void ScreenShotTaker(SCStudyInterfaceRef sc)
{
sc.SaveChartImageToFile = 1;
}

Created an input in my strat named "Enable_TradeEntryScreenShot".
Then place the below code when the entry order was called.

//TAKE A SCREEN SHOT
if (Enable_TradeEntryScreenShot.GetYesNo())
{
   ScreenShotTaker(sc);
}

Date Time Of Last Edit: 2020-04-05 14:47:17
[2020-04-05 15:07:54]
User617678 - Posts: 8
I started using this sc.SaveChartImageToFileExtended() since it provides more customization.

Thank you very much for your reply.

Kind regards

To post a message in this thread, you need to log in with your Sierra Chart account:

Login

Login Page - Create Account