Login Page - Create Account

Support Board


Date/Time: Thu, 09 May 2024 12:18:48 +0000



Post From: sc.StartChartReplay not working when new Chartbook opened

[2019-10-29 23:27:09]
Sierra Chart Engineering - Posts: 104368
As expected, there is no problem with this at all. You will have to look at your own code to see what the issue is.

The replay works properly with separate Chartbooks each time. Even after closing the first Chartbook. Technically what is described simply makes no sense at all to be an issue within Sierra Chart. It could not be. The problem must be residing in the custom study itself.

This is the test code:

/*==========================================================================*/
SCSFExport scsf_ChartReplayTest(SCStudyInterfaceRef sc)
{
  if (sc.SetDefaults)
  {
    // Set the configuration and defaults

    sc.GraphName = "Chart Replay Test";
    sc.GraphRegion = 0;

    sc.AutoLoop = 0;


    return;
  }

  if (sc.IsFullRecalculation)
  {
    sc.SetCustomStudyControlBarButtonText(ACS_BUTTON_1, "Start Replay");
  }


  // wait for a button
  if (sc.MenuEventID == ACS_BUTTON_1)
  {
    // reset button to off
    sc.SetCustomStudyControlBarButtonEnable(sc.MenuEventID, 0);
    sc.StartChartReplay(sc.ChartNumber, 60, sc.BaseDateTimeIn[sc.ArraySize - 1] - 1 * DAYS);
  }
}

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
Date Time Of Last Edit: 2019-10-29 23:28:05