Login Page - Create Account

Support Board


Date/Time: Wed, 12 Feb 2025 22:22:46 +0000



Post From: ACSIL : save image per closed bar ?

[2020-11-08 01:21:00]
Sierra Chart Engineering - Posts: 104368
You will want to use code like this:
SCSFExport scsf_ChartImageTest(SCStudyGraphRef sc)
{
  if (sc.SetDefaults)
  {
    sc.GraphName = "ChartImageTest";
    sc.AutoLoop = 0;
    return;
  }

  // compute once per bar
  if (sc.UpdateStartIndex == sc.ArraySize - 2)
    sc.SaveChartImageToFileExtended(sc.ChartNumber, SCString(), 0, 0, 0);

}
When you are setting the path and filename, make sure that you are including the path as well.

The problem is, there is a delay before the chart image is saved. We will look into making it immediate. We need to think through that.
Sierra Chart Support - Engineering Level

Your definitive source for support. Other responses are from users. Try to keep your questions brief and to the point. Be aware of support policy:
https://www.sierrachart.com/index.php?l=PostingInformation.php#GeneralInformation

For the most reliable, advanced, and zero cost futures order routing, *change* to the Teton service:
Sierra Chart Teton Futures Order Routing